List tasks
List the organization's tasks, most recent first, with cursor pagination. Filter by status (or active), api_key_id, and a created_after/created_before range; pass fields=summary to leave out input/output (recommended for polling — then fetch GET /v1/tasks/{id} for the payload).
Request
- Base URL: https://api.hotapi.ai
- URL: https://api.hotapi.ai/v1/tasks
- Auth: HTTP bearer
Query parameters
Max results (default 20, max 100).
Pagination cursor from a prior next_cursor.
Filter by lifecycle status, or active for everything not yet terminal (pending, queued, processing).
Free-text search over task id / model / task kind.
full (default) includes input and output; summary omits both. Prefer summary when polling a list — an inlined image input can be megabytes.
Only tasks created by this API key of the organization.
ISO 8601. Only tasks created at or after this instant.
ISO 8601 (exclusive). Only tasks created before this instant.
Response
A page of tasks. fields=full (default) returns TaskList; fields=summary returns TaskListSummary.
Example response
{
"data": [
{
"id": "task_8sd9f7aQ2",
"model": "z-image-spicy",
"task_kind": "image.generate",
"error": {
"type": "provider_error",
"code": "generation_failed",
"message": "Generation failed"
},
"estimated_credits_cost": 26,
"api_key_id": "ak_8sd9f7aQ2"
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.