task.list
Lists tasks with optional filtering and cursor-based pagination. Use scope to filter by task type, e.g. agent_subtask with agent_id for agent subtasks. See task.detail for full details on a specific task.
Headers
API key for direct authentication. Provide either this or Authorization, not both. See Authentication.
Query Parameters
Number of tasks to return per page. Default: 20, Max: 100.
Pagination cursor from the previous response's next_cursor field. Omit for the first page.
Sort direction by creation time. "desc" (default) returns newest first, "asc" returns oldest first.
asc, desc Filter by task type.
all(default) — all tasks.standard— regular tasks.project— tasks in a project. Requiresproject_id.agent_subtask— subtasks created by an agent. Requiresagent_id.
all, agent_subtask, project, standard Filter tasks by agent. Required when scope="agent_subtask". Supports the shortcut agent-default for the IM agent. Use agent.list to get available agent IDs.
Filter tasks by project. Required when scope="project". Use project.list to get available project IDs.
Return only tasks created by this Open App. Mutually exclusive with api_key_id; passing both returns invalid_argument. Unknown IDs return an empty list.
- API Key or Trusted client: any client ID.
- Standard OAuth client: any client ID with
manage_all_tasks; its own client ID only withcreate_task, and another ID returnspermission_denied.
Return only tasks created by this API key. Mutually exclusive with oauth_client_id; passing both returns invalid_argument. Unknown IDs return an empty list.
- API Key or Trusted client: any key ID.
- Standard OAuth client: any key ID with
manage_all_tasks; not available withcreate_taskonly, which returnspermission_denied.
Response
Tasks retrieved successfully.
Whether the request was successful.
true
Unique identifier for this API request.
Array of task objects matching the filter criteria.
Whether there are more tasks beyond this page. If true, use next_cursor to fetch the next page.
Cursor to pass as the cursor parameter for the next page. Only present when has_more is true.