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

# Get Task

> Fetch a task's status and result with the `task_id` returned on submission.

| status | Meaning |
| - | - |
| `SUBMITTED` | Accepted |
| `QUEUED` | Waiting to start |
| `IN_PROGRESS` | Running |
| `SUCCESS` | Finished; outputs are in the response |
| `FAILURE` | Failed; see `fail_reason` |

Every action shares this outer structure; where the outputs live is described in the Task result section of each endpoint page.


## OpenAPI

````yaml en/openapi/suno.json GET /suno/v2/fetch/{task_id}
openapi: 3.1.0
info:
  title: Suno API
  version: 1.0.0
  description: Suno
servers:
  - url: https://api.ephone.ai
security:
  - bearerAuth: []
paths:
  /suno/v2/fetch/{task_id}:
    get:
      summary: Get Task
      description: >-
        Fetch a task's status and result with the `task_id` returned on
        submission. Poll every 3 to 5 seconds until `status` becomes `SUCCESS`
        or `FAILURE`.
      operationId: suno_fetch
      parameters:
        - name: task_id
          in: path
          required: true
          schema:
            type: string
          description: The task ID returned when you submitted the task.
          example: 5adac6ee-...
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TaskResponse'
              example:
                code: success
                data:
                  task_id: 5adac6ee-...
                  action: music
                  model: suno/music
                  status: SUCCESS
                  progress: 100%
                  submit_time: 1757800000000
                  finish_time: 1757800120000
                  musics:
                    - music_id: 89b20862-...
                      title: Rain on Tin Roof
                      tags: lo-fi piano
                      audio_url: https://...
                      image_url: https://...
                      duration: 187.56
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GatewayError'
              example:
                error:
                  message: Invalid Token
                  type: rix_api_error
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                code: error
                message: task not found
        '429':
          description: Too Many Requests
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GatewayError'
              example:
                error:
                  message: Too many requests, please try again later
                  type: rix_api_error
components:
  schemas:
    TaskResponse:
      type: object
      properties:
        code:
          type: string
          enum:
            - success
        message:
          type: string
        data:
          $ref: '#/components/schemas/Task'
      required:
        - code
        - data
    GatewayError:
      type: object
      properties:
        error:
          type: object
          properties:
            message:
              type: string
            type:
              type: string
    Error:
      type: object
      properties:
        code:
          type: string
        message:
          type: string
    Task:
      type: object
      properties:
        task_id:
          type: string
          description: Task ID.
        action:
          type: string
          description: Action name, such as `music`.
        model:
          type: string
          description: Model name, such as `suno/music`.
        status:
          type: string
          description: Task status. See the table above.
          enum:
            - SUBMITTED
            - QUEUED
            - IN_PROGRESS
            - SUCCESS
            - FAILURE
        progress:
          type: string
          description: Progress, such as `100%`.
        fail_reason:
          type: string
          description: Why the task failed. Only present when `status` is `FAILURE`.
        submit_time:
          type: integer
          description: Submission time as a Unix timestamp in milliseconds.
        finish_time:
          type: integer
          description: Completion time as a Unix timestamp in milliseconds.
      required:
        - task_id
        - action
        - model
        - status
      additionalProperties: true
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Send your API key in the `Authorization: Bearer YOUR_API_KEY` header.'

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.