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

# タスクステータスの照会

> タスクIDによる非同期タスクのステータス、進捗、結果情報の照会



## OpenAPI

````yaml ja/api-manual/task-management/get-task-detail.json GET /v1/tasks/{task_id}
openapi: 3.1.0
info:
  title: タスク詳細取得 API
  description: タスクIDによる非同期タスクのステータス、進捗、結果情報の照会
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://api.evolink.ai
    description: 本番環境
security:
  - bearerAuth: []
tags:
  - name: タスク管理
    description: 非同期タスク管理関連API
paths:
  /v1/tasks/{task_id}:
    get:
      tags:
        - タスク管理
      summary: タスクステータスの照会
      description: タスクIDによる非同期タスクのステータス、進捗、結果情報の照会
      operationId: getTaskDetail
      parameters:
        - name: task_id
          in: path
          required: true
          schema:
            type: string
          description: タスクID、照会時は{}を無視し、非同期タスクレスポンスボディのidをパスの末尾に追加してください
          example: task-unified-1756817821-4x3rx6ny
      responses:
        '200':
          description: タスクステータスの詳細
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TaskDetailResponse'
        '400':
          description: リクエストパラメータエラー、フォーマットエラー
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: invalid_task_id
                  message: Invalid task ID format, must start with 'task-unified-'
                  type: invalid_request_error
                  param: task_id
        '401':
          description: 未認証、トークンが無効または期限切れ
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: unauthorized
                  message: Authentication required
                  type: authentication_error
        '402':
          description: クォータ不足、チャージが必要です
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: quota_exceeded
                  message: Insufficient quota. Please top up your account.
                  type: insufficient_quota
        '403':
          description: アクセス権限がありません
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: permission_denied
                  message: You don't have permission to access this task
                  type: invalid_request_error
        '404':
          description: リソースが存在しません
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: task_not_found
                  message: The requested task could not be found
                  type: invalid_request_error
        '429':
          description: リクエストレート制限を超過しました
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: rate_limit_exceeded
                  message: Rate limit exceeded
                  type: evo_api_error
        '500':
          description: 内部サーバーエラー
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: internal_error
                  message: Failed to retrieve task status
                  type: api_error
components:
  schemas:
    TaskDetailResponse:
      type: object
      properties:
        created:
          type: integer
          description: タスク作成タイムスタンプ
          example: 1756817821
        id:
          type: string
          description: タスク ID
          example: task-unified-1756817821-4x3rx6ny
        model:
          type: string
          description: 使用されたモデル
          example: gemini-3.1-flash-image-preview
        object:
          type: string
          description: タスクタイプ
          enum:
            - image.generation.task
            - video.generation.task
            - audio.generation.task
          example: image.generation.task
        progress:
          type: integer
          minimum: 0
          maximum: 100
          description: タスク進捗率
          example: 100
        results:
          type: array
          items:
            type: string
            format: uri
          description: タスク結果リスト（完了時に提供）
          example:
            - http://example.com/image.jpg
        status:
          type: string
          description: タスクステータス
          enum:
            - pending
            - processing
            - completed
            - failed
          example: completed
        error:
          type: object
          nullable: true
          description: >-
            タスク失敗時のエラー情報（status が failed の場合のみ表示）。注意：ここでの error.code
            は文字列型のビジネスエラーコードであり、HTTP
            ステータスコードとは異なります。完全なエラーコード一覧はエラーコードリファレンスをご参照ください。
          properties:
            code:
              type: string
              description: ビジネスエラーコード（文字列型）
              example: content_policy_violation
            message:
              type: string
              description: ユーザーフレンドリーなエラー説明とトラブルシューティングのヒント
              example: |-
                Content policy violation.
                Your request was blocked by safety filters.
            type:
              type: string
              description: エラータイプ識別子、常に "task_error"
              example: task_error
        task_info:
          type: object
          description: タスクの詳細情報
          properties:
            can_cancel:
              type: boolean
              description: タスクをキャンセルできるかどうか
              example: false
        type:
          type: string
          description: タスクタイプ
          enum:
            - image
            - video
            - audio
            - text
          example: image
    ErrorResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              description: エラーコード（文字列型）
              example: invalid_task_id
            message:
              type: string
              description: エラー説明メッセージ
              example: Invalid task ID format
            type:
              type: string
              description: エラータイプ
              example: invalid_request_error
            param:
              type: string
              description: 関連パラメータ名
              example: task_id
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: |-
        ##すべてのAPIにBearer Token認証が必要です##

        **APIキーの取得：**

        [APIキー管理ページ](https://evolink.ai/dashboard/keys)にアクセスしてAPIキーを取得してください

        **リクエストヘッダーに追加：**
        ```
        Authorization: Bearer YOUR_API_KEY
        ```

````