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) returns all tasks. "standard" returns regular tasks. "project" returns tasks within a project (requires project_id). "agent_subtask" returns subtasks created by an agent (requires agent_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.
Filter tasks by the Open App (OAuth client) that created them. Mutually exclusive with api_key_id — passing both returns an invalid_argument error. OAuth tokens with only the create_task scope are already limited to their own app's tasks and may only pass their own client ID; passing another app's client ID returns a permission_denied error. IDs that don't match any of the user's tasks return an empty list.
Filter tasks by the API key that created them. Mutually exclusive with oauth_client_id — passing both returns an invalid_argument error. Not available to OAuth tokens with only the create_task scope (returns a permission_denied error). IDs that don't match any of the user's tasks return an empty list.
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.