Authentication
All public APIs use Bearer Token by default:Error Structure
When troubleshooting failed requests, prioritize:- HTTP status codes
error.codeerror.message
Common Status Codes
| HTTP | Meaning | Recommendation |
|---|---|---|
| 400 | Bad Request | Check required fields, model name, and path parameters |
| 401 | Authentication failed | Check whether the API Key is valid |
| 404 | Not Found | Check the query path and Task ID |
| 429 | Rate Limit Exceeded | Reduce request frequency or retry |
| 500 | Internal Server Error | Record the request and retry, or contact support |
Common Status Enums
Common role enums:systemuserassistant
queuedrunningsucceededfailedin_progresscompleted
Asynchronous Task Query
Current public documentation focuses on “Polling task results”. Common methods include:GET /v1/videos/{task_id}GET /v1/responses/{response_id}GET /api/v3/contents/generations/tasks/{task_id}GET /suno/fetch/{task_id}GET /ent/v2/tasks/{task_id}/creationsGET /v1beta/{operation_name}
- Implement retries and backoff for task queries
- Persist
task_idoroperation_name - Use result polling as a fallback mechanism for asynchronous task status checks.
