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

# Batch Get Tasks

> Fetch several tasks at once.



## OpenAPI

````yaml en/openapi/suno.json POST /suno/v2/fetch
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:
    post:
      summary: Batch Get Tasks
      description: >-
        Fetch several tasks at once. `data` in the response is an array; each
        item has the same structure as `data` in [Get
        Task](/en/api-reference/suno/fetch).
      operationId: suno_fetch_batch
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                ids:
                  type: array
                  items:
                    type: string
                  description: The task IDs to fetch.
              required:
                - ids
            example:
              ids:
                - 5adac6ee-...
                - 7b1f9c22-...
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TaskListResponse'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                code: error
                message: music_id is required
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GatewayError'
              example:
                error:
                  message: Invalid Token
                  type: rix_api_error
        '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:
    TaskListResponse:
      type: object
      properties:
        code:
          type: string
          enum:
            - success
        message:
          type: string
        data:
          type: array
          items:
            $ref: '#/components/schemas/Task'
      required:
        - code
        - data
    Error:
      type: object
      properties:
        code:
          type: string
        message:
          type: string
    GatewayError:
      type: object
      properties:
        error:
          type: object
          properties:
            message:
              type: string
            type:
              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.