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

# Get Complete Scan Results

> Get the complete results of a scan job including all vulnerabilities, tools scanned, and detailed analysis. Results are only available for completed jobs.

**Enterprise data-license feature:** requires MCP Hub API access enabled for your organization, otherwise returns `403`. Contact support@enkryptai.com.



## OpenAPI

````yaml GET /mcp-hub/scan/{job_id}/results
openapi: 3.0.0
info:
  title: Enkrypt AI APIs
  version: 2.0.0
servers:
  - url: https://api.enkryptai.com
security:
  - apiKeyAuth: []
tags:
  - name: Guardrails
  - name: Code of Conduct
  - name: Endpoints
  - name: Redteam
    description: >-
      Red Team API: submit red-team / threat-modeling / playground / eval runs,
      then poll run status, records, results and compliance. Also two-phase
      threat modeling (categories + data), dataset retrieval, model health,
      findings and risk mitigation. The previous task-based Red Team API is
      under **Archived**.
  - name: Deployments
  - name: AI Proxy
  - name: Leaderboard
  - name: Archived
  - name: MCP Hub
    description: >-
      MCP Hub vulnerability scanning APIs. Submitting scans (the POST endpoints)
      is open to all authenticated callers. The scan **retrieval** APIs — Get
      Scan Job Status, Get Complete Scan Results, List Scans, and Get MCP Hub
      Scan Statistics (the GET endpoints) — are an **enterprise data-license
      feature**: they require your organization to have MCP Hub API access
      enabled by Enkrypt, otherwise they return `403`. Contact us at
      support@enkryptai.com to enable access.
  - name: MCP Registry Servers
  - name: MCP Gateways
  - name: MCP Playground
  - name: Skill Scanner
    description: >-
      Skill Scanner APIs: submit an agent skill (a directory inside a git
      repository) for security scanning, then read the verdict, the risk level
      and the full report. Scanning is asynchronous — a scan takes roughly 30–90
      seconds, so `POST /skill-hub/scan` returns a `scan_id` you poll.


      You see your organization's scans and nobody else's. The identity comes
      from your API key, never from your request — sending `user_email` is a
      `400`.


      For an organization or project API key, scans are filed under the
      **organization**, so every member sees every scan the organization has
      run, whichever project or member submitted it. For an individual account
      it is simply your own scans. Either way List Skill Scans needs no
      parameter to say who you are.
  - name: Compliance
    description: >-
      Compliance APIs: connect a ChatGPT Enterprise workspace, then keep reading
      its compliance logs and scanning every message through one of your saved
      guardrails.


      Every endpoint here — reads as well as writes — requires the **governance
      officer** role on the project your API key belongs to. The organization
      owner is **not** exempt: an owner who has not been granted the role gets
      `403` like anyone else. An individual (non-organization) account cannot
      hold the role at all, so compliance is an organization-only feature today.


      A scan is addressed by name in the `X-Enkrypt-Scan` header, within the
      project its API key belongs to. Message text is never stored: Get
      Compliance Message fetches it live from the provider, and only while the
      provider still holds it.
