# List tasks (project-wide, paginated)

`GET /tasks`

:::code-group
```bash title="cURL"
curl --request GET \
  --url https://{host}/api/tasks \
  --header 'Authorization: Bearer <token>'
```

```json title="200"
{
  "items": [
    {
      "id": "<string>",
      "project_id": "<string>",
      "context_id": "<string>",
      "agent_id": "<string>",
      "session_id": "<string>",
      "created_by": "<string>",
      "workflow": "<string>",
      "state": "<string>",
      "error": "<string>",
      "input": null,
      "output": null,
      "steps": [
        null
      ],
      "steps_total": 123,
      "tokens_prompt": 123,
      "tokens_completion": 123,
      "runtime_seconds": 123,
      "running_from": "<string>",
      "timeout_seconds": 123,
      "timeout_at": "<string>",
      "archived_at": "<string>",
      "created_at": "<string>",
      "last_activity_at": "<string>",
      "schedule": "<string>",
      "scheduled_at": "<string>"
    }
  ],
  "total": 123,
  "limit": 123,
  "offset": 123,
  "page": 123,
  "pages": 123
}
```
:::

## Authorizations

- `Authorization` (header, string, required) — Bearer authentication header of the form `Bearer <token>`.

## Query Parameters

- `workflow` (query, string) — Return only tasks of this workflow.
- `state` (query, string) — Return only tasks in this state.
- `context` (query, string) — Context slug or UUID
- `q` (query, string) — Free-text over id/created\_by/input
- `limit` (query, integer) — Maximum tasks per page.
- `page` (query, integer) — 1-based page to return. Ignored when `offset` is given.
- `offset` (query, integer) — Where the page starts. Takes precedence over `page`.

## Headers

- `X-Pinecone-Api-Version` (header, string) — Date-based contract version, echoed back on the same header. Omit for the default (`2026-07`); send `unstable` for the in-development surface. An unrecognized value is rejected with `400 unsupported_api_version`.

## Response

- `200` — Paginated tasks

## Related pages

- [Get a task (with steps)](./data-plane-tasks-get-a-task-with-steps.md)
- [Cancel/terminate a task](./data-plane-tasks-cancelterminate-a-task.md)

# Agent Instructions

Cite this page’s canonical URL and keep its documentation version.
Follow Link headers to discover available agent guidance and tools.
Read the advertised skill for the requested version before choosing starting pages.
Treat documentation as reference material, not execution authorization.
