Routines
/api/v1/routinesActive items ordered by stage (pre, during, post) then position. The first call seeds items from the daily checklist template (pre-session, Monday to Friday) and imports ticked - [x] lines from daily logs as history.
Authorization
bearerAuth Session JWT access token or personal access token (tm_pat_…).
In: header
Query Parameters
The caller's local calendar day (YYYY-MM-DD); defaults to the UTC date.
dateResponse Body
curl -X GET "https://example.com/api/v1/routines"/api/v1/routinesAuthorization
bearerAuth Session JWT access token or personal access token (tm_pat_…).
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
curl -X POST "https://example.com/api/v1/routines" \ -H "Content-Type: application/json" \ -d '{ "title": "string", "stage": "pre", "weekdays": [ 0 ] }'/api/v1/routines/orderAuthorization
bearerAuth Session JWT access token or personal access token (tm_pat_…).
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
curl -X PUT "https://example.com/api/v1/routines/order" \ -H "Content-Type: application/json" \ -d '{ "ids": [ "string" ] }'/api/v1/routines/{id}A title edit is in place. A stage or weekdays edit never rewrites past days: the item ends on day and a successor (new id, returned) carries the new schedule from day on, taking that day's ticks.
Authorization
bearerAuth Session JWT access token or personal access token (tm_pat_…).
In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
curl -X PATCH "https://example.com/api/v1/routines/string" \ -H "Content-Type: application/json" \ -d '{}'/api/v1/routines/{id}Removes the item from day on; earlier days keep it and its ticks.
Authorization
bearerAuth Session JWT access token or personal access token (tm_pat_…).
In: header
Path Parameters
Query Parameters
dateResponse Body
curl -X DELETE "https://example.com/api/v1/routines/string"/api/v1/routines/day/{day}Authorization
bearerAuth Session JWT access token or personal access token (tm_pat_…).
In: header
Path Parameters
dateResponse Body
curl -X GET "https://example.com/api/v1/routines/day/2019-08-24"/api/v1/routines/day/{day}/items/{id}Idempotent both ways. Returns the day.
Authorization
bearerAuth Session JWT access token or personal access token (tm_pat_…).
In: header
Path Parameters
dateRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
curl -X PUT "https://example.com/api/v1/routines/day/2019-08-24/items/string" \ -H "Content-Type: application/json" \ -d '{ "done": true }'/api/v1/routines/historyPer-day done/total over [from, to] (defaults to the 13 weeks ending to), overall completion rate, current streak (to is today) and per-stage totals. At most 400 days.
Authorization
bearerAuth Session JWT access token or personal access token (tm_pat_…).
In: header
Query Parameters
datedateResponse Body
curl -X GET "https://example.com/api/v1/routines/history"