---
title: "List tasks"
method: GET
path: "/v2/tasks"
tags: ["Tasks"]
---

# List tasks

`GET /v2/tasks`

## Request

- Base URL: `https://api.zenzap.co`
- URL: `https://api.zenzap.co/v2/tasks`
- Auth: one of:
  - HTTP bearer and API key in header `X-Signature`
  - OAuth 2
    - Client credentials
    - Token URL: `https://api.zenzap.co/oauth/token` scopes: `task:read`
- TypeScript: <https://skmtc.dev/zenzap/apis/zenzap-external-integration-api/docs/v2/tasks/get.ts> (a function with typed inputs; its response is checked against the schema)

List tasks visible to your bot.

Optional filters:
- `topicId`: only tasks from a specific topic
- `status`: `Open` or `Done`
- `assignee`: profile ID of assignee (pass empty string to filter unassigned tasks)

Pagination:
- `limit`: default `50`, max `100`
- `cursor`: opaque cursor from the previous response (`nextCursor`)

## Query parameters

- `topicId` string, uuid
- `status` 'Open' | 'Done'
- `assignee` string
- `limit` integer
- `cursor` string

## Headers

- `X-Signature` string
- `X-Timestamp` integer

## Response `200`

Tasks retrieved successfully

- TaskListResponse
  - `tasks` TaskResponse[]: Tasks matching the provided filters
    - `id` string, uuid: Task ID
    - `topicId` string, uuid: Topic ID the task belongs to
    - `title` string: Task title
    - `description` string: Task description
    - `status` 'Open' | 'Done': Task status
    - `assignee` string: Assignee profile ID (empty if unassigned)
    - `dueDate` integer: Due date as Unix timestamp in milliseconds (0 if not set)
    - `isDueDateTimeSelected` boolean: Whether due date includes time
    - `index` number, double: Internal task ordering index
    - `createdAt` integer: Task creation timestamp (ms)
    - `updatedAt` integer: Task last update timestamp (ms)
  - `nextCursor` string: Cursor for the next page. Omitted when there are no more results.
  - `hasMore` boolean: Whether there are more tasks available.

## Other responses

- `400`: Bad request - invalid input
- `401`: Unauthorized - invalid or missing API token
- `500`: Internal server error

---

[API](https://skmtc.dev/zenzap/apis/zenzap-external-integration-api.md) - [All operations](https://skmtc.dev/zenzap/apis/zenzap-external-integration-api/llms.txt) - [OpenAPI document](https://skmtc.dev/zenzap/apis/zenzap-external-integration-api/revisions/37faae2c2036?raw)
