Start a timer on a task
Start tracking time on a task. Only one timer runs at a time, so a timer running on another task is stopped first (returned as `stopped`). Starting the task that already runs changes nothing (200, `already_running`). Refused for a completed or cancelled task (400) and an encrypted one (403).
Start tracking time on a task. Only one timer runs at a time, so a timer running on another task is stopped first (returned as stopped). Starting the task that already runs changes nothing (200, already_running). Refused for a completed or cancelled task (400) and an encrypted one (403).
Authorization
bearerAuth Your PerspecTask API key (starts with pt_live_). Each key carries scopes: tasks:read (GET), tasks:write (full create/update), and tasks:write:meta (create/update everything EXCEPT editing title/description of existing tasks — for automation that manages workflow without rewriting human-authored content). KPIs have their own: kpis:read and kpis:write (create, update and delete KPI entries). Time tracking: timers:read and timers:write (start, stop and edit timers). Task history: history:read (read only; nobody can edit it).
In: header
Path Parameters
Response Body
application/json
application/json
curl -X POST "https://example.com/tasks/string/timers"{
"timer": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"task_id": "string",
"started_at": "2026-11-23T09:00:00.000Z",
"ended_at": "string",
"duration": 0,
"running": true,
"discarded": true
},
"stopped": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"task_id": "string",
"started_at": "2026-11-23T09:00:00.000Z",
"ended_at": "string",
"duration": 0,
"running": true,
"discarded": true
},
"already_running": true
}{
"timer": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"task_id": "string",
"started_at": "2026-11-23T09:00:00.000Z",
"ended_at": "string",
"duration": 0,
"running": true,
"discarded": true
},
"stopped": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"task_id": "string",
"started_at": "2026-11-23T09:00:00.000Z",
"ended_at": "string",
"duration": 0,
"running": true,
"discarded": true
},
"already_running": true
}Get the running timer and time worked today GET
The running timer, if any, and the seconds of finished timers today. Pass `day_start` with the user's local midnight so today follows their time zone.
Stop the running timer POST
Stop whatever timer is running. A timer stopped under 5 seconds is deleted instead of kept (`discarded: true`).