Requests and conventions
Every resource a client needs has a JSON representation on the same URL as its page:
GET /boards/123 returns a page, GET /boards/123.json (or ?format=json) returns the board.
URLs carry no account prefix: the account is whoever the credential belongs to, so every
resource has exactly one path.
Bodies and answers
Section titled “Bodies and answers”Requests and responses are JSON. A write accepts its attributes flat ({"title":"…"}) or
wrapped in the resource’s name ({"card":{"title":"…"}}). Attributes an endpoint doesn’t take
are ignored.
A create answers 201 with the record and a Location; a delete answers 204. Timestamps are
UTC, in ISO 8601.
Query parameters are checked
Section titled “Query parameters are checked”Every board, card, note, and search endpoint declares the query parameters it answers to, and
anything else is a 422 naming the parameter, as is a value outside a filter’s list:
{ "errors": { "column_id": [ "is not a recognised parameter" ] } }{ "errors": { "due": [ "is not included in the list" ] } }page, previous, and format are accepted everywhere. Each endpoint is checked against its
own list: q is a 422 on /cards.json, column_ids[] is a 422 on /search.json, and
boards and notes take nothing but those three.
Only the parameter’s name is checked, so a list filter must be sent in its [] form,
column_ids[]=3. A bare column_ids=3, which is how Python’s requests and JavaScript’s
URLSearchParams send a list by default, is ignored, and the answer is every card. Name the
key with its brackets:
requests.get(f"{mudda}/cards.json", headers=headers, params=[("column_ids[]", 3), ("column_ids[]", 4)])const query = new URLSearchParams([["column_ids[]", "3"], ["column_ids[]", "4"]]);await fetch(`${mudda}/cards.json?${query}`, { headers });Time zone
Section titled “Time zone”Timestamps in a response are UTC. “Today”, though (what overdue, due=soon, and creation
compare against), is the owner’s day: a token has no browser zone of its own, so it gets the
zone saved from the owner’s browser, which GET /my/user.json reports as timezone. Until a
browser has saved one, it is UTC.
Any page a browser loads saves the browser’s zone if it isn’t the one already saved, so a zone
set with PATCH /my/timezone.json lasts only until the owner next loads a page in a browser set
to another zone.
What the API doesn’t serve
Section titled “What the API doesn’t serve”JSON is opt-in: each endpoint names the actions it answers in JSON, and a JSON request to
anything else is a 406 before the action runs, so a 406 never leaves a half-done write
behind.
The browser has endpoints for things the API reads and writes as fields. A card’s lane picker,
board picker, pin button, steps, drag-and-drop target, the compose screen, and a lane’s cards
frame all answer 406: PUT or POST the card, or read the board, instead. Every new and
edit page, /, /my/tokens, /my/passkeys, /account/upgrade, and /prompts/cards are the
browser’s too. Build a client from the API reference, which lists everything that
answers JSON.