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

# Get Task Status

> Query task status and results

<Info>
  All async endpoints (music, plan, video-to-music, dialogue, stems, upload) return a `taskId`. Use this endpoint to poll until the task reaches a terminal status (`completed`, `failed`, or `timeout`). `GET /eleven/voices` is synchronous and does not use this endpoint.
</Info>

## Task Status Values

| Status       | Description                              |
| ------------ | ---------------------------------------- |
| `pending`    | Task is queued                           |
| `ready`      | Task is ready to be processed            |
| `assigned`   | Task has been assigned to a worker       |
| `processing` | Task is being processed                  |
| `completed`  | Task completed — check `result` for data |
| `failed`     | Task failed — check `errorMessage`       |
| `cancelled`  | Task was cancelled                       |
| `timeout`    | Task timed out                           |

<Tip>
  Use 3-5 second polling intervals. Music generation typically takes 30-120 seconds depending on track length.
</Tip>


## OpenAPI

````yaml GET /eleven/tasks
openapi: 3.0.0
info:
  title: Eleven AI
  description: API documentation for Eleven AI
  version: 1.0.0
  contact: {}
servers:
  - url: https://api.mountsea.ai
    description: API Gateway
security: []
tags:
  - name: eleven
    description: ''
paths:
  /eleven/tasks:
    get:
      tags:
        - eleven
      summary: 查询任务状态
      description: 根据 taskId 查询任务执行状态和结果，支持轮询
      operationId: ApiPublicController_getTaskResult
      parameters:
        - name: taskId
          required: true
          in: query
          description: 任务ID (eleven-xxxxxxxx-...)
          schema:
            type: string
      responses:
        '200':
          description: 任务状态
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TaskResultDto'
      security:
        - bearerAuth: []
components:
  schemas:
    TaskResultDto:
      type: object
      properties:
        taskId:
          type: string
          description: 任务 ID
        status:
          enum:
            - pending
            - ready
            - assigned
            - processing
            - completed
            - failed
            - cancelled
            - timeout
          type: string
          description: 任务状态
        result:
          type: object
          description: 任务结果（直接透传协议层返回，类型根据任务类型不同而变化）
          nullable: true
        errorMessage:
          type: string
          description: 错误信息
        errorCode:
          type: number
          description: 错误代码
        finishedAt:
          format: date-time
          type: string
          description: 完成时间
        createdAt:
          format: date-time
          type: string
          description: 创建时间
        traceId:
          type: string
          description: 追踪 ID
      required:
        - taskId
        - status
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````