---
title: "GET /api/v1/tasks"
method: GET
path: "/api/v1/tasks"
tags: ["Tasks"]
---

# GET /api/v1/tasks

`GET /api/v1/tasks`

Retrieves multiple tasks.

## Query parameters

- `agentIds` union
  - string[]
  - string, uuid — A UUID v4 string that identifies an entity.
- `pageNumber` number — The page number.
- `pageSize` number — The page size.
- `versionIds` union
  - string[]
  - string, uuid — A UUID v4 string that identifies an entity.

## Headers

- `authorization` string, required — The API key to use for authentication. Can be created in the api keys section on the workspace settings page.

## Response `200`

Retrieves all tasks for the workspace.

- object[]
  - `createdAt` string, date-time, required
  - `id` string, uuid, required — A UUID v4 string that identifies an entity.
  - `isRemoved` boolean, required
  - `referenceId` string, uuid, nullable, required — The ID of the original entity in production.
  - `updatedAt` string, date-time, required
  - `versionId` string, uuid, required — A UUID v4 string that identifies an entity.
  - `agentId` string, uuid, required — The agent ID associated with the task.
  - `condition` string, required — The condition that must be met for the task to be executed.
  - `name` string, required — The display name of the task.
  - `prompt` string, required — What will be set as the main object of the agent when the task is selected.
  - `status` 'active' | 'inactive', required — The lifecycle status of the task.

## Other responses

- `401` — Unauthorized.

---

[API](https://skmtc.dev/zaia/apis/public-api.md) · [All operations](https://skmtc.dev/zaia/apis/public-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/zaia/public-api/revisions/58da3b2ba49f/schema)
