---
title: "List pomodoro."
method: GET
path: "/pomodoro"
tags: ["pomodoro"]
---

# List pomodoro.

`GET /pomodoro`

## Request

- Base URL: `https://restivity.ai/api/v1`
- URL: `https://restivity.ai/api/v1/pomodoro`
- Auth: OAuth 2 (authorization code, authorization URL `https://restivity.ai/oauth/authorize`, token URL `https://restivity.ai/api/oauth/token`, scopes: `pomodoro:read`)

Cursor-paginated list of the caller's non-deleted pomodoro.

## Query parameters

- `task_id` string, uuid
- `project_id` string, uuid
- `status` union: One session status, or an array of statuses to match any of them.
  - 'active' | 'paused' | 'completed' | 'interrupted' | 'abandoned'
  - PomodoroSessionStatus[]
  - string
- `type` 'work' | 'short-break' | 'long-break'
- `cursor` string
- `limit` integer
- `sort_by` 'start_time' | 'end_time' | 'duration' | 'created_at'
- `sort_order` 'asc' | 'desc'
- `started_before` union: ISO 8601 date (YYYY-MM-DD) or full datetime with timezone offset, e.g. "2026-05-22" or "2026-05-22T00:00:00Z"
  - string, date
  - string, date-time
- `started_after` union: ISO 8601 date (YYYY-MM-DD) or full datetime with timezone offset, e.g. "2026-05-22" or "2026-05-22T00:00:00Z"
  - string, date
  - string, date-time
- `ended_before` union: ISO 8601 date (YYYY-MM-DD) or full datetime with timezone offset, e.g. "2026-05-22" or "2026-05-22T00:00:00Z"
  - string, date
  - string, date-time
- `ended_after` union: ISO 8601 date (YYYY-MM-DD) or full datetime with timezone offset, e.g. "2026-05-22" or "2026-05-22T00:00:00Z"
  - string, date
  - string, date-time

## Response `200`

Page of pomodoro.

- object
  - `data` PomodoroSession[], required
    - `id` string, uuid, required
    - `user_id` string, uuid, required
    - `task_id` string, uuid, nullable, required
    - `project_id` string, uuid, nullable, required
    - `start_time` string, required
    - `end_time` string, required
    - `duration` integer, required: Planned duration in seconds.
    - `elapsed_time` integer, required: Actual elapsed time in seconds.
    - `type` 'work' | 'short-break' | 'long-break', required
    - `status` 'active' | 'paused' | 'completed' | 'interrupted' | 'abandoned', required
    - `notes` string, required
    - `completion_notes` string, nullable
    - `interruptions` integer, required
    - `created_at` string, required
    - `deleted_at` string, nullable, required
    - `time_remaining` integer, nullable: Seconds remaining when paused / interrupted; null otherwise.
    - `resumed_at` string, nullable
    - `subtask_ids` string[], nullable
    - `firestore_id` string, nullable
    - `workspace_id` string, uuid, nullable
  - `next_cursor` string, nullable, required: Opaque cursor for the next page. `null` when this is the last page.

## Other responses

- `400`: Invalid request shape.
- `401`: Missing or invalid access token.
- `403`: Token lacks the required scope.
- `422`: Request body failed schema validation.
- `429`: Rate-limit exceeded for this tier.

---

[API](https://skmtc.dev/restivity/apis/restivity-rest-api.md) · [All operations](https://skmtc.dev/restivity/apis/restivity-rest-api/llms.txt) · [OpenAPI document](https://skmtc.dev/restivity/apis/restivity-rest-api/revisions/5764e41ebb3a?raw)
