Skip to main content
GET
/
tasks
/
{id}
Query task information
curl --request GET \
  --url https://api.sinancode.com/v1/tasks/{id} \
  --header 'Authorization: Bearer <token>'
{
  "error_code": "<string>",
  "error_msg": "<string>",
  "id": "01234567-89ab-cdef-0123-456789abcdef",
  "result": [
    "<string>"
  ],
  "status": "processing"
}
Query the execution status and generation results of asynchronous tasks by task ID. All image and video generation requires polling task status using this endpoint.

Authorizations

Authorization
string
header
required

Please use your API Token for authentication

Path Parameters

id
string
required

Task ID

Response

OK

id
string
required
Example:

"01234567-89ab-cdef-0123-456789abcdef"

status
string
required
Example:

"processing"

error_code
string
error_msg
string

Friendly error message (fallback to error_code if empty)

result
string[]