> ## Documentation Index
> Fetch the complete documentation index at: https://docs.enforster.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Scan Results

> Get the results of a completed scan.

Args:
    scan_id: Scan ID to get results for
    user: Authenticated user from Clerk
    
Returns:
    Scan results with issues and summary
    
Raises:
    401: Unauthorized (invalid token)
    403: Forbidden (scan not owned by user's org)
    404: Not found (scan not found)
    400: Bad request (scan not completed)



## OpenAPI

````yaml api-reference/openapi.json get /api/scans/{scan_id}/results
openapi: 3.1.0
info:
  title: Enforster AI API
  description: Enforster AI API for code analysis and security scanning.
  version: 1.8.0
servers: []
security:
  - ApiKeyAuth: []
  - BearerAuth: []
paths:
  /api/scans/{scan_id}/results:
    get:
      summary: Get Scan Results
      description: |-
        Get the results of a completed scan.

        Args:
            scan_id: Scan ID to get results for
            user: Authenticated user from Clerk
            
        Returns:
            Scan results with issues and summary
            
        Raises:
            401: Unauthorized (invalid token)
            403: Forbidden (scan not owned by user's org)
            404: Not found (scan not found)
            400: Bad request (scan not completed)
      operationId: get_scan_results_api_scans__scan_id__results_get
      parameters:
        - name: scan_id
          in: path
          required: true
          schema:
            type: string
            title: Scan Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Get Scan Results Api Scans  Scan Id  Results Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - ApiKeyAuth: []
        - BearerAuth: []
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: Use an API key in the X-API-Key header.
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Clerk JWT bearer token.

````