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

# 新しいスキャンを開始

> ファイルをアップロードして新しいBLASTスキャンを開始します。スキャン対象として1つ以上のファイルを受け付けます。



## OpenAPI

````yaml /ja/api-reference/openapi.json post /start-scan
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:
  /start-scan:
    post:
      tags:
        - Corgeaスキャンの開始
      summary: 新しいスキャンを開始
      description: ファイルをアップロードして新しいBLASTスキャンを開始します。スキャン対象として1つ以上のファイルを受け付けます。
      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: 現在サポートされているのはblastスキャンのみです
                repo_url:
                  type: string
                  description: リポジトリのURL（任意）
                branch:
                  type: string
                  description: スキャン対象のブランチ（任意）
                sha:
                  type: string
                  description: スキャン対象のコミットSHA（任意）
                files:
                  type: array
                  items:
                    type: string
                    format: binary
                  description: スキャン対象のソースコードファイル。BLASTスキャンで現在サポートされているのは1ファイルのみです。
      responses:
        '200':
          description: スキャンを正常に開始しました
          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: 不正なリクエスト - 検証エラー
          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: ファイルがアップロードされていません
                  value:
                    status: error
                    message: No files uploaded for blast
                multiple_files:
                  summary: BLASTスキャンに複数のファイルが指定されています
                  value:
                    status: error
                    message: Multiple files uploaded for blast
                scan_not_enabled:
                  summary: スキャンタイプが有効になっていません
                  value:
                    status: error
                    message: Only Blast scan is currently enabled by the API
                file_validation_error:
                  summary: ファイルの検証に失敗しました
                  value:
                    status: error
                    message: 'File validation error: Invalid file type or size'
        '403':
          description: 権限がありません
          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キー
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Authorizationヘッダーで使用するOAuth2アクセストークン（JWT）

````