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

# Scan-Report abrufen

> Ruft den Scan-Report im HTML-, SARIF- oder Markdown-Format ab



## OpenAPI

````yaml /de/api-reference/openapi.json get /scan/{scan_id}/report
openapi: 3.0.0
info:
  title: Corgea API
  version: 1.0.0
  description: >-
    API für die Interaktion mit den Scan- und
    Schwachstellenmanagement-Funktionen von Corgea
servers:
  - url: https://www.corgea.app/api/v1
    description: Produktionsserver
security:
  - CorgeaToken: []
  - BearerAuth: []
paths:
  /scan/{scan_id}/report:
    get:
      tags:
        - Scans
        - Reports
      summary: Scan-Report abrufen
      description: Ruft den Scan-Report im HTML-, SARIF- oder Markdown-Format ab
      operationId: getScanReport
      parameters:
        - name: scan_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: ID des Scans
        - name: format
          in: query
          required: false
          schema:
            type: string
            enum:
              - sarif
              - html
              - markdown
            default: sarif
          description: Report-Format (html, sarif oder markdown)
        - name: view
          in: query
          required: false
          schema:
            type: string
            default: cwe
          description: Ansichtstyp für HTML-Reports
        - name: urgency
          in: query
          required: false
          schema:
            type: string
            enum:
              - CR
              - HI
              - ME
              - LO
          description: Nach Dringlichkeitsstufe filtern
      responses:
        '200':
          description: Report erfolgreich abgerufen
          content:
            application/json:
              schema:
                description: SARIF-Report, wenn format=sarif
                type: object
            text/html:
              schema:
                type: string
                description: HTML-Report, wenn format=html
            text/markdown:
              schema:
                type: string
                description: >-
                  Markdown-Report, wenn format=markdown. Issue-Einträge
                  enthalten die zuständige Person, sofern verfügbar.
          headers:
            Content-Disposition:
              description: Dateiname für den Download, wenn format=sarif
              schema:
                type: string
        '403':
          description: Zugriff verweigert
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    example: Permission denied
        '404':
          description: Scan nicht gefunden
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    example: error
                  message:
                    type: string
                    example: Scan not found
        '500':
          description: Report-Generierung fehlgeschlagen
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    example: error
                  message:
                    type: string
                    example: >-
                      SARIF export failed. Please try again later or contact
                      support.
components:
  securitySchemes:
    CorgeaToken:
      type: apiKey
      in: header
      name: CORGEA-TOKEN
      description: API-Key für die Authentifizierung
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: OAuth2-Access-Token (JWT) im Authorization-Header

````