> ## 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.

# Neuen Scan starten

> Startet einen neuen BLAST-Scan mit Datei-Upload. Akzeptiert eine oder mehrere zu scannende Dateien.



## OpenAPI

````yaml /de/api-reference/openapi.json post /start-scan
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:
  /start-scan:
    post:
      tags:
        - Corgea-Scan starten
      summary: Neuen Scan starten
      description: >-
        Startet einen neuen BLAST-Scan mit Datei-Upload. Akzeptiert eine oder
        mehrere zu scannende Dateien.
      operationId: startScan
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              type: object
              required:
                - scan_type
                - files
              properties:
                scan_type:
                  type: string
                  enum:
                    - blast
                  default: blast
                  description: Derzeit werden nur BLAST-Scans unterstützt
                repo_url:
                  type: string
                  description: URL des Repositorys (optional)
                branch:
                  type: string
                  description: Zu scannender Branch (optional)
                sha:
                  type: string
                  description: Zu scannende Commit-SHA (optional)
                files:
                  type: array
                  items:
                    type: string
                    format: binary
                  description: >-
                    Zu scannende Quellcodedateien. Für BLAST-Scans wird derzeit
                    nur eine einzelne Datei unterstützt.
      responses:
        '200':
          description: Scan erfolgreich gestartet
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    example: Successfully initiated upload at /tmp/uploads/transfer_id
                  transfer_id:
                    type: string
                    format: uuid
                    example: c9b0a8c7-f9b4-4c10-9d58-cd4c7e1c9c52
                  status:
                    type: string
                    enum:
                      - OK
                    example: OK
        '400':
          description: Ungültiger Request – Validierungsfehler
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    example: error
                  message:
                    type: string
                    example: No files uploaded for blast
              examples:
                no_files:
                  summary: Keine Dateien hochgeladen
                  value:
                    status: error
                    message: No files uploaded for blast
                multiple_files:
                  summary: Mehrere Dateien für BLAST-Scan
                  value:
                    status: error
                    message: Multiple files uploaded for blast
                scan_not_enabled:
                  summary: Scan-Typ nicht aktiviert
                  value:
                    status: error
                    message: Only Blast scan is currently enabled by the API
                file_validation_error:
                  summary: Dateivalidierung fehlgeschlagen
                  value:
                    status: error
                    message: 'File validation error: Invalid file type or size'
        '403':
          description: Zugriff verweigert
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    example: Permission denied
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

````