TraderMemos
API リファレンス

Routines

GET/api/v1/routines

Active 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
AuthorizationBearer <token>

Session JWT access token or personal access token (tm_pat_…).

In: header

Query Parameters

day?string

The caller's local calendar day (YYYY-MM-DD); defaults to the UTC date.

Formatdate

Response Body

curl -X GET "https://example.com/api/v1/routines"
Empty
POST/api/v1/routines

Authorization

bearerAuth
AuthorizationBearer <token>

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    ]  }'
Empty
PUT/api/v1/routines/order

Authorization

bearerAuth
AuthorizationBearer <token>

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"    ]  }'
Empty
PATCH/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
AuthorizationBearer <token>

Session JWT access token or personal access token (tm_pat_…).

In: header

Path Parameters

id*string

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 '{}'
Empty
DELETE/api/v1/routines/{id}

Removes the item from day on; earlier days keep it and its ticks.

Authorization

bearerAuth
AuthorizationBearer <token>

Session JWT access token or personal access token (tm_pat_…).

In: header

Path Parameters

id*string

Query Parameters

day?string
Formatdate

Response Body

curl -X DELETE "https://example.com/api/v1/routines/string"
Empty
GET/api/v1/routines/day/{day}

Authorization

bearerAuth
AuthorizationBearer <token>

Session JWT access token or personal access token (tm_pat_…).

In: header

Path Parameters

day*string
Formatdate

Response Body

curl -X GET "https://example.com/api/v1/routines/day/2019-08-24"
Empty
PUT/api/v1/routines/day/{day}/items/{id}

Idempotent both ways. Returns the day.

Authorization

bearerAuth
AuthorizationBearer <token>

Session JWT access token or personal access token (tm_pat_…).

In: header

Path Parameters

day*string
Formatdate
id*string

Request 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  }'
Empty
GET/api/v1/routines/history

Per-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
AuthorizationBearer <token>

Session JWT access token or personal access token (tm_pat_…).

In: header

Query Parameters

from?string
Formatdate
to?string
Formatdate

Response Body

curl -X GET "https://example.com/api/v1/routines/history"
Empty