---
title: "Get task status and result"
method: GET
path: "/api/v1/task/{taskId}"
tags: ["Tasks"]
---

# Get task status and result

`GET /api/v1/task/{taskId}`

Retrieve a task by id. Poll this endpoint until `status` is one of
`success`, `failure`, or `timeout`. Tasks older than 1 hour in `pending`
or `running` state automatically transition to `timeout` with a refund.

## Path parameters

- `taskId` string, uuid, required

## Response `200`

Task details

- TaskResponse
  - `code` 200, required
  - `data` TaskData, required
    - `task_id` string, uuid, required
    - `model` 'suno' | 'udio', required
    - `type` 'music' | 'lyrics' | 'upload' | 'concat', required
    - `status` 'pending' | 'running' | 'success' | 'failure' | 'timeout', required
    - `credits_cost` integer, required
    - `input` object — The `input` payload as originally submitted.
    - `output` object, nullable — Present on `success`. Shape varies by task type. For `music`, includes `result` array with `audio_url`, `image_url`, etc.
    - `error` string, nullable — Present on `failure` or `timeout`.
    - `created_at` string, date-time, nullable
    - `completed_at` string, date-time, nullable

## Other responses

- `401` — Missing or invalid API key.
- `404` — Task not found, or the task doesn't belong to the authenticated account.
- `429` — Rate limit exceeded. Default quota is 120 requests per 60 seconds per API key.
- `500` — Unexpected server error. Retry only when the operation is known to be safe; task creation may have an ambiguous outcome until idempotency support is available.

---

[API](https://skmtc.net/sunor/apis/sunor-api.md) · [All operations](https://skmtc.net/sunor/apis/sunor-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/sunor/sunor-api/versions/1c23fd441ed1/schema)
