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

# スキャンをアップロード

> CLIツールで完了したスキャンレポートをアップロードします。このエンドポイントは、Semgrep、Snyk、Checkmarx、CodeQL、Fortifyで生成済みのスキャン結果を受け取り、システムに取り込みます。



## OpenAPI

````yaml /ja/api-reference/openapi.json post /scan-upload
openapi: 3.0.0
info:
  title: Corgea API
  version: 1.0.0
  description: Corgeaのスキャン機能および脆弱性管理機能を操作するためのAPI
servers:
  - url: https://www.corgea.app/api/v1
    description: 本番サーバー
security:
  - CorgeaToken: []
  - BearerAuth: []
paths:
  /scan-upload:
    post:
      tags:
        - サードパーティスキャンのアップロード
      summary: スキャンをアップロード
      description: >-
        CLIツールで完了したスキャンレポートをアップロードします。このエンドポイントは、Semgrep、Snyk、Checkmarx、CodeQL、Fortifyで生成済みのスキャン結果を受け取り、システムに取り込みます。
      operationId: scanUpload
      parameters:
        - name: run_id
          in: query
          required: true
          schema:
            type: string
          description: スキャンレポートに関連付けられた実行ID
        - name: engine
          in: query
          required: true
          schema:
            type: string
            enum:
              - checkmarx
              - codeql
              - fortify
              - semgrep
              - snyk
          description: スキャンに使用したエンジン
        - name: project
          in: query
          required: true
          schema:
            type: string
          description: プロジェクト名
        - name: repo_data
          in: query
          required: false
          schema:
            type: string
          description: リポジトリ情報（branch_name、integration_urlなど）を含むBase64エンコード済みJSON文字列
      requestBody:
        required: true
        description: UTF-8テキスト形式のスキャンレポート内容（通常はSARIFまたはJSON形式）
        content:
          text/plain:
            schema:
              type: string
      responses:
        '200':
          description: スキャンレポートを正常にアップロードしました
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    example: ok
        '400':
          description: リクエストまたはコンテンツが無効です
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    example: invalid content
components:
  securitySchemes:
    CorgeaToken:
      type: apiKey
      in: header
      name: CORGEA-TOKEN
      description: 認証用のAPIキー
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Authorizationヘッダーで使用するOAuth2アクセストークン（JWT）

````