Zavtrack Sign in

Zavtrack REST API: tasks and tokens

HTTP requests for your own integration: list tasks, create one and read it back. Examples use JSON and an agent token.

Base URL and authentication

Base URL: https://app.zavtrack.com/api/v1. Paths in the HTTP examples already include /api/v1. Send Authorization: Bearer EXAMPLE_AGENT_TOKEN, replacing the placeholder with an agent token from Agents.

The example identifiers are synthetic. Replace space_id with your group’s ID. title holds the task name, note the details, and est_minutes the estimate in minutes. status:"backlog" identifies an open task.

Read a task list

GET returns 200 with tasks and next_cursor. This example shows an empty search result. When next_cursor is not null, pass it as cursor on the next request and keep the filters unchanged.

GET /api/v1/tasks?status=backlog&q=EXAMPLE_NO_MATCH&limit=5
Authorization: Bearer EXAMPLE_AGENT_TOKEN

HTTP 200
{
  "tasks": [],
  "next_cursor": null
}

Create a task

POST takes title, not the MCP field text. A newly created task returns 201. The response below is an excerpt: the server also includes timestamps, revisions and other task fields. The supplied id lets your system identify the resulting task.

POST /api/v1/tasks
Authorization: Bearer EXAMPLE_AGENT_TOKEN
Content-Type: application/json

{
  "id": "01900000-0000-7000-8000-000000000001",
  "title": "Prepare meeting questions",
  "note": "Write three questions about the release.",
  "status": "backlog",
  "space_id": "01900000-0000-7000-8000-000000000002",
  "est_minutes": 20,
  "tags": [
    "work"
  ]
}

HTTP 201
{
  "id": "01900000-0000-7000-8000-000000000001",
  "title": "Prepare meeting questions",
  "status": "backlog",
  "est_minutes": 20,
  "tags": [
    "work"
  ]
}

Read the created task

GET with the full identifier returns 200 and the task object. This is a response excerpt for the task created above. Store its id in your system for subsequent requests.

GET /api/v1/tasks/01900000-0000-7000-8000-000000000001
Authorization: Bearer EXAMPLE_AGENT_TOKEN

HTTP 200
{
  "id": "01900000-0000-7000-8000-000000000001",
  "title": "Prepare meeting questions",
  "status": "backlog",
  "est_minutes": 20,
  "tags": [
    "work"
  ]
}

Errors and retries

A missing or rejected Bearer token produces 401. Invalid JSON on task creation produces 400 bad_request. Do not treat an error as an empty list or a successful write.

A create request with the same id can return the existing accessible task with status 200. It does not update that task. After a network interruption, read the task by id and check its state first.