paths:
  /mcp-hub/scan/{job_id}/results:
    get:
      tags:
        - MCP Hub
      summary: Get Complete Scan Results
      description: >-
        Get the complete results of a scan job including all vulnerabilities,
        tools scanned, and detailed analysis. Results are only available for
        completed jobs.


        **Enterprise data-license feature:** requires MCP Hub API access enabled
        for your organization, otherwise returns `403`. Contact
        support@enkryptai.com.
      operationId: mcp_hub_get_scan_results
      parameters:
        - $ref: '#/components/parameters/MCPHubJobIdPath'
      responses:
        '200':
          description: Complete scan results retrieved
          headers:
            x-enkrypt-is-private:
              description: Always present; "true" for private jobs, "false" for public.
              schema:
                type: string
                enum:
                  - 'true'
                  - 'false'
            x-enkrypt-job-status:
              description: Current job status. Always present.
              schema:
                type: string
            x-enkrypt-scan-type:
              description: Scan type. Always present.
              schema:
                type: string
                enum:
                  - source
                  - hosted
            x-enkrypt-repo-name:
              description: Repository / server identifier. Present when known.
              schema:
                type: string
            x-enkrypt-endpoint-url:
              description: Hosted MCP server endpoint URL. Hosted scans only.
              schema:
                type: string
            x-enkrypt-auth-type:
              description: Authentication type used for the hosted scan. Hosted scans only.
              schema:
                type: string
                enum:
                  - none
                  - api_key
                  - bearer
                  - oauth2_client_credentials
                  - oauth2_authorization_code
                  - custom_headers
                  - mtls
            x-enkrypt-org-id:
              description: >-
                Organization ID of the scan row. Sent only when the job is
                private.
              schema:
                type: string
                format: uuid
            x-enkrypt-user-id:
              description: User ID of the scan row. Sent only when the job is private.
              schema:
                type: string
                format: uuid
            x-enkrypt-project-name:
              description: Project name. Sent only when the job is private.
              schema:
                type: string
            x-enkrypt-registry-name:
              description: Registry name. Sent only when the job is private.
              schema:
                type: string
            x-enkrypt-is-official:
              description: '''true'' or ''false''. Sent only when the job is private.'
              schema:
                type: string
                enum:
                  - 'true'
                  - 'false'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MCPHubJobResultResponse'
        '403':
          $ref: '#/components/responses/MCPHubForbiddenPrivate'
        '422':
          $ref: '#/components/responses/MCPHubValidationError'
components:
  parameters:
    MCPHubJobIdPath:
      name: job_id
      in: path
      required: true
      description: Unique scan job UUID
      schema:
        type: string
        format: uuid
        example: 123e4567-e89b-12d3-a456-426614174000
  schemas:
    MCPHubJobResultResponse:
      title: MCPHubJobResultResponse
      type: object
      required:
        - job_id
        - job_status
      description: >-
        Complete results of a finished scan job. Ownership/registry fields
        (`org_id`, `user_id`, `project_name`, `registry_name`) are only
        populated for private jobs; for public jobs they are returned as `null`.
        These fields mirror the `x-enkrypt-*` response headers.
      properties:
        job_id:
          type: string
        job_status:
          type: string
        complete_result:
          type: object
          nullable: true
          additionalProperties: true
          description: >-
            Full scan output: vulnerabilities, tools scanned, and analysis
            metadata. Present once `job_status` is `completed`.
        error_message:
          type: string
          nullable: true
        is_official:
          type: boolean
          nullable: true
          description: >-
            Whether the scanned server is an official registry entry. Mirrors
            `x-enkrypt-is-official` header.
        is_private:
          type: boolean
          nullable: true
          description: >-
            Whether the scan is private (scoped to the calling account). Mirrors
            `x-enkrypt-is-private` header.
        scan_type:
          type: string
          nullable: true
          enum:
            - source
            - hosted
            - null
          description: Scan type. Mirrors `x-enkrypt-scan-type` header.
        repo_name:
          type: string
          nullable: true
          description: >-
            Repository / server identifier. Mirrors `x-enkrypt-repo-name`
            header.
        endpoint_url:
          type: string
          nullable: true
          description: >-
            Hosted MCP server endpoint URL (hosted scans only). Mirrors
            `x-enkrypt-endpoint-url` header.
        auth_type:
          type: string
          nullable: true
          description: >-
            Authentication type used for the hosted scan (hosted scans only).
            Mirrors `x-enkrypt-auth-type` header.
        source_url:
          type: string
          nullable: true
          description: >-
            Source URL of the scanned package or repository (source scans only).
            Same value exposed by `GET /mcp-hub/scan/{job_id}/status` and `GET
            /mcp-hub/scans`.
        source_version:
          type: string
          nullable: true
          description: >-
            Source version or git commit of the scanned source (source scans
            only).
        scan_version:
          type: string
          nullable: true
          description: >-
            Scanner version that produced this result. Disambiguates multiple
            scans of the same `(source_url, source_version)`.
        org_id:
          type: string
          format: uuid
          nullable: true
          description: Organization ID. Only populated when the job is private.
        user_id:
          type: string
          format: uuid
          nullable: true
          description: User ID. Only populated when the job is private.
        project_name:
          type: string
          nullable: true
          description: Project name. Only populated when the job is private.
        registry_name:
          type: string
          nullable: true
          description: Registry name. Only populated when the job is private.
      example:
        job_id: 123e4567-e89b-12d3-a456-426614174000
        job_status: completed
        is_official: false
        is_private: false
        scan_type: source
        repo_name: user/mcp-server
        endpoint_url: null
        auth_type: null
        source_url: https://github.com/user/mcp-server
        source_version: v1.2.3
        scan_version: 1.0.0-20251006
        org_id: null
        user_id: null
        project_name: null
        registry_name: null
        complete_result:
          scan_metadata:
            overall_severity: High
            total_vulnerabilities: 5
          tools_scanned: []
          vulnerabilities: []
    MCPHubAuthErrorResponse:
      title: MCPHubAuthErrorResponse
      type: object
      description: Error envelope returned by the MCP Hub auth/permission failures.
      properties:
        detail:
          type: string
    MCPHubValidationError:
      title: MCPHubValidationError
      type: object
      description: FastAPI-style validation error response.
      properties:
        detail:
          type: array
          items:
            type: object
            required:
              - loc
              - msg
              - type
            properties:
              loc:
                type: array
                items:
                  oneOf:
                    - type: string
                    - type: integer
              msg:
                type: string
              type:
                type: string
  responses:
    MCPHubForbiddenPrivate:
      description: >-
        Forbidden — either your organization does not have MCP Hub API access
        (an enterprise data-license feature; contact support@enkryptai.com to
        enable it), or the requested job is private and the caller is not
        authorized to view it.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/MCPHubAuthErrorResponse'
    MCPHubValidationError:
      description: Validation error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/MCPHubValidationError'
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: apikey

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.