{"components":{"schemas":{"Error":{"properties":{"error":{"type":"string"}},"required":["error"],"type":"object"}},"securitySchemes":{"bearer":{"description":"An API key (kny_…) from Settings → Account → API keys.","scheme":"bearer","type":"http"}}},"info":{"description":"Clients, projects, tasks and to-dos, timers, breaks, time entries, reports and working days of the account the key belongs to. A task is timed (it holds tracked time) or a to-do (a checklist item without time); its type is set when it is created and never changes. Times are ISO 8601; durations in minutes and as h:mm; money in cents of the client's currency.","title":"Time tracking REST API","version":"1"},"openapi":"3.1.0","paths":{"/agent-work":{"post":{"description":"For a coding agent's add-on only: records the totals so far of the agent's own session on a task and day. Never call it because the user asks; it does not track the user's time.\n\nThe same as the MCP tool record_agent_work.","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"description":"One report: the totals so far of an agent's session on a task and day.","properties":{"agent":{"description":"The agent's key: lower-case letters, digits, '.', '_' or '-', 1–40\ncharacters, starting with a letter or digit, e.g. claude-code, codex.","type":"string"},"cache_read_tokens":{"description":"Tokens read from the prompt cache so far, 0 or more.","format":"int64","type":"integer"},"cache_write_tokens":{"description":"Tokens written to the prompt cache so far, 0 or more.","format":"int64","type":"integer"},"day":{"description":"The day the work belongs to, as YYYY-MM-DD.","type":"string"},"input_tokens":{"description":"Input tokens so far, 0 or more.","format":"int64","type":"integer"},"last_at":{"description":"When it last did something, ISO 8601.","type":"string"},"model":{"description":"The model the agent used last, e.g. claude-opus-4-5; none keeps the\nstored one.","type":["string","null"]},"output_tokens":{"description":"Output tokens so far, 0 or more.","format":"int64","type":"integer"},"project_id":{"description":"The project worked on (an id from list_projects), when there is no\ntask; a task's own project wins over it.","type":["string","null"]},"session_id":{"description":"The agent's id of the session, 1–200 characters. It must be unique\nacross all sessions of that agent (use a UUID): two sessions sharing an\nid would count into the same rows.","type":"string"},"started_at":{"description":"When the session's work on this task and day began, ISO 8601.","type":"string"},"task_id":{"description":"The task worked on (an id from list_tasks); none for work on no task.","type":["string","null"]},"turns":{"description":"Its turns so far, 0 or more.","format":"int64","type":"integer"},"work_ms":{"description":"Its working time so far in ms, 0 to 86 400 000.","format":"int64","type":"integer"}},"required":["agent","session_id","day","started_at","last_at","work_ms","turns","input_tokens","output_tokens","cache_read_tokens","cache_write_tokens"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"example":{"id":"aw:claude-code:2026-10-30:t1:5f0c","turns":4,"work_ms":600000}}},"description":"The row's id and its working time and turns as stored now."},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The arguments are malformed."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No API key, a wrong or expired one, or a token that is not for this API."},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The account's plan does not include the API, or a plan limit refused the change."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such id in your account."},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The operation refused the arguments; the error says why."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests; slow down."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The server failed; try again."}},"summary":"For a coding agent's add-on: record the totals so far of one agent session on a task and day. Each counter only ever rises, so a report sent twice or late changes nothing. Not the user's working time."}},"/break":{"delete":{"description":"End the running break (\"I'm back\"). By default a break the AI assistant started brings back the timers it stopped, except tasks done or running again meanwhile. Returns how long the break was and what was resumed.\n\nThe same as the MCP tool end_break.","parameters":[{"description":"Bring back the timers the break stopped; default true. Only a break\nthe AI assistant started knows what it stopped.","in":"query","name":"resume","required":false,"schema":{"type":["boolean","null"]}}],"responses":{"200":{"content":{"application/json":{"example":{"break_ended_at":"2026-10-27T12:30:00.000Z","break_started_at":"2026-10-27T12:00:00.000Z","ended":true,"hm":"0:30","minutes":30,"resumed":[{"task":"Write invoice","task_id":"t1"}]}}},"description":"How long the break was and what was resumed."},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The arguments are malformed."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No API key, a wrong or expired one, or a token that is not for this API."},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The account's plan does not include the API, or a plan limit refused the change."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such id in your account."},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The operation refused the arguments; the error says why."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests; slow down."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The server failed; try again."}},"summary":"End the running break. A break started through the API brings back the timers it stopped, unless resume is false."},"post":{"description":"Start a break (\"I'm taking lunch\"): stops every running timer on the account, in every app, and records the break. A break already running is joined. end_break, or starting a timer, ends it. Only while the user has breaks switched on in the app (Settings, Tracking); otherwise refused: stop the timers instead.\n\nThe same as the MCP tool start_break.","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"properties":{"note":{"description":"A note on the break, at most 2 000 characters; default none.","type":["string","null"]}},"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"example":{"break_started_at":"2026-10-27T12:00:00.000Z","stopped":[]}}},"description":"When the break started and what it stopped."},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The arguments are malformed."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No API key, a wrong or expired one, or a token that is not for this API."},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The account's plan does not include the API, or a plan limit refused the change."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such id in your account."},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The operation refused the arguments; the error says why."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests; slow down."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The server failed; try again."}},"summary":"Start a break: stops every running timer and records the break. A running break is joined. Refused while breaks are switched off in the app."}},"/clients":{"get":{"description":"List the user's clients (id, name, archived), ordered by name. Archived clients only when include_archived is true.\n\nThe same as the MCP tool list_clients.","parameters":[{"description":"Also list archived clients; default false.","in":"query","name":"include_archived","required":false,"schema":{"type":["boolean","null"]}}],"responses":{"200":{"content":{"application/json":{"example":[{"archived":false,"id":"c1","name":"Acme"}]}},"description":"The clients: id, name, archived."},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The arguments are malformed."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No API key, a wrong or expired one, or a token that is not for this API."},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The account's plan does not include the API, or a plan limit refused the change."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such id in your account."},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The operation refused the arguments; the error says why."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests; slow down."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The server failed; try again."}},"summary":"List the clients, ordered by name."},"post":{"description":"Create a client: name, and optionally color, hourly_rate_cents and currency. Without workspace_id it goes in the account's only workspace. The plan's limit on clients applies.\n\nThe same as the MCP tool create_client.","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"properties":{"color":{"description":"Its colour as #rrggbb; default #3257e8.","type":["string","null"]},"currency":{"description":"Its currency as a three-letter code; default EUR.","type":["string","null"]},"hourly_rate_cents":{"description":"What an hour for it is worth, in cents of its currency; none when\nleft out.","format":"int64","type":["integer","null"]},"name":{"description":"The client's name, 1–200 characters.","type":"string"},"workspace_id":{"description":"The workspace it belongs to (an id from list_workspaces); needed\nonly when the account has several.","type":["string","null"]}},"required":["name"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"example":{"client":{"archived":false,"color":"#3257e8","currency":"EUR","hourly_rate_cents":9000,"id":"c2","name":"Globex","workspace_id":"w1"}}}},"description":"The new client."},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The arguments are malformed."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No API key, a wrong or expired one, or a token that is not for this API."},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The account's plan does not include the API, or a plan limit refused the change."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such id in your account."},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The operation refused the arguments; the error says why."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests; slow down."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The server failed; try again."}},"summary":"Create a client. The plan's limit on clients applies."}},"/clients/{client_id}":{"patch":{"description":"Change a client: any of name, color, hourly_rate_cents (null clears it), currency, archived. What is left out stays as it is.\n\nThe same as the MCP tool update_client.","parameters":[{"in":"path","name":"client_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"archived":{"description":"true archives the client, false brings it back.","type":["boolean","null"]},"color":{"description":"A new colour as #rrggbb.","type":["string","null"]},"currency":{"description":"A new currency as a three-letter code.","type":["string","null"]},"hourly_rate_cents":{"default":null,"description":"A new hourly rate in cents; null clears it. Left out, it stays.","format":"int64","type":["integer","null"]},"name":{"description":"A new name, 1–200 characters.","type":["string","null"]}},"required":[],"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"example":{"client":{"archived":false,"color":"#3257e8","currency":"EUR","hourly_rate_cents":null,"id":"c2","name":"Globex Inc.","workspace_id":"w1"}}}},"description":"The client as it is now."},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The arguments are malformed."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No API key, a wrong or expired one, or a token that is not for this API."},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The account's plan does not include the API, or a plan limit refused the change."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such id in your account."},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The operation refused the arguments; the error says why."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests; slow down."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The server failed; try again."}},"summary":"Change a client's name, colour, hourly rate, currency, or archive it. A null hourly_rate_cents clears the rate."}},"/entries":{"get":{"description":"The time entries between two dates (inclusive, YYYY-MM-DD; at most 31 days) in the user's IANA time zone (always pass the user's zone): when each started and ended, its task, project, client and note, and a total per day. Use it for \"what did I do yesterday?\", stand-ups and timesheets.\n\nThe same as the MCP tool get_day_log.","parameters":[{"description":"Only entries of this client's projects (an id from list_clients).","in":"query","name":"client_id","required":false,"schema":{"type":["string","null"]}},{"description":"The first day, inclusive, as YYYY-MM-DD.","in":"query","name":"from_date","required":true,"schema":{"type":"string"}},{"description":"Only entries of this project's tasks (an id from list_projects).","in":"query","name":"project_id","required":false,"schema":{"type":["string","null"]}},{"description":"The user's IANA time zone, e.g. Europe/Berlin.","in":"query","name":"timezone","required":true,"schema":{"type":"string"}},{"description":"The last day, inclusive, as YYYY-MM-DD; default from_date. At most 31 days counted inclusively.","in":"query","name":"to_date","required":false,"schema":{"type":["string","null"]}}],"responses":{"200":{"content":{"application/json":{"example":{"days":[],"from_date":"2026-10-27","timezone":"Europe/Berlin","to_date":"2026-10-27","total_hm":"0:00","total_minutes":0}}},"description":"The days and their entries."},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The arguments are malformed."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No API key, a wrong or expired one, or a token that is not for this API."},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The account's plan does not include the API, or a plan limit refused the change."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such id in your account."},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The operation refused the arguments; the error says why."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests; slow down."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The server failed; try again."}},"summary":"The time entries between two dates (at most 31 days) in the given time zone, with a total per day."},"post":{"description":"Add time the user forgot to track (\"I worked 2 h on the invoice this morning\"): a finished entry on a task, from start to end or for duration_minutes, in the user's IANA time zone (always pass the user's zone). Nothing may end in the future or last over 24 h. Warns when it overlaps other entries or lands in a month already invoiced; the entry is saved either way, as in the app.\n\nThe same as the MCP tool add_time_entry.","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"properties":{"duration_minutes":{"description":"How long it took, in minutes, 1–1440. Give end or duration_minutes.","format":"int64","type":["integer","null"]},"end":{"description":"When it ended, written as start is. Give end or duration_minutes.","type":["string","null"]},"note":{"description":"What was done, at most 2 000 characters; default none.","type":["string","null"]},"start":{"description":"When the work started: a local time in timezone (2026-10-10T09:00)\nor ISO 8601 with an offset.","type":"string"},"task_id":{"description":"The task the time was spent on (an id from list_tasks).","type":"string"},"timezone":{"description":"The user's IANA time zone, e.g. Europe/Berlin.","type":"string"}},"required":["task_id","start","timezone"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"example":{"entry":{"entry_id":"e2","hm":"2:00","minutes":120,"task_id":"t1"},"warnings":[]}}},"description":"The new entry and any warnings."},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The arguments are malformed."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No API key, a wrong or expired one, or a token that is not for this API."},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The account's plan does not include the API, or a plan limit refused the change."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such id in your account."},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The operation refused the arguments; the error says why."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests; slow down."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The server failed; try again."}},"summary":"Add a finished entry from start to end or for duration_minutes. Warns about overlaps and invoiced months; saved either way."}},"/entries/{entry_id}":{"delete":{"description":"Delete a finished time entry (an entry_id from get_day_log), in every app, as deleting it in the app does. Confirm with the user first. A running entry cannot be deleted: stop it first. Warns when the entry was in a month already invoiced.\n\nThe same as the MCP tool delete_time_entry.","parameters":[{"in":"path","name":"entry_id","required":true,"schema":{"type":"string"}},{"description":"The user's IANA time zone, e.g. Europe/Berlin.","in":"query","name":"timezone","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"example":{"deleted":{"entry_id":"e2","task_id":"t1"},"warnings":[]}}},"description":"What was deleted and any warnings."},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The arguments are malformed."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No API key, a wrong or expired one, or a token that is not for this API."},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The account's plan does not include the API, or a plan limit refused the change."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such id in your account."},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The operation refused the arguments; the error says why."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests; slow down."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The server failed; try again."}},"summary":"Delete a finished entry, in every app. A running entry cannot be deleted."},"patch":{"description":"Correct a finished time entry (an entry_id from get_day_log): its start, end or length, its note, or the task it belongs to (\"that entry was 30 min too long\", \"move it to task B\"). Moving either end makes the credited time the new span. A running entry cannot be corrected: stop it first. Warns about overlaps and invoiced months as add_time_entry does.\n\nThe same as the MCP tool update_time_entry.","parameters":[{"in":"path","name":"entry_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"duration_minutes":{"description":"A new length in minutes, 1–1440, kept from the (new) start; default\nunchanged. Not together with end.","format":"int64","type":["integer","null"]},"end":{"description":"A new end; default unchanged. Not together with duration_minutes.","type":["string","null"]},"note":{"description":"A new note, at most 2 000 characters; \"\" clears it. Default unchanged.","type":["string","null"]},"start":{"description":"A new start, written as add_time_entry takes it; default unchanged.","type":["string","null"]},"task_id":{"description":"Move the entry to this task (an id from list_tasks); default unchanged.","type":["string","null"]},"timezone":{"description":"The user's IANA time zone, e.g. Europe/Berlin.","type":"string"}},"required":["timezone"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"example":{"entry":{"entry_id":"e2","hm":"1:30","minutes":90,"task_id":"t1"},"warnings":[]}}},"description":"The corrected entry and any warnings."},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The arguments are malformed."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No API key, a wrong or expired one, or a token that is not for this API."},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The account's plan does not include the API, or a plan limit refused the change."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such id in your account."},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The operation refused the arguments; the error says why."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests; slow down."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The server failed; try again."}},"summary":"Correct a finished entry: its start, end or length, note, or task. A running entry cannot be corrected."}},"/projects":{"get":{"description":"List the user's projects (id, name, client_id, client name, archived), ordered by name, optionally only those of one client. Archived projects only when include_archived is true.\n\nThe same as the MCP tool list_projects.","parameters":[{"description":"Only projects of this client (an id from list_clients).","in":"query","name":"client_id","required":false,"schema":{"type":["string","null"]}},{"description":"Also list archived projects; default false.","in":"query","name":"include_archived","required":false,"schema":{"type":["boolean","null"]}}],"responses":{"200":{"content":{"application/json":{"example":[{"archived":false,"client":"Acme","client_id":"c1","id":"p1","name":"Website"}]}},"description":"The projects: id, name, client_id, client, archived."},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The arguments are malformed."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No API key, a wrong or expired one, or a token that is not for this API."},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The account's plan does not include the API, or a plan limit refused the change."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such id in your account."},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The operation refused the arguments; the error says why."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests; slow down."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The server failed; try again."}},"summary":"List the projects, ordered by name, optionally of one client."},"post":{"description":"Create a project: name, and optionally client_id, color, hourly_rate_cents and default_task_type (timed or todo). With a client it goes in the client's workspace. The plan's limit on projects applies.\n\nThe same as the MCP tool create_project.","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"properties":{"client_id":{"description":"The client it is for (an id from list_clients); none when left out.","type":["string","null"]},"color":{"description":"Its colour as #rrggbb; default #3257e8.","type":["string","null"]},"default_task_type":{"description":"The type its new tasks get when none is asked for: timed (the\ndefault) or todo.","type":["string","null"]},"hourly_rate_cents":{"description":"What an hour on it is worth, in cents of its client's currency;\nnone when left out, and then the client's rate counts.","format":"int64","type":["integer","null"]},"name":{"description":"The project's name, 1–200 characters.","type":"string"},"workspace_id":{"description":"The workspace it belongs to (an id from list_workspaces); needed\nonly for a project without a client when the account has several.","type":["string","null"]}},"required":["name"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"example":{"project":{"archived":false,"client":"Acme","client_id":"c1","color":"#3257e8","default_task_type":"timed","hourly_rate_cents":null,"id":"p2","name":"Shop","workspace_id":"w1"}}}},"description":"The new project."},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The arguments are malformed."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No API key, a wrong or expired one, or a token that is not for this API."},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The account's plan does not include the API, or a plan limit refused the change."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such id in your account."},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The operation refused the arguments; the error says why."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests; slow down."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The server failed; try again."}},"summary":"Create a project, for a client or for none. The plan's limit on projects applies."}},"/projects/{project_id}":{"patch":{"description":"Change a project: any of name, color, client_id (a client of the same workspace; null takes it off its client), hourly_rate_cents (null clears it), default_task_type, archived. What is left out stays as it is.\n\nThe same as the MCP tool update_project.","parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"archived":{"description":"true archives the project, false brings it back.","type":["boolean","null"]},"client_id":{"default":null,"description":"Another client of the same workspace; null takes the project off\nits client. Left out, it stays.","type":["string","null"]},"color":{"description":"A new colour as #rrggbb.","type":["string","null"]},"default_task_type":{"description":"The type its new tasks get: timed or todo.","type":["string","null"]},"hourly_rate_cents":{"default":null,"description":"A new hourly rate in cents; null clears it. Left out, it stays.","format":"int64","type":["integer","null"]},"name":{"description":"A new name, 1–200 characters.","type":["string","null"]}},"required":[],"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"example":{"project":{"archived":false,"client":"Acme","client_id":"c1","color":"#3257e8","default_task_type":"todo","hourly_rate_cents":9000,"id":"p2","name":"Shop relaunch","workspace_id":"w1"}}}},"description":"The project as it is now."},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The arguments are malformed."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No API key, a wrong or expired one, or a token that is not for this API."},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The account's plan does not include the API, or a plan limit refused the change."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such id in your account."},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The operation refused the arguments; the error says why."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests; slow down."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The server failed; try again."}},"summary":"Change a project's name, colour, client, hourly rate or default task type, or archive it. A null client_id or hourly_rate_cents clears it."}},"/reports/earnings":{"get":{"description":"Money per client and month (default this month), in the user's IANA time zone (always pass the user's zone): tracked time, the amount as the app's month report and its invoice export bill it (each task's rate, else its project's, client's or workspace's; time rounded to 1/100 h per task), net / tax / gross from the client's tax type, what of it is on tasks marked non-billable, and whether the month was already exported as an invoice, with that export's total. Amounts are in cents of the client's currency. Finished entries only.\n\nThe same as the MCP tool get_earnings.","parameters":[{"description":"Only this client (an id from list_clients).","in":"query","name":"client_id","required":false,"schema":{"type":["string","null"]}},{"description":"The first month, as YYYY-MM; default this month.","in":"query","name":"from_month","required":false,"schema":{"type":["string","null"]}},{"description":"The user's IANA time zone, e.g. Europe/Berlin.","in":"query","name":"timezone","required":true,"schema":{"type":"string"}},{"description":"The last month, inclusive, as YYYY-MM; default from_month. At most 24 months.","in":"query","name":"to_month","required":false,"schema":{"type":["string","null"]}}],"responses":{"200":{"content":{"application/json":{"example":{"from_month":"2026-10","months":[],"timezone":"Europe/Berlin","to_month":"2026-10"}}},"description":"One entry per client and month."},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The arguments are malformed."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No API key, a wrong or expired one, or a token that is not for this API."},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The account's plan does not include the API, or a plan limit refused the change."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such id in your account."},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The operation refused the arguments; the error says why."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests; slow down."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The server failed; try again."}},"summary":"Money per client and month, as the app's month report bills it; amounts in cents of the client's currency."}},"/reports/goals":{"get":{"description":"How long the user still has to work: each monthly goal of each client (or of one client) measured against this month in the user's IANA time zone (always pass the user's zone) — target, tracked, remaining, what is left today, and what each working day after today owes, spread as the app's month plan does over the working days left — and this week's target two ways: catch_up (what the week needs for the month to be back on pace) and even (the month spread evenly over its weeks). Use it to answer \"how long do I have to work (today / this week / this month)?\" with one answer per goal. Read today_left together with today_is_working_day: on a day off today_left is 0:00 because nothing is owed today, not because the goal is met; what is still owed is in remaining and per_day_after_today. Pass month (YYYY-MM) for a month gone by: whether each goal was reached, and by how much it fell short or went over. A goal's label may be empty.\n\nThe same as the MCP tool get_goal_progress.","parameters":[{"description":"Only this client (an id from list_clients); default every\nnon-archived client with goals.","in":"query","name":"client_id","required":false,"schema":{"type":["string","null"]}},{"description":"A month gone by, as YYYY-MM, to see how it ended; default this month.","in":"query","name":"month","required":false,"schema":{"type":["string","null"]}},{"description":"The user's IANA time zone, e.g. Europe/Berlin.","in":"query","name":"timezone","required":true,"schema":{"type":"string"}},{"description":"The first day of the user's week, \"monday\" (default) or \"sunday\",\nas set in the app.","in":"query","name":"week_start","required":false,"schema":{"type":["string","null"]}}],"responses":{"200":{"content":{"application/json":{"example":{"clients":[],"month":"2026-10","timezone":"Europe/Berlin","today":"2026-10-27"}}},"description":"One entry per goal."},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The arguments are malformed."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No API key, a wrong or expired one, or a token that is not for this API."},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The account's plan does not include the API, or a plan limit refused the change."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such id in your account."},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The operation refused the arguments; the error says why."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests; slow down."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The server failed; try again."}},"summary":"Each client's monthly goal against this month (or a month gone by): target, tracked, remaining, today's share and this week's target."}},"/reports/totals":{"get":{"description":"Tracked time between two dates (inclusive, YYYY-MM-DD) in the user's IANA time zone (e.g. Europe/Berlin — always pass the user's zone). An entry counts on the day it started, as in the app. Group by task, project (default), client or day.\n\nThe same as the MCP tool get_time_totals.","parameters":[{"description":"The first day, inclusive, as YYYY-MM-DD.","in":"query","name":"from_date","required":true,"schema":{"type":"string"}},{"description":"\"task\", \"project\" (default), \"client\" or \"day\".","in":"query","name":"group_by","required":false,"schema":{"type":["string","null"]}},{"description":"Only time on tasks of this project (an id from list_projects).","in":"query","name":"project_id","required":false,"schema":{"type":["string","null"]}},{"description":"Only time on this task (an id from list_tasks).","in":"query","name":"task_id","required":false,"schema":{"type":["string","null"]}},{"description":"The user's IANA time zone, e.g. Europe/Berlin.","in":"query","name":"timezone","required":true,"schema":{"type":"string"}},{"description":"The last day, inclusive, as YYYY-MM-DD; at most 366 days after from_date counted inclusively.","in":"query","name":"to_date","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"example":{"from_date":"2026-10-01","group_by":"project","groups":[],"timezone":"Europe/Berlin","to_date":"2026-10-31","total_hm":"8:00","total_minutes":480}}},"description":"The total and one row per group."},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The arguments are malformed."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No API key, a wrong or expired one, or a token that is not for this API."},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The account's plan does not include the API, or a plan limit refused the change."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such id in your account."},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The operation refused the arguments; the error says why."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests; slow down."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The server failed; try again."}},"summary":"Tracked time between two dates (inclusive) in the given time zone, grouped by task, project (default), client or day."}},"/tags":{"get":{"description":"List the user's tags: id, name, color, workspace_id, archived. Archived ones only with include_archived.\n\nThe same as the MCP tool list_tags.","parameters":[{"description":"Also list archived tags; default false.","in":"query","name":"include_archived","required":false,"schema":{"type":["boolean","null"]}},{"description":"Only the tags of this workspace (an id from list_workspaces).","in":"query","name":"workspace_id","required":false,"schema":{"type":["string","null"]}}],"responses":{"200":{"content":{"application/json":{"example":[{"archived":false,"color":"#d23b3b","id":"g1","name":"Urgent","workspace_id":"w1"}]}},"description":"The tags: id, name, color, workspace_id, archived."},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The arguments are malformed."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No API key, a wrong or expired one, or a token that is not for this API."},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The account's plan does not include the API, or a plan limit refused the change."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such id in your account."},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The operation refused the arguments; the error says why."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests; slow down."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The server failed; try again."}},"summary":"List the tags, ordered by name."},"post":{"description":"Create a tag. Its name must be new in its workspace, in any case, archived tags included. Without workspace_id it goes in the account's only workspace.\n\nThe same as the MCP tool create_tag.","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"properties":{"color":{"description":"Its colour as #rrggbb; default #3257e8.","type":["string","null"]},"name":{"description":"The tag's name, 1–200 characters; unique in its workspace, in any\ncase, archived tags included.","type":"string"},"workspace_id":{"description":"The workspace it belongs to (an id from list_workspaces); needed\nonly when the account has several.","type":["string","null"]}},"required":["name"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"example":{"tag":{"archived":false,"color":"#3257e8","id":"g2","name":"Waiting","workspace_id":"w1"}}}},"description":"The new tag."},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The arguments are malformed."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No API key, a wrong or expired one, or a token that is not for this API."},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The account's plan does not include the API, or a plan limit refused the change."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such id in your account."},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The operation refused the arguments; the error says why."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests; slow down."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The server failed; try again."}},"summary":"Create a tag with a name new to its workspace."}},"/tasks":{"get":{"description":"List the user's tasks with their project and client, whether each is running, its estimate, the time tracked on it in all, and the Linear / GitHub issues it is linked to. Defaults to open tasks, at most 50. Pass issue (e.g. LIN-123 or owner/repo#42) to find the tasks linked to an issue; an issue may be linked to several tasks. Pass task_type todo for the to-dos only, or timed for the tasks that hold time. Each task has its due_date (YYYY-MM-DD) or null; pass due_by (a day, e.g. today in the user's zone) for the tasks overdue or due by then.\n\nThe same as the MCP tool list_tasks.","parameters":[{"description":"Only tasks due on or before this day (YYYY-MM-DD); pass today for\nthe ones overdue or due today. Tasks without a due date are left out.","in":"query","name":"due_by","required":false,"schema":{"type":["string","null"]}},{"description":"Only tasks linked to this issue: its key (LIN-123, repo#42,\nowner/repo#42) or URL, case-insensitive.","in":"query","name":"issue","required":false,"schema":{"type":["string","null"]}},{"description":"At most this many tasks, 1–200; default 50.","in":"query","name":"limit","required":false,"schema":{"format":"int64","type":["integer","null"]}},{"description":"Only tasks of this project (an id from list_projects).","in":"query","name":"project_id","required":false,"schema":{"type":["string","null"]}},{"description":"Case-insensitive text the title must contain.","in":"query","name":"search","required":false,"schema":{"type":["string","null"]}},{"description":"The order: \"own\" (the user's own order, the default), \"due\" (soonest\ndue date first, tasks without one last), \"last_worked\" (most recently\nworked first), \"created\" (newest first) or \"title\" (A–Z). Ties keep\nthe own order.","in":"query","name":"sort","required":false,"schema":{"type":["string","null"]}},{"description":"\"open\" (default), \"done\" or \"all\".","in":"query","name":"status","required":false,"schema":{"type":["string","null"]}},{"description":"Only tasks of this type: \"timed\" (they hold tracked time) or \"todo\"\n(checklist items without time); default both.","in":"query","name":"task_type","required":false,"schema":{"type":["string","null"]}}],"responses":{"200":{"content":{"application/json":{"example":[{"client":"Acme","done":false,"due_date":null,"id":"t1","links":[],"project":"Website","project_id":"p1","running":false,"task_type":"timed","title":"Write invoice","tracked_hm":"1:30","tracked_minutes":90,"tracked_seconds":5400}]}},"description":"The tasks, newest first."},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The arguments are malformed."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No API key, a wrong or expired one, or a token that is not for this API."},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The account's plan does not include the API, or a plan limit refused the change."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such id in your account."},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The operation refused the arguments; the error says why."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests; slow down."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The server failed; try again."}},"summary":"List tasks with their type (timed or to-do), due date, project, client, running state, estimate, tracked time and linked issues. Open tasks by default, at most 50."},"post":{"description":"Create a task at the top of a project, optionally linked to the Linear or GitHub issue it is for (an issue may be linked to several tasks: check list_tasks with issue first, to work on a task that already holds it). Answers with a warning naming the other tasks when other tasks hold the issue too. Task type: timed (the default of the project) holds tracked time; todo is a checklist item that holds none, and cannot be changed later. Give due_date (YYYY-MM-DD) for the day it is due. Returns the new task's id.\n\nThe same as the MCP tool create_task.","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"properties":{"due_date":{"description":"The day it is due, YYYY-MM-DD in the user's calendar; default none.","type":["string","null"]},"link":{"description":"The issue the task is for, linked as the app links it; default none.","properties":{"external_id":{"description":"The tracker's own id: for Linear the issue's id (a UUID, not\nLIN-123); for GitHub `owner/repo#42`.","type":"string"},"identifier":{"description":"What people call it, e.g. LIN-123. Required for Linear; for GitHub\ndefault `repo#42`, as the app shows it.","type":["string","null"]},"source":{"description":"\"linear\" or \"github\".","type":"string"},"url":{"description":"The issue's https:// address. Required for Linear; for GitHub\ndefault its github.com address.","type":["string","null"]}},"required":["source","external_id"],"type":["object","null"]},"notes":{"description":"Notes on the task, at most 10 000 characters; default none.","type":["string","null"]},"project_id":{"description":"The project to add the task to (an id from list_projects).","type":"string"},"task_type":{"description":"\"timed\" (holds tracked time) or \"todo\" (a checklist item that holds\nnone and cannot change later); default the project's default type.","type":["string","null"]},"title":{"description":"The task's title, 1–500 characters.","type":"string"}},"required":["project_id","title"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"example":{"task":{"done":false,"due_date":null,"id":"t2","project":"Website","project_id":"p1","title":"Fix the footer"}}}},"description":"The new task; due_date is null when it has none."},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The arguments are malformed."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No API key, a wrong or expired one, or a token that is not for this API."},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The account's plan does not include the API, or a plan limit refused the change."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such id in your account."},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The operation refused the arguments; the error says why."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests; slow down."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The server failed; try again."}},"summary":"Create a task at the top of a project, optionally linked to a Linear or GitHub issue."}},"/tasks/{task_id}":{"delete":{"description":"Delete a task or to-do for good, in every app, as deleting it in the app does: its tags and issue links go with it, and its subtasks move up to where it was. Confirm with the user first. A task that holds tracked time or a running timer is refused: to keep the time, mark it done with set_task_done instead.\n\nThe same as the MCP tool delete_task.","parameters":[{"in":"path","name":"task_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"example":{"deleted":{"id":"t1","project":"Home","project_id":"p1","task_type":"todo","title":"Buy nappies"}}}},"description":"The task that was deleted."},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The arguments are malformed."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No API key, a wrong or expired one, or a token that is not for this API."},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The account's plan does not include the API, or a plan limit refused the change."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such id in your account."},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The operation refused the arguments; the error says why."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests; slow down."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The server failed; try again."}},"summary":"Delete a task or to-do for good, in every app. A task that holds tracked time or a running timer is refused."},"get":{"description":"One task as list_tasks lists it (project, client, type, due date, running state, estimate, tracked time, linked issues), and its notes.\n\nThe same as the MCP tool get_task.","parameters":[{"in":"path","name":"task_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"example":{"task":{"client":"Acme","done":false,"due_date":null,"id":"t1","links":[],"notes":"Send it by Friday.","project":"Website","project_id":"p1","running":false,"task_type":"timed","title":"Write invoice","tracked_hm":"1:30","tracked_minutes":90,"tracked_seconds":5400}}}},"description":"The task with its notes."},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The arguments are malformed."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No API key, a wrong or expired one, or a token that is not for this API."},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The account's plan does not include the API, or a plan limit refused the change."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such id in your account."},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The operation refused the arguments; the error says why."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests; slow down."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The server failed; try again."}},"summary":"One task as GET /tasks lists it, and its notes."},"patch":{"description":"Give a task a new title.\n\nMark a task done, or open again. Marking a task done stops its running timer first, as the app does.\n\nSet the day a task or to-do is due (YYYY-MM-DD, in the user's calendar: work out \"Friday\" from today in the user's zone), or clear it with due_date null. A due date does not move the task in the app's list.\n\nReplace a task's notes with new text; \"\" clears them. To add to the notes, read them with get_task first and send the whole text.\n\nThe same as the MCP tool rename_task and set_task_done and set_due_date and set_task_notes.","parameters":[{"in":"path","name":"task_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"description":"`PATCH /tasks/{task_id}`: a new title, done or open again, a due date,\nnew notes, or several (in that order).","properties":{"done":{"description":"true marks the task done (stopping its timer), false open again.","type":["boolean","null"]},"due_date":{"description":"The day it is due, YYYY-MM-DD in your calendar; null clears it.\nLeft out, the date stays as it is.","type":["string","null"]},"notes":{"description":"The task's notes, at most 10 000 characters, replacing the ones it\nhas; \"\" clears them.","type":["string","null"]},"title":{"description":"The new title, 1–500 characters.","type":["string","null"]}},"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"example":{"stopped":[],"task":{"done":true,"due_date":"2026-10-31","id":"t1","title":"Write invoice"}}}},"description":"The task as the last change left it (title, done, due_date: null when it has none; notes when they changed), and any timer that marking it done stopped."},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The arguments are malformed."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No API key, a wrong or expired one, or a token that is not for this API."},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The account's plan does not include the API, or a plan limit refused the change."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such id in your account."},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The operation refused the arguments; the error says why."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests; slow down."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The server failed; try again."}},"summary":"Rename a task, mark it done (stopping its timer) or open again, set or clear its due date, or replace its notes; several at once go in that order."}},"/tasks/{task_id}/tags/{tag_id}":{"delete":{"description":"Take a tag off a task. A task without the tag stays as it is; changed says whether anything was written.\n\nThe same as the MCP tool untag_task.","parameters":[{"in":"path","name":"task_id","required":true,"schema":{"type":"string"}},{"in":"path","name":"tag_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"example":{"changed":true,"tag":{"id":"g1","name":"Urgent"},"task_id":"t1"}}},"description":"The task, the tag, and whether anything changed."},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The arguments are malformed."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No API key, a wrong or expired one, or a token that is not for this API."},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The account's plan does not include the API, or a plan limit refused the change."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such id in your account."},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The operation refused the arguments; the error says why."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests; slow down."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The server failed; try again."}},"summary":"Take a tag off a task."},"put":{"description":"Put a tag on a task. The tag must be live, not archived, and of the task's workspace. A task that has the tag already keeps it; changed says whether anything was written.\n\nThe same as the MCP tool tag_task.","parameters":[{"in":"path","name":"task_id","required":true,"schema":{"type":"string"}},{"in":"path","name":"tag_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"example":{"changed":true,"tag":{"id":"g1","name":"Urgent"},"task_id":"t1"}}},"description":"The task, the tag, and whether anything changed."},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The arguments are malformed."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No API key, a wrong or expired one, or a token that is not for this API."},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The account's plan does not include the API, or a plan limit refused the change."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such id in your account."},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The operation refused the arguments; the error says why."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests; slow down."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The server failed; try again."}},"summary":"Put a tag on a task. No body."}},"/timers":{"get":{"description":"What runs now: each running timer's task and project, when it started, the time credited so far, and whether the AI assistant or an app started it; and the running break, if the user is on one.\n\nThe same as the MCP tool get_running_timers.","parameters":[],"responses":{"200":{"content":{"application/json":{"example":{"break":null,"running":[{"entry_id":"e1","hm":"0:25","minutes":25,"project":"Website","seconds":1500,"started_at":"2026-10-27T08:00:00.000Z","started_by":"api","task":"Write invoice","task_id":"t1"}]}}},"description":"The running timers and the break, if any."},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The arguments are malformed."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No API key, a wrong or expired one, or a token that is not for this API."},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The account's plan does not include the API, or a plan limit refused the change."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such id in your account."},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The operation refused the arguments; the error says why."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests; slow down."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The server failed; try again."}},"summary":"What runs now: each running timer and who started it (\"app\", \"api\" or \"ai_assistant\"), and the running break."},"post":{"description":"Start tracking time on a task. mode \"split\" (the default) keeps the other running timers and shares the time evenly between all running timers: two timers that run for one hour get 30 minutes each. mode \"only\" STOPS every other running timer on the account (in every app), so only this task gets the time. Use split unless the user asks for only: \"too\", \"also\", \"add\", \"in parallel\" and \"split\" all mean split; \"instead\", \"only this\" and \"stop the others\" mean only. If the user's words leave it unclear whether the other timers should stop, ask the user first. Ends a running break and reopens the task if it was done. Returns what it started and what it stopped.\n\nThe same as the MCP tool start_timer.","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"properties":{"mode":{"anyOf":[{"description":"How `start_timer` treats the timers already running.","oneOf":[{"const":"split","description":"Keep the other timers running and share the time evenly between all\nrunning timers: two timers that run for one hour get 30 minutes each.","type":"string"},{"const":"only","description":"Only this task gets the time from now on: every other running\ntimer stops, in every app.","type":"string"}]},{"type":"null"}],"description":"What happens to the time of the other running timers; default\n\"split\"."},"note":{"description":"A note on the new time entry; default none.","type":["string","null"]},"task_id":{"description":"The task to track time on (an id from list_tasks).","type":"string"}},"required":["task_id"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"example":{"break_ended":null,"started":{"started_at":"2026-10-27T08:00:00.000Z","task":"Write invoice","task_id":"t1"},"stopped":[]}}},"description":"What it started and what it stopped."},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The arguments are malformed."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No API key, a wrong or expired one, or a token that is not for this API."},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The account's plan does not include the API, or a plan limit refused the change."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such id in your account."},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The operation refused the arguments; the error says why."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests; slow down."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The server failed; try again."}},"summary":"Start tracking time on a task. mode \"split\" (the default) keeps the other timers and shares the time evenly between them; \"only\" stops every other running timer. Ends a running break; reopens a done task."}},"/timers/stop":{"post":{"description":"Stop every running timer on the account, in every app. Returns what it stopped and how long each ran.\n\nThe same as the MCP tool stop_all_timers.","parameters":[],"responses":{"200":{"content":{"application/json":{"example":{"stopped":[{"hm":"0:25","minutes":25,"task":"Write invoice","task_id":"t1"}]}}},"description":"What it stopped and how long each ran."},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The arguments are malformed."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No API key, a wrong or expired one, or a token that is not for this API."},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The account's plan does not include the API, or a plan limit refused the change."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such id in your account."},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The operation refused the arguments; the error says why."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests; slow down."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The server failed; try again."}},"summary":"Stop every running timer on the account, in every app. No body."}},"/timers/{task_id}/stop":{"post":{"description":"Stop a task's running timer, in whichever app it runs, optionally noting what was done. Returns what it stopped and how long each ran.\n\nThe same as the MCP tool stop_timer.","parameters":[{"in":"path","name":"task_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"note":{"description":"What was done, at most 2 000 characters; replaces the entry's note.\nDefault: the note stays as it is.","type":["string","null"]}},"required":[],"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"example":{"stopped":[{"hm":"0:25","minutes":25,"task":"Write invoice","task_id":"t1"}]}}},"description":"What it stopped and how long each ran."},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The arguments are malformed."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No API key, a wrong or expired one, or a token that is not for this API."},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The account's plan does not include the API, or a plan limit refused the change."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such id in your account."},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The operation refused the arguments; the error says why."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests; slow down."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The server failed; try again."}},"summary":"Stop a task's running timer, in whichever app it runs, optionally noting what was done."}},"/working-days/{date}":{"put":{"description":"Make a day a working day or a day off in the month plan (\"I'm off Friday\"), or give a working day its own time (\"I'll only work 4 hours on Tuesday\": minutes 240). Days are Monday to Friday unless switched; get_goal_progress gives a day with an own time exactly that and spreads what is left over the other working days, so this changes what each day owes. Switching a day without minutes takes its own time away.\n\nThe same as the MCP tool set_working_day.","parameters":[{"in":"path","name":"date","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"minutes":{"default":null,"description":"The day's own time in whole minutes (1 to 1440), only with working:\ntrue. The month plan then asks this day for exactly that and spreads\nthe rest of the goal over the other working days. Leave it out to\nspread the goal over this day too, which also takes an own time away.","format":"int64","type":["integer","null"]},"working":{"description":"true makes it a working day, false a day off.","type":"boolean"}},"required":["working"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"example":{"changed":true,"date":"2026-12-24","minutes":240,"working":true}}},"description":"The day, whether it is a working day now, its own time, and whether that changed."},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The arguments are malformed."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No API key, a wrong or expired one, or a token that is not for this API."},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The account's plan does not include the API, or a plan limit refused the change."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such id in your account."},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The operation refused the arguments; the error says why."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests; slow down."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The server failed; try again."}},"summary":"Make a day (YYYY-MM-DD) a working day or a day off in the month plan, or give a working day its own time."}},"/workspaces":{"get":{"description":"List the user's workspaces: id, name, archived. Tags and clients belong to a workspace; most accounts have one.\n\nThe same as the MCP tool list_workspaces.","parameters":[],"responses":{"200":{"content":{"application/json":{"example":[{"archived":false,"id":"w1","name":"My workspace"}]}},"description":"The workspaces: id, name, archived."},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The arguments are malformed."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No API key, a wrong or expired one, or a token that is not for this API."},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The account's plan does not include the API, or a plan limit refused the change."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such id in your account."},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The operation refused the arguments; the error says why."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests; slow down."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The server failed; try again."}},"summary":"List the workspaces. Tags and clients belong to one; most accounts have one."}}},"security":[{"bearer":[]}],"servers":[{"url":"/api/v1"}]}