This is the full developer documentation for Mudda # Build on Mudda > Your boards, cards and notes, from a script or an AI agent. One JSON API, and an MCP server in front of it. API reference Every endpoint: boards, cards, steps, notes, search and tokens, with request and response examples. [Browse the reference](/reference/) [Download the OpenAPI spec](/openapi.yaml) MCP server Point Claude, ChatGPT or Cursor at `https://you.mudda.today/mcp`. Sign in once with OAuth, and the agent works your boards. [Connect a client](/mcp/connect/) Authentication Tokens, scopes, labels and expiry, and how an agent’s work is attributed to it. [Get a token](/guides/authentication/) For agents This whole site as plain text, for an agent’s context: [`/llms.txt`](/llms.txt) and [`/llms-full.txt`](/llms-full.txt). Every guide is also served as Markdown. # Changelog > Changes to the Mudda API and MCP server that clients should know about. Newest first. Each entry says what changed and what, if anything, a client must do. ## 2026-10-17 [Section titled “2026-10-17”](#2026-10-17) * **Docs moved here.** The API and MCP references that lived on mudda.today (`/api`, `/connect`) now live at docs.mudda.today. The old addresses redirect. # Authentication > Tokens, how to get one, what scopes grant, labels, expiry, and attribution. A browser authenticates with its session cookie. Everything else presents a **token**: ```bash curl -H "Authorization: Bearer $TOKEN" https://you.mudda.today/boards.json ``` The scheme is matched **case-sensitively**: `Bearer` and `Token` are accepted, `bearer` is not. An `Authorization` header always decides the request: send one and the cookie is ignored, so a rejected token is a `401`, never a quiet fallback to a browser session on the same machine. A browser’s session is never accepted as a bearer token, and neither a bearer request nor a JSON sign-in is ever handed a cookie. ## Getting a token [Section titled “Getting a token”](#getting-a-token) * **The browser**: profile (your avatar) → **API tokens**. The token is shown once. * **Signing in over JSON**, [below](#signing-in-over-json). * **OAuth**, which is how MCP clients connect. It produces a token that behaves like the others; see [OAuth](/mcp/oauth/). * **A shell**, on a self-hosted board: `make token LABEL=claude` (see [Managing tokens](#managing-tokens)). A minted token is valid for **90 days**. An expired token is refused exactly like a revoked one, with a `401` and nothing to tell the two apart, so treat a sudden `401` on a long-lived agent as “mint a new token”. A browser session never expires on a timer. ### Signing in over JSON [Section titled “Signing in over JSON”](#signing-in-over-json) ```bash curl -X POST https://you.mudda.today/session/password.json \ -H 'Content-Type: application/json' \ -d '{"email_address":"you@example.com","password":"…","label":"claude"}' # => {"session_token":"…","scopes":["read","write"]} ``` * `label` names the token. Without one it is `json-sign-in`. **Give every client its own label**: a [label holds one live token](#labels), so two clients sharing the default would revoke each other on every sign-in. * `scopes` (a string or a list) chooses what the token may do; without it the token reads and writes. An unknown scope is a `422`. The credentials may also be wrapped: `{"session":{"email_address":"…","password":"…"}}`. Sign-in is rate limited to 10 attempts every 3 minutes per IP address. `POST /session/passkey.json` completes a passkey sign-in and answers `{"session_token":"…"}`. It always mints a `json-sign-in` token with the default scopes. ## Scopes [Section titled “Scopes”](#scopes) A token does what its scopes grant, and the request’s verb decides which scope it needs: | Scope | Allows | | -------- | --------------------------------------------------------------------- | | `read` | `GET` | | `write` | `POST`, `PUT`, `PATCH`: creating and changing | | `delete` | `DELETE`, or a write that removes nested records (`"_destroy": true`) | A token gets `read write` unless asked otherwise, so **`delete` is only ever granted on request**: tick it on the API tokens page, or send it in `scopes` at sign-in. A request outside a token’s scopes is a `403` before the action runs, so nothing is written: ```json { "errors": { "base": ["This token is not granted the write scope"] }, "request_id": "…" } ``` Two requests are open to every token, whatever its scopes: `DELETE /session.json`, which ends the token’s own session, and `GET /my/user.json`, which reports the token making the request. Browser sessions are never limited by scope. ## Labels [Section titled “Labels”](#labels) **A label holds one live token.** Minting under a label revokes the token that label already had, so an agent that signs in on every run replaces its credential instead of piling them up. Labels exist so one agent’s access can be revoked without signing your browser out. **What a token does is attributed to it.** Every token acts as the account’s one user, so you are still the creator of what it makes, but the audit trail records the token’s label. Name tokens after the agent holding them. ## Managing tokens [Section titled “Managing tokens”](#managing-tokens) The API tokens page lists every token, OAuth clients included, with its scopes and expiry, mints new ones, and revokes them. Only a signed-in browser can use it, so a token can’t manage tokens or passkeys. `DELETE /session.json` ends the token making the request. On a self-hosted board the same is available from a shell, each target wrapping a `bin/rails auth:*` task in the app’s container: | Command | What it does | | -------------------------- | --------------------------------------------------------------------------------------------------- | | `make token LABEL=claude` | Mint a token and print it. Unlabelled, it is `api`. `SCOPES="read write delete"` grants more | | `make tokens` | List tokens (OAuth clients included) with their scopes, when they were minted, and when they expire | | `make revoke LABEL=claude` | Revoke the tokens carrying that label | | `make reset-auth` | Revoke every token, browser session, and OAuth grant, and remove every passkey | A deactivated user’s token is refused with a `403` but not revoked; it works again once the user is reactivated. # Cards and lanes > Card numbers, the four fixed lanes, due dates, steps, moving cards, and filters. ## Boards and their four lanes [Section titled “Boards and their four lanes”](#boards-and-their-four-lanes) Every board has the same four fixed lanes, in order: | Lane | Meaning | `due_on` | | ------- | ------------------------------------------- | -------- | | Backlog | Unscheduled work; every new card lands here | Optional | | Todo | Queued | Required | | Doing | In progress | Required | | Done | Closed | Optional | Lanes can’t be created, renamed, reordered, recoloured, or deleted, so **columns have no endpoints of their own**. They travel with their board: `GET /boards/:id.json` includes the four `columns` in lane order, each with `id`, `name`, `color`, `position`, `created_at`, and a `cards_url` (the board’s card index narrowed to that lane). Lane names in the API are always the English keys above. ## Addressing cards [Section titled “Addressing cards”](#addressing-cards) Cards are addressed by their **`number`**, the small integer the UI shows, not their `id`. **Numbers run per board**, so every card path carries its board (`/boards/:board_id/cards/:number.json`), and two boards each holding a card `1` is normal. Every card carries its own `url`, which is the reliable way to reach it again. ## A card is one resource [Section titled “A card is one resource”](#a-card-is-one-resource) A card’s board, lane, pinned flag, and steps are attributes of the card. Read them all from `GET …/cards/:number.json`, and write any of them back with a single `PUT`: ```json { "title": "Ship it", "column_id": 4, "pinned": true, "steps_attributes": [ { "id": 12, "completed": true }, { "content": "A new step" } ] } ``` A `PUT` is applied in one write or refused with nothing written. Each change it makes is recorded on the server as its own event, with the label of the token that made it. **A card is created complete,** in Backlog, steps included. There is no draft, and a `board_id` or `column_id` in a create is ignored. On a plan with a card limit, a create past it is a `422`: `{ "errors": { "base": ["This account has used all 100 of its cards"] } }`. ### Descriptions and images [Section titled “Descriptions and images”](#descriptions-and-images) `description` is rich text, taken as plain text or HTML. A card reports both `description` (plain text) and `description_html`: **write the description back as HTML**, or its formatting and attachments are lost. `description_html` comes wrapped in an outer `
`; send back what is inside that wrapper (or your own HTML), not the wrapper itself, or each edit nests another one. Images belong in the description: upload them through Active Storage direct upload (`POST /rails/active_storage/direct_uploads`, which needs `write`) and embed them in the HTML. ### Steps [Section titled “Steps”](#steps) `steps_attributes` adds a step (no `id`), edits one (`id` plus the fields to change), or removes one (`id` plus `"_destroy": true`, which needs the `delete` scope). A step `id` from another card is a `404`. A row with nothing in it is dropped, but blanking the `content` of an existing step is a `422`. ## Due dates [Section titled “Due dates”](#due-dates) A card in Todo or Doing needs a `due_on` (`YYYY-MM-DD`), so moving an undated card there is a `422` unless the same `PUT` sets one: ```json { "errors": { "due_on": ["can't be blank in Todo or Doing"] } } ``` In Backlog and Done it is optional, and `""` or `null` clears it. A `due_on` that isn’t a real date (`"2026-02-30"`, `"next friday"`, `20261201`) is a `422` (`["is invalid"]`) in every lane. A card reports `overdue` when its `due_on` is before today, in the [owner’s time zone](/guides/requests/#time-zone). ## Moving cards [Section titled “Moving cards”](#moving-cards) * **Lanes.** `column_id` moves the card to another lane on its board. A `column_id` that isn’t on the board the card ends on is a `404`. * **Boards.** `board_id` moves the card to another board, where it lands in Backlog unless a `column_id` names one of the destination’s lanes. The card is **renumbered** there, so its old number and URL are stale: the response’s `Location` header carries the new URL, as does the body’s `url`. A `board_id` that isn’t yours is a `404`. ## Filtering cards [Section titled “Filtering cards”](#filtering-cards) `GET /cards.json` spans every board and `GET /boards/:board_id/cards.json` narrows to one; both take the same filters. | Parameter | Values | | -------------- | ---------------------------------------------------------------------------------------------------------------------------- | | `board_ids[]` | Board ids | | `column_ids[]` | Column ids, from a board’s `columns` | | `card_ids[]` | Card `id`s (not numbers) | | `terms[]` | Full-text terms | | `creation` | `today`, `yesterday`, `thisweek`, `thismonth`, `thisyear`, `lastweek`, `lastmonth`, `lastyear` | | `due` | `soon`: open cards due by tomorrow, the most overdue first | | `lane` | `backlog`, `todo`, `doing`, or `done`, in any case: that lane on every board | | `indexed_by` | `all` (the default) or `pinned` | | `sorted_by` | `latest` (most recently active first, the default), `newest`, or `oldest`. With `due=soon`, only `newest` and `oldest` apply | ## Notes [Section titled “Notes”](#notes) Notes are a collection of their own, because a card can carry thousands. A single card embeds its 20 most recent notes and `notes_truncated`; only when that is `true` do you need to page through `notes_url`. Notes are rich text (`body` reports `plain_text` and `html`), listed oldest first, and only their creator may change or delete them. ## Search [Section titled “Search”](#search) `GET /search.json?q=…` searches card titles, descriptions, and notes across every board, and returns the matching cards, most recently active first. A blank `q` returns nothing. Every word must match; `OR`, `AND`, `NOT` and `NEAR` are searched for as words, not operators; wrap words in double quotes to match a phrase. A card number is searched as plain text, so fetch a card by its number from its board instead. # Errors > The one error envelope, request ids, and what every status code means. Every failure comes back in one shape, in English whatever language the board’s owner picked. That includes failures with no record behind them and ones that never reach a controller, such as an unknown route or a crash: ```json { "errors": { "due_on": ["can't be blank in Todo or Doing"] }, "request_id": "5f0c1e9a-…" } ``` The keys of `errors` name the fields at fault; a failure that isn’t about a field is under `base`. ## Request ids [Section titled “Request ids”](#request-ids) `request_id` is the request’s reference, the same value as the `X-Request-Id` response header. Quote it when reporting a problem: it finds the request in the board’s logs. Send your own `X-Request-Id` and it is used instead, so your logs and the board’s share the id. ## Status codes [Section titled “Status codes”](#status-codes) | Status | When | | ------ | -------------------------------------------------------------------------------------------------------------------------------- | | `400` | The body is missing the object a write needs (the key names it), or isn’t valid JSON | | `401` | No credential, or a revoked or expired token | | `403` | The user is deactivated, the note isn’t yours to change, or the token lacks the [scope](/guides/authentication/#scopes) | | `404` | No such record or route, including a `column_id` that isn’t on the board the card ends on | | `406` | The endpoint doesn’t answer JSON (see [What the API doesn’t serve](/guides/requests/#what-the-api-doesnt-serve)) | | `409` | A concurrent change took the same unique value; retry | | `422` | Validation of what you sent failed, a required field was `null`, a query parameter isn’t recognised, or a search can’t be parsed | | `429` | The sign-in rate limit, or the token’s [request allowance](/guides/rate-limits/); wait for `Retry-After` | | `500` | A bug, still in the envelope under `base`. It is reported on the board’s side, and `request_id` identifies it | ## While a board restarts [Section titled “While a board restarts”](#while-a-board-restarts) For a few seconds while a board restarts, the edge in front of it may answer `404`, `502`, or `503` in plain text, with no JSON body and no `request_id`. Those answers come from the edge, not the board, so treat a `404`, `502`, or `503` that isn’t JSON as transient: retry with backoff before concluding that a record is gone. # Pagination > The data/paging envelope, following next, and the ramping page size. Every index answers with the same envelope: the records under `data`, the paging under `paging`. ```json { "data": [ … ], "paging": { "total": 42, "page": 1, "pages": 3, "next": "https://you.mudda.today/cards.json?page=2" } } ``` `next` is the URL of the following page, built from the request’s own host, or `null` on the last page or past it. **Follow it rather than building page numbers yourself.** A walk that stops at a `null` `next` ends, as long as the records aren’t growing faster than it reads them; cap the pages anyway, and stop on any failed request. There is no `per_page`, because the page size isn’t fixed: pages ramp **15, 30, 50, then 100 records** and stay at 100. Read `total` and `pages`, not a page size. The `X-Total-Count` and `Link: <…?page=2>; rel="next"` headers carry the same information. ```bash set -euo pipefail url="$MUDDA/cards.json" for _ in $(seq 1 1000); do page=$(curl -fsS -H "Authorization: Bearer $TOKEN" "$url") echo "$page" | jq -e '.data and .paging' > /dev/null # stop on anything but an index page echo "$page" | jq -c '.data[] | {number, title}' url=$(echo "$page" | jq -r '.paging.next // empty') [ -n "$url" ] || break done ``` # Quickstart > Mint a token, read your boards, and create your first card in five minutes. Mudda is a single-person Kanban board: **boards**, each with the same four lanes (Backlog, Todo, Doing, Done), holding **cards** with steps and **notes**. Everything you can see in the browser has a JSON form on the same URL, so a script reads and writes your board the way you do. Your board lives at its own address, such as `https://you.mudda.today`. The examples below call it `$MUDDA`. ## 1. Mint a token [Section titled “1. Mint a token”](#1-mint-a-token) In your board, open the profile (your avatar, top right) → **API tokens**, give the token a label naming the script or agent that will hold it (`quickstart`), and mint it. The token is shown once, so copy it now. ```bash export MUDDA=https://you.mudda.today export TOKEN=… ``` Connecting an AI agent? You don’t need a token at all: give the agent your board’s `/mcp` address and sign in once. See [Connect a client](/mcp/connect/). ## 2. Check who you are [Section titled “2. Check who you are”](#2-check-who-you-are) ```bash curl -H "Authorization: Bearer $TOKEN" $MUDDA/my/user.json ``` The answer names you, your account, the time zone “today” is reckoned in, and the token’s label and scopes. ## 3. Pick a board and its Doing lane [Section titled “3. Pick a board and its Doing lane”](#3-pick-a-board-and-its-doing-lane) ```bash curl -H "Authorization: Bearer $TOKEN" $MUDDA/boards.json ``` Every index answers `{ "data": [...], "paging": {...} }`. Take a board’s `id`, then read the board for its four lanes and keep Doing’s `id`: ```bash BOARD=$(curl -s -H "Authorization: Bearer $TOKEN" $MUDDA/boards.json | jq '.data[0].id') DOING=$(curl -s -H "Authorization: Bearer $TOKEN" $MUDDA/boards/$BOARD.json \ | jq '.columns[] | select(.name == "Doing") | .id') ``` ## 4. Create a card [Section titled “4. Create a card”](#4-create-a-card) A card is created whole, steps included, and lands in Backlog. Keep its `number`, which with the board addresses it: ```bash CARD=$(curl -s -X POST $MUDDA/boards/$BOARD/cards.json \ -H "Authorization: Bearer $TOKEN" \ -H "Content-Type: application/json" \ -d '{ "title": "Ship it", "due_on": "2026-12-01", "steps_attributes": [ { "content": "First" }, { "content": "Second" } ] }' \ | jq '.number') ``` The answer is `201` with the card, including its `number` and its `url`. ## 5. Move it to Doing [Section titled “5. Move it to Doing”](#5-move-it-to-doing) `PUT` Doing’s `id` on the card: ```bash curl -X PUT $MUDDA/boards/$BOARD/cards/$CARD.json \ -H "Authorization: Bearer $TOKEN" \ -H "Content-Type: application/json" \ -d "{ \"column_id\": $DOING }" ``` A card in Todo or Doing needs a due date, which this one has. Read [Cards and lanes](/guides/cards-and-lanes/) for the rules, and the [API reference](/reference/) for every endpoint. # Rate limits > What each token, sign-in, and OAuth registration is allowed. | What | Allowance | Past it | | --------------------------- | ------------------------------------------ | ---------------------------- | | Each token | **600 requests a minute** | `429` with `Retry-After: 60` | | Password or passkey sign-in | 10 attempts every 3 minutes per IP address | `429` | | OAuth client registration | 20 an hour per IP address | `429` | A token’s allowance covers the app’s endpoints; Active Storage uploads and the OAuth endpoints aren’t counted. Requests refused for their credential, scope, or format (a `401`, the scope or deactivation `403`, a `406`) don’t count, and browsers aren’t limited. **Over MCP**, every request to `/mcp` checks the credential with an API request of its own, so any MCP message (`initialize`, `tools/list`, `ping`) spends one of the token’s 600, and a tool call spends two: at most 300 tool calls a minute. When you get a `429`, wait for the `Retry-After` seconds before trying again. # Requests and conventions > URLs, request bodies, status codes, strict query parameters, and time zones. ## URLs [Section titled “URLs”](#urls) 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”](#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”](#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: ```json { "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: ```python requests.get(f"{mudda}/cards.json", headers=headers, params=[("column_ids[]", 3), ("column_ids[]", 4)]) ``` ```js const query = new URLSearchParams([["column_ids[]", "3"], ["column_ids[]", "4"]]); await fetch(`${mudda}/cards.json?${query}`, { headers }); ``` ## Time zone [Section titled “Time zone”](#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”](#what-the-api-doesnt-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](/reference/), which lists everything that answers JSON. # MCP overview > Mudda's Model Context Protocol server at /mcp, and how it maps onto the JSON API. Mudda serves the [Model Context Protocol](https://modelcontextprotocol.io) at **`/mcp`** on your board (`https://you.mudda.today/mcp`), so an AI agent can read and work your boards with nothing to install. It is the [JSON API](/reference/) with a tool catalogue in front: **every tool is one API call made with the agent’s own token**, so what an agent may do and what it gets back are exactly what the API says. That includes the token’s [scopes](/guides/authentication/#scopes), its [rate limit](/guides/rate-limits/), attribution of its work by label, and English answers. ## What an agent can do [Section titled “What an agent can do”](#what-an-agent-can-do) | Tool | API call | | ------------------------------------------ | ----------------------------------------------------------- | | [`whoami`](/mcp/tools/whoami/) | `GET /my/user`, including the owner’s `timezone` | | [`search_cards`](/mcp/tools/search_cards/) | `GET /search?q=` | | [`list_boards`](/mcp/tools/list_boards/) | `GET /boards` | | [`get_board`](/mcp/tools/get_board/) | `GET /boards/:id`, with the four columns and their ids | | [`create_board`](/mcp/tools/create_board/) | `POST /boards` | | [`rename_board`](/mcp/tools/rename_board/) | `PUT /boards/:id` | | [`list_cards`](/mcp/tools/list_cards/) | `GET /cards` or `GET /boards/:board_id/cards`, with filters | | [`get_card`](/mcp/tools/get_card/) | `GET /boards/:board_id/cards/:number` | | [`create_card`](/mcp/tools/create_card/) | `POST /boards/:board_id/cards` | | [`update_card`](/mcp/tools/update_card/) | `PUT /boards/:board_id/cards/:number` | | [`list_notes`](/mcp/tools/list_notes/) | `GET /boards/:board_id/cards/:number/notes` | | [`add_note`](/mcp/tools/add_note/) | `POST /boards/:board_id/cards/:number/notes` | | [`update_note`](/mcp/tools/update_note/) | `PUT /boards/:board_id/cards/:number/notes/:id` | | [`delete_board`](/mcp/tools/delete_board/) | `DELETE /boards/:id` | | [`delete_card`](/mcp/tools/delete_card/) | `DELETE /boards/:board_id/cards/:number` | | [`delete_note`](/mcp/tools/delete_note/) | `DELETE /boards/:board_id/cards/:number/notes/:id` | Cards are addressed by board id and per-board `number`, as in the API. ## Scopes decide the catalogue [Section titled “Scopes decide the catalogue”](#scopes-decide-the-catalogue) **A client is offered only the tools its token’s scopes allow.** Reading tools need `read`, the create and update tools need `write`, and the three delete tools need `delete`. Calling a tool that wasn’t offered is a JSON-RPC error (unknown tool), and the API would refuse the call anyway. Removing a step with `update_card` (`remove: true`) is a deletion, so it needs `delete` too. Each tool carries MCP annotations (`readOnlyHint`, `destructiveHint`, `idempotentHint`, and `openWorldHint: false`), so a client can ask before running the destructive ones. `update_card` is marked destructive and not idempotent, since it can remove steps and repeating it adds its new steps again. ## Results and errors [Section titled “Results and errors”](#results-and-errors) A tool’s result is the API’s JSON response as text, or `Done.` when the API answers with no body (a delete). A call the API refuses is a tool error (`isError`) whose text is the API’s [error envelope](/guides/errors/) plus the HTTP status, so an agent can tell a missing card (`404`) from a bad field (`422`): ```json { "status": 422, "errors": { "due_on": ["can't be blank in Todo or Doing"] }, "request_id": "5f0c1e9a-…" } ``` `request_id` is the MCP request’s id, the same as its `X-Request-Id` response header (send your own and it is kept). A JSON-RPC error carries it too, in `error.data.request_id`. Quote it when reporting a problem. Arguments are checked against the tool’s schema before anything reaches the API. A call that fails that check is also a tool error, but its text is a plain message naming the argument, with no envelope. ## The transport [Section titled “The transport”](#the-transport) `/mcp` speaks **Streamable HTTP** and is stateless: it answers in plain JSON and keeps no sessions, and a `GET` for a server-sent event stream is refused. Every MCP message spends one of the token’s requests and a tool call two; see [Rate limits](/guides/rate-limits/). # Connect a client > Connect Claude, ChatGPT, Cursor, or any MCP client to your Mudda board. Your board’s MCP address is its own address with `/mcp` on the end: ```text https://you.mudda.today/mcp ``` ## With OAuth, the one-click way [Section titled “With OAuth, the one-click way”](#with-oauth-the-one-click-way) 1. **Add the address to your client.** * claude.ai In Settings, find connectors and add a custom connector, then paste `https://you.mudda.today/mcp` as its URL. The menu names change from time to time; see Anthropic’s help center if you can’t find it. * Claude Code ```bash claude mcp add --transport http mudda https://you.mudda.today/mcp ``` Then run `/mcp` in Claude Code and choose **mudda** to sign in. * ChatGPT Custom connectors need developer mode on a paid plan: turn it on in Settings under the connectors (or apps) section’s advanced settings, then create a connector there and paste `https://you.mudda.today/mcp` as the MCP server URL. The menu names change from time to time; see OpenAI’s help center if you can’t find it. * Cursor Add to `~/.cursor/mcp.json`: ```json { "mcpServers": { "mudda": { "url": "https://you.mudda.today/mcp" } } } ``` 2. **Sign in and allow it.** The client discovers that Mudda issues its own tokens, registers itself, and opens your board in the browser. Sign in if you aren’t, untick anything you don’t want it to do (it can’t delete unless it asks to and you allow it), and allow it. 3. **Ask away.** The client holds a token that refreshes itself. It appears under the profile (your avatar) → **API tokens** as a connected client, where you can revoke it at any time. See [OAuth](/mcp/oauth/) for what happens underneath. ## With a token you mint [Section titled “With a token you mint”](#with-a-token-you-mint) For a client that can’t do OAuth, or a script. Mint a token for the agent under profile → **API tokens** (on a self-hosted board, `make token LABEL=claude` also works), giving each agent its own label. Tick **delete** only if the agent should be able to delete. Then point the client at `/mcp` with the token as a bearer header. For Claude Code: ```bash claude mcp add --transport http mudda https://you.mudda.today/mcp \ --header "Authorization: Bearer $TOKEN" ``` Any client that speaks Streamable HTTP and can send a header works the same way. The token is the only credential `/mcp` accepts; a browser’s session cookie is not. A refusal is the API’s own (see [Errors](/guides/errors/)), and a `429` keeps its `Retry-After`. ## You stay in charge [Section titled “You stay in charge”](#you-stay-in-charge) * **Choose what it may do.** Reading, writing and deleting are separate scopes, and you pick them at consent. * **Revoke it any time** from API tokens, one label or connected client at a time; consenting again brings it back. * **Its changes carry its name.** The board records the token’s label with every change an agent makes. # OAuth > Mudda as an OAuth 2.1 authorization server for MCP clients — discovery, registration, PKCE, consent, and revocation. Mudda is its own OAuth 2.1 authorization server, following the [MCP authorization spec](https://modelcontextprotocol.io/specification/latest/basic/authorization). Most clients do all of this for you; this page is for anyone building one. ## The flow [Section titled “The flow”](#the-flow) | Step | Endpoint | Standard | | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------- | ------------------- | | A `401` from `/mcp` carries `WWW-Authenticate: Bearer resource_metadata="…", scope="read write"` | `/mcp` | RFC 9728 | | The client reads which server issues tokens for `/mcp`: this one | `GET /.well-known/oauth-protected-resource` (also with `/mcp` appended) | RFC 9728 | | …and that server’s endpoints and capabilities | `GET /.well-known/oauth-authorization-server` (also with a path appended) | RFC 8414 | | It registers itself, getting a `client_id` | `POST /oauth/registrations` | RFC 7591 | | It sends the user to consent, with a PKCE challenge | `GET /oauth/authorize` | OAuth 2.1, RFC 7636 | | It redeems the code (valid 10 minutes) with the PKCE verifier | `POST /oauth/token` | OAuth 2.1 | | It refreshes the hour-long access token as it expires | `POST /oauth/token` | OAuth 2.1 | | It may revoke its own token | `POST /oauth/revoke` | RFC 7009 | | It may ask whether one of its tokens is still active | `POST /oauth/introspect` | RFC 7662 | ## What is enforced [Section titled “What is enforced”](#what-is-enforced) * **PKCE with `S256`** on every authorization, confidential clients included, and only the authorization-code and refresh-token grants. * **Consent needs the signed-in browser.** A signed-out user is sent to sign in and brought back. A bearer token can’t approve anything, so a read-only token can’t grant itself more. * **The user is always asked.** A client that already holds a token is still shown the consent screen, because consent also sets what its session may do. * **The user chooses the scopes.** Every scope the client asked for is listed, ticked, and only those left ticked are granted. Unticking all of them approves nothing. Ask for `read write` unless your client needs to delete; an unknown scope is refused. * **The consent screen names where the client will be sent**, since anyone can register a client under any name. * **Redirect URIs** must be `https`, `http` on a loopback host (`localhost`, `127.0.0.1`, `::1`) for native clients, or a private-use scheme in the `scheme://` form (`cursor://…`). Out-of-band URIs are refused. * **A `resource` (RFC 8707) naming any other server is refused** at `/oauth/authorize`, so tokens from a board only work on that board. * Tokens and client secrets are stored hashed. **Access tokens last an hour**, and each refresh rotates the refresh token. A refresh token unused for 90 days is refused, so a client that stopped being used has to ask the user again. * Registration is open but grants nothing on its own, and is limited to 20 an hour per IP address. ## Connected clients [Section titled “Connected clients”](#connected-clients) **A connected client is a token like any other**, labelled with the client’s name and carrying the scopes granted, and there is one per client. Consenting under a name that another client already holds replaces that client’s grant, the way minting replaces a token of the same label. Claude Code re-registers on each `claude mcp add`, so that is how its old connection is dropped. A client’s work is attributed to its name. Revoking it under API tokens revokes its access and refresh tokens, and consenting again brings it back. ## Clients that won’t work [Section titled “Clients that won’t work”](#clients-that-wont-work) The issuer and every URL come from the board’s own host, and clients refuse an issuer that doesn’t match the URL they reached. Browser-only clients that call the token endpoint directly from a page are not supported, because there are no CORS headers. Server-side and native clients (claude.ai, ChatGPT, Claude Code, Cursor) don’t need them. # add_note > Adds a timestamped note to a card's log. **Add a note.** Adds a timestamped note to a card’s log. | Needs scope | Read-only | Destructive | Idempotent | | ----------- | --------- | ----------- | ---------- | | `write` | No | No | No | ## Arguments [Section titled “Arguments”](#arguments) | Argument | Type | Required | Description | | ---------- | ------- | -------- | -------------------------------------------- | | `board_id` | integer | Yes | The board the card is on | | `number` | integer | Yes | The card’s number on that board (not its id) | | `body` | string | Yes | Rich text; plain text or HTML | ## API call [Section titled “API call”](#api-call) * `POST /boards/{board_id}/cards/{card_number}/notes.json` The result is the API’s JSON answer as text, or `Done.` for an answer with no body. A refusal is a tool error carrying the [error envelope](/guides/errors/) and the HTTP status. ## Input schema [Section titled “Input schema”](#input-schema) ```json { "$schema": "https://json-schema.org/draft/2020-12/schema", "properties": { "board_id": { "type": "integer", "description": "The board the card is on" }, "number": { "type": "integer", "description": "The card's number on that board (not its id)" }, "body": { "type": "string", "description": "Rich text; plain text or HTML" } }, "required": [ "board_id", "number", "body" ], "additionalProperties": false, "type": "object" } ``` # create_board > Creates a board. It comes with the four fixed columns; they can't be added, removed, or renamed. **Create a board.** Creates a board. It comes with the four fixed columns; they can’t be added, removed, or renamed. | Needs scope | Read-only | Destructive | Idempotent | | ----------- | --------- | ----------- | ---------- | | `write` | No | No | No | ## Arguments [Section titled “Arguments”](#arguments) | Argument | Type | Required | Description | | -------- | ------ | -------- | ----------- | | `name` | string | Yes | | ## API call [Section titled “API call”](#api-call) * `POST /boards.json` The result is the API’s JSON answer as text, or `Done.` for an answer with no body. A refusal is a tool error carrying the [error envelope](/guides/errors/) and the HTTP status. ## Input schema [Section titled “Input schema”](#input-schema) ```json { "$schema": "https://json-schema.org/draft/2020-12/schema", "properties": { "name": { "type": "string" } }, "required": [ "name" ], "additionalProperties": false, "type": "object" } ``` # create_card > Creates a card, complete, in the board's Backlog column. `due_on` is optional there, and required before the card moves to Todo or Doing. Steps are created with it, in order. The result carries the card's `number`, which together with the board addresses it from now on. **Create a card.** Creates a card, complete, in the board’s Backlog column. `due_on` is optional there, and required before the card moves to Todo or Doing. Steps are created with it, in order. The result carries the card’s `number`, which together with the board addresses it from now on. | Needs scope | Read-only | Destructive | Idempotent | | ----------- | --------- | ----------- | ---------- | | `write` | No | No | No | ## Arguments [Section titled “Arguments”](#arguments) | Argument | Type | Required | Description | | ------------- | --------- | -------- | ----------------------------- | | `board_id` | integer | Yes | | | `title` | string | Yes | | | `due_on` | string | No | YYYY-MM-DD | | `description` | string | No | Rich text; plain text or HTML | | `pinned` | boolean | No | Pinned to the top of its lane | | `steps` | string\[] | No | Checklist steps, in order | ## API call [Section titled “API call”](#api-call) * `POST /boards/{board_id}/cards.json` The result is the API’s JSON answer as text, or `Done.` for an answer with no body. A refusal is a tool error carrying the [error envelope](/guides/errors/) and the HTTP status. ## Input schema [Section titled “Input schema”](#input-schema) ```json { "$schema": "https://json-schema.org/draft/2020-12/schema", "properties": { "board_id": { "type": "integer" }, "title": { "type": "string" }, "due_on": { "type": "string", "format": "date", "description": "YYYY-MM-DD" }, "description": { "type": "string", "description": "Rich text; plain text or HTML" }, "pinned": { "type": "boolean", "description": "Pinned to the top of its lane" }, "steps": { "type": "array", "items": { "type": "string" }, "description": "Checklist steps, in order" } }, "required": [ "board_id", "title" ], "additionalProperties": false, "type": "object" } ``` # delete_board > Permanently deletes a board and every card and note on it. This can't be undone. **Delete a board.** Permanently deletes a board and every card and note on it. This can’t be undone. | Needs scope | Read-only | Destructive | Idempotent | | ----------- | --------- | ----------- | ---------- | | `delete` | No | Yes | Yes | ## Arguments [Section titled “Arguments”](#arguments) | Argument | Type | Required | Description | | ---------- | ------- | -------- | ----------- | | `board_id` | integer | Yes | | ## API call [Section titled “API call”](#api-call) * `DELETE /boards/{id}.json` The result is the API’s JSON answer as text, or `Done.` for an answer with no body. A refusal is a tool error carrying the [error envelope](/guides/errors/) and the HTTP status. ## Input schema [Section titled “Input schema”](#input-schema) ```json { "$schema": "https://json-schema.org/draft/2020-12/schema", "properties": { "board_id": { "type": "integer" } }, "required": [ "board_id" ], "additionalProperties": false, "type": "object" } ``` # delete_card > Permanently deletes a card with its steps and notes. This can't be undone; to put a card aside, move it to Backlog or Done with `update_card` instead. **Delete a card.** Permanently deletes a card with its steps and notes. This can’t be undone; to put a card aside, move it to Backlog or Done with `update_card` instead. | Needs scope | Read-only | Destructive | Idempotent | | ----------- | --------- | ----------- | ---------- | | `delete` | No | Yes | Yes | ## Arguments [Section titled “Arguments”](#arguments) | Argument | Type | Required | Description | | ---------- | ------- | -------- | -------------------------------------------- | | `board_id` | integer | Yes | The board the card is on | | `number` | integer | Yes | The card’s number on that board (not its id) | ## API call [Section titled “API call”](#api-call) * `DELETE /boards/{board_id}/cards/{number}.json` The result is the API’s JSON answer as text, or `Done.` for an answer with no body. A refusal is a tool error carrying the [error envelope](/guides/errors/) and the HTTP status. ## Input schema [Section titled “Input schema”](#input-schema) ```json { "$schema": "https://json-schema.org/draft/2020-12/schema", "properties": { "board_id": { "type": "integer", "description": "The board the card is on" }, "number": { "type": "integer", "description": "The card's number on that board (not its id)" } }, "required": [ "board_id", "number" ], "additionalProperties": false, "type": "object" } ``` # delete_note > Permanently deletes a note from a card's log. Only the note's creator may delete it. **Delete a note.** Permanently deletes a note from a card’s log. Only the note’s creator may delete it. | Needs scope | Read-only | Destructive | Idempotent | | ----------- | --------- | ----------- | ---------- | | `delete` | No | Yes | Yes | ## Arguments [Section titled “Arguments”](#arguments) | Argument | Type | Required | Description | | ---------- | ------- | -------- | -------------------------------------------- | | `board_id` | integer | Yes | The board the card is on | | `number` | integer | Yes | The card’s number on that board (not its id) | | `note_id` | integer | Yes | | ## API call [Section titled “API call”](#api-call) * `DELETE /boards/{board_id}/cards/{card_number}/notes/{id}.json` The result is the API’s JSON answer as text, or `Done.` for an answer with no body. A refusal is a tool error carrying the [error envelope](/guides/errors/) and the HTTP status. ## Input schema [Section titled “Input schema”](#input-schema) ```json { "$schema": "https://json-schema.org/draft/2020-12/schema", "properties": { "board_id": { "type": "integer", "description": "The board the card is on" }, "number": { "type": "integer", "description": "The card's number on that board (not its id)" }, "note_id": { "type": "integer" } }, "required": [ "board_id", "number", "note_id" ], "additionalProperties": false, "type": "object" } ``` # get_board > One board with its four fixed columns, in order: Backlog, Todo, Doing, Done. Column ids from here are what `update_card` takes as `column_id` and `list_cards` as `column_ids`. **Get a board.** One board with its four fixed columns, in order: Backlog, Todo, Doing, Done. Column ids from here are what `update_card` takes as `column_id` and `list_cards` as `column_ids`. | Needs scope | Read-only | Destructive | Idempotent | | ----------- | --------- | ----------- | ---------- | | `read` | Yes | No | Yes | ## Arguments [Section titled “Arguments”](#arguments) | Argument | Type | Required | Description | | ---------- | ------- | -------- | ----------- | | `board_id` | integer | Yes | | ## API call [Section titled “API call”](#api-call) * `GET /boards/{id}.json` The result is the API’s JSON answer as text, or `Done.` for an answer with no body. A refusal is a tool error carrying the [error envelope](/guides/errors/) and the HTTP status. ## Input schema [Section titled “Input schema”](#input-schema) ```json { "$schema": "https://json-schema.org/draft/2020-12/schema", "properties": { "board_id": { "type": "integer" } }, "required": [ "board_id" ], "additionalProperties": false, "type": "object" } ``` # get_card > The whole card: its fields, board, column, every step, and its 20 most recent notes. When `notes_truncated` is true, `list_notes` pages through the rest. **Get a card.** The whole card: its fields, board, column, every step, and its 20 most recent notes. When `notes_truncated` is true, `list_notes` pages through the rest. | Needs scope | Read-only | Destructive | Idempotent | | ----------- | --------- | ----------- | ---------- | | `read` | Yes | No | Yes | ## Arguments [Section titled “Arguments”](#arguments) | Argument | Type | Required | Description | | ---------- | ------- | -------- | -------------------------------------------- | | `board_id` | integer | Yes | The board the card is on | | `number` | integer | Yes | The card’s number on that board (not its id) | ## API call [Section titled “API call”](#api-call) * `GET /boards/{board_id}/cards/{number}.json` The result is the API’s JSON answer as text, or `Done.` for an answer with no body. A refusal is a tool error carrying the [error envelope](/guides/errors/) and the HTTP status. ## Input schema [Section titled “Input schema”](#input-schema) ```json { "$schema": "https://json-schema.org/draft/2020-12/schema", "properties": { "board_id": { "type": "integer", "description": "The board the card is on" }, "number": { "type": "integer", "description": "The card's number on that board (not its id)" } }, "required": [ "board_id", "number" ], "additionalProperties": false, "type": "object" } ``` # list_boards > Every board in the account. Paged: follow paging.next or pass `page`. **List boards.** Every board in the account. Paged: follow paging.next or pass `page`. | Needs scope | Read-only | Destructive | Idempotent | | ----------- | --------- | ----------- | ---------- | | `read` | Yes | No | Yes | ## Arguments [Section titled “Arguments”](#arguments) | Argument | Type | Required | Description | | -------- | ------- | -------- | ----------- | | `page` | integer | No | | ## API call [Section titled “API call”](#api-call) * `GET /boards.json` The result is the API’s JSON answer as text, or `Done.` for an answer with no body. A refusal is a tool error carrying the [error envelope](/guides/errors/) and the HTTP status. ## Input schema [Section titled “Input schema”](#input-schema) ```json { "$schema": "https://json-schema.org/draft/2020-12/schema", "properties": { "page": { "type": "integer", "minimum": 1 } }, "additionalProperties": false, "type": "object" } ``` # list_cards > Cards across every board, or on one board when `board_id` is given; the filters narrow either. To read one lane, pass its column id (from `get_board`) in `column_ids`, or name it in `lane` to read that lane on every board. `due: "soon"` gives the open cards due by tomorrow, the most overdue first. Paged: follow paging.next or pass `page`. **List cards.** Cards across every board, or on one board when `board_id` is given; the filters narrow either. To read one lane, pass its column id (from `get_board`) in `column_ids`, or name it in `lane` to read that lane on every board. `due: "soon"` gives the open cards due by tomorrow, the most overdue first. Paged: follow paging.next or pass `page`. | Needs scope | Read-only | Destructive | Idempotent | | ----------- | --------- | ----------- | ---------- | | `read` | Yes | No | Yes | ## Arguments [Section titled “Arguments”](#arguments) | Argument | Type | Required | Description | | ------------ | ------------------------------------------------------------------------------------------------------------ | -------- | ----------------------------------------------- | | `board_id` | integer | No | Only this board’s cards | | `board_ids` | integer\[] | No | | | `column_ids` | integer\[] | No | | | `card_ids` | integer\[] | No | | | `terms` | string\[] | No | Full-text terms | | `creation` | `today` \| `yesterday` \| `thisweek` \| `thismonth` \| `thisyear` \| `lastweek` \| `lastmonth` \| `lastyear` | No | When the card was created | | `due` | `soon` | No | soon: open cards due by tomorrow, overdue first | | `lane` | `backlog` \| `todo` \| `doing` \| `done` | No | A lane by name, on every board | | `indexed_by` | `all` \| `pinned` | No | | | `sorted_by` | `latest` \| `newest` \| `oldest` | No | | | `page` | integer | No | | ## API call [Section titled “API call”](#api-call) * `GET /cards.json` * `GET /boards/{board_id}/cards.json` The result is the API’s JSON answer as text, or `Done.` for an answer with no body. A refusal is a tool error carrying the [error envelope](/guides/errors/) and the HTTP status. ## Input schema [Section titled “Input schema”](#input-schema) ```json { "$schema": "https://json-schema.org/draft/2020-12/schema", "properties": { "board_id": { "type": "integer", "description": "Only this board's cards" }, "board_ids": { "type": "array", "items": { "type": "integer" } }, "column_ids": { "type": "array", "items": { "type": "integer" } }, "card_ids": { "type": "array", "items": { "type": "integer" } }, "terms": { "type": "array", "items": { "type": "string" }, "description": "Full-text terms" }, "creation": { "type": "string", "enum": [ "today", "yesterday", "thisweek", "thismonth", "thisyear", "lastweek", "lastmonth", "lastyear" ], "description": "When the card was created" }, "due": { "type": "string", "enum": [ "soon" ], "description": "soon: open cards due by tomorrow, overdue first" }, "lane": { "type": "string", "enum": [ "backlog", "todo", "doing", "done" ], "description": "A lane by name, on every board" }, "indexed_by": { "type": "string", "enum": [ "all", "pinned" ] }, "sorted_by": { "type": "string", "enum": [ "latest", "newest", "oldest" ] }, "page": { "type": "integer", "minimum": 1 } }, "additionalProperties": false, "type": "object" } ``` # list_notes > A card's whole note log. `get_card` already embeds the 20 most recent, so this is only needed when its `notes_truncated` is true. Paged: follow paging.next or pass `page`. **List a card’s notes.** A card’s whole note log. `get_card` already embeds the 20 most recent, so this is only needed when its `notes_truncated` is true. Paged: follow paging.next or pass `page`. | Needs scope | Read-only | Destructive | Idempotent | | ----------- | --------- | ----------- | ---------- | | `read` | Yes | No | Yes | ## Arguments [Section titled “Arguments”](#arguments) | Argument | Type | Required | Description | | ---------- | ------- | -------- | -------------------------------------------- | | `board_id` | integer | Yes | The board the card is on | | `number` | integer | Yes | The card’s number on that board (not its id) | | `page` | integer | No | | ## API call [Section titled “API call”](#api-call) * `GET /boards/{board_id}/cards/{card_number}/notes.json` The result is the API’s JSON answer as text, or `Done.` for an answer with no body. A refusal is a tool error carrying the [error envelope](/guides/errors/) and the HTTP status. ## Input schema [Section titled “Input schema”](#input-schema) ```json { "$schema": "https://json-schema.org/draft/2020-12/schema", "properties": { "board_id": { "type": "integer", "description": "The board the card is on" }, "number": { "type": "integer", "description": "The card's number on that board (not its id)" }, "page": { "type": "integer", "minimum": 1 } }, "required": [ "board_id", "number" ], "additionalProperties": false, "type": "object" } ``` # rename_board > Renames a board. **Rename a board.** Renames a board. | Needs scope | Read-only | Destructive | Idempotent | | ----------- | --------- | ----------- | ---------- | | `write` | No | No | Yes | ## Arguments [Section titled “Arguments”](#arguments) | Argument | Type | Required | Description | | ---------- | ------- | -------- | ----------- | | `board_id` | integer | Yes | | | `name` | string | Yes | | ## API call [Section titled “API call”](#api-call) * `PUT /boards/{id}.json` The result is the API’s JSON answer as text, or `Done.` for an answer with no body. A refusal is a tool error carrying the [error envelope](/guides/errors/) and the HTTP status. ## Input schema [Section titled “Input schema”](#input-schema) ```json { "$schema": "https://json-schema.org/draft/2020-12/schema", "properties": { "board_id": { "type": "integer" }, "name": { "type": "string" } }, "required": [ "board_id", "name" ], "additionalProperties": false, "type": "object" } ``` # search_cards > Full-text search over card titles, descriptions, and notes across every board. A card number is searched as plain text; fetch a card by its number with get_card. Paged: follow paging.next or pass `page`. **Search cards.** Full-text search over card titles, descriptions, and notes across every board. A card number is searched as plain text; fetch a card by its number with get_card. Paged: follow paging.next or pass `page`. | Needs scope | Read-only | Destructive | Idempotent | | ----------- | --------- | ----------- | ---------- | | `read` | Yes | No | Yes | ## Arguments [Section titled “Arguments”](#arguments) | Argument | Type | Required | Description | | -------- | ------- | -------- | --------------- | | `q` | string | Yes | The search text | | `page` | integer | No | | ## API call [Section titled “API call”](#api-call) * `GET /search.json` The result is the API’s JSON answer as text, or `Done.` for an answer with no body. A refusal is a tool error carrying the [error envelope](/guides/errors/) and the HTTP status. ## Input schema [Section titled “Input schema”](#input-schema) ```json { "$schema": "https://json-schema.org/draft/2020-12/schema", "properties": { "q": { "type": "string", "description": "The search text" }, "page": { "type": "integer", "minimum": 1 } }, "required": [ "q" ], "additionalProperties": false, "type": "object" } ``` # update_card > Changes any of a card's fields in one write — all of it applies or none of it does. Move it between lanes with `column_id` (a column of the board it ends up on). Move it to another board with `to_board_id`: it is renumbered there, so use the `number` and `url` in the result from then on; with no `column_id` it lands in that board's Backlog. In Todo and Doing a card needs a `due_on`, so set one in the same write that moves it there. Steps: an entry with no `id` adds one; with an `id` it edits that step, or removes it when `remove` is true. Removing a step needs the delete scope; adding and editing need only write. **Update a card.** Changes any of a card’s fields in one write — all of it applies or none of it does. Move it between lanes with `column_id` (a column of the board it ends up on). Move it to another board with `to_board_id`: it is renumbered there, so use the `number` and `url` in the result from then on; with no `column_id` it lands in that board’s Backlog. In Todo and Doing a card needs a `due_on`, so set one in the same write that moves it there. Steps: an entry with no `id` adds one; with an `id` it edits that step, or removes it when `remove` is true. Removing a step needs the delete scope; adding and editing need only write. | Needs scope | Read-only | Destructive | Idempotent | | ----------- | --------- | ----------- | ---------- | | `write` | No | Yes | No | ## Arguments [Section titled “Arguments”](#arguments) | Argument | Type | Required | Description | | ------------- | --------- | -------- | -------------------------------------------- | | `board_id` | integer | Yes | The board the card is on | | `number` | integer | Yes | The card’s number on that board (not its id) | | `title` | string | No | | | `due_on` | string | No | YYYY-MM-DD | | `description` | string | No | Rich text; replaces the whole description | | `pinned` | boolean | No | Pinned to the top of its lane | | `column_id` | integer | No | The lane to move the card to | | `to_board_id` | integer | No | The board to move the card to | | `steps` | object\[] | No | | ## API call [Section titled “API call”](#api-call) * `PUT /boards/{board_id}/cards/{number}.json` The result is the API’s JSON answer as text, or `Done.` for an answer with no body. A refusal is a tool error carrying the [error envelope](/guides/errors/) and the HTTP status. ## Input schema [Section titled “Input schema”](#input-schema) ```json { "$schema": "https://json-schema.org/draft/2020-12/schema", "properties": { "board_id": { "type": "integer", "description": "The board the card is on" }, "number": { "type": "integer", "description": "The card's number on that board (not its id)" }, "title": { "type": "string" }, "due_on": { "type": "string", "format": "date", "description": "YYYY-MM-DD" }, "description": { "type": "string", "description": "Rich text; replaces the whole description" }, "pinned": { "type": "boolean", "description": "Pinned to the top of its lane" }, "column_id": { "type": "integer", "description": "The lane to move the card to" }, "to_board_id": { "type": "integer", "description": "The board to move the card to" }, "steps": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "integer" }, "content": { "type": "string" }, "completed": { "type": "boolean" }, "remove": { "type": "boolean", "description": "Delete this step; needs the delete scope" } } } } }, "required": [ "board_id", "number" ], "additionalProperties": false, "type": "object" } ``` # update_note > Replaces a note's body. Only the note's creator may edit it. **Edit a note.** Replaces a note’s body. Only the note’s creator may edit it. | Needs scope | Read-only | Destructive | Idempotent | | ----------- | --------- | ----------- | ---------- | | `write` | No | No | Yes | ## Arguments [Section titled “Arguments”](#arguments) | Argument | Type | Required | Description | | ---------- | ------- | -------- | -------------------------------------------- | | `board_id` | integer | Yes | The board the card is on | | `number` | integer | Yes | The card’s number on that board (not its id) | | `note_id` | integer | Yes | | | `body` | string | Yes | Rich text; plain text or HTML | ## API call [Section titled “API call”](#api-call) * `PUT /boards/{board_id}/cards/{card_number}/notes/{id}.json` The result is the API’s JSON answer as text, or `Done.` for an answer with no body. A refusal is a tool error carrying the [error envelope](/guides/errors/) and the HTTP status. ## Input schema [Section titled “Input schema”](#input-schema) ```json { "$schema": "https://json-schema.org/draft/2020-12/schema", "properties": { "board_id": { "type": "integer", "description": "The board the card is on" }, "number": { "type": "integer", "description": "The card's number on that board (not its id)" }, "note_id": { "type": "integer" }, "body": { "type": "string", "description": "Rich text; plain text or HTML" } }, "required": [ "board_id", "number", "note_id", "body" ], "additionalProperties": false, "type": "object" } ``` # whoami > The signed-in user (id, name, email) and their account. **Who am I.** The signed-in user (id, name, email) and their account. | Needs scope | Read-only | Destructive | Idempotent | | ----------- | --------- | ----------- | ---------- | | `read` | Yes | No | Yes | ## Arguments [Section titled “Arguments”](#arguments) None. ## API call [Section titled “API call”](#api-call) * `GET /my/user.json` The result is the API’s JSON answer as text, or `Done.` for an answer with no body. A refusal is a tool error carrying the [error envelope](/guides/errors/) and the HTTP status. ## Input schema [Section titled “Input schema”](#input-schema) ```json { "$schema": "https://json-schema.org/draft/2020-12/schema", "properties": {}, "additionalProperties": false, "type": "object" } ``` # OpenAPI specification > The API reference as an OpenAPI 3 document, every endpoint, parameter, and schema. The [API reference](/reference/) is generated from this OpenAPI document, also served as a file at [/openapi.yaml](/openapi.yaml). ```yaml openapi: 3.1.0 info: title: Mudda API version: "1.0" summary: The JSON API a script or agent drives Mudda through. description: | Every resource has a JSON representation on the same URL as its page: `GET /boards/123` returns a page, `GET /boards/123.json` returns the board. URLs carry no account prefix; the account is whoever the credential belongs to. 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, but "today" (`overdue`, `due=soon`, `creation`) is the owner's day. JSON is opt-in: an endpoint not listed here answers a JSON request with `406` before the action runs. Every failure comes back in one envelope, in English, carrying the request id. This file is the published contract consumed by the mudda-docs site, and `test/integration/published_contract_test.rb` keeps it in step with the routes and checks real responses against its schemas. servers: - url: https://{board}.mudda.today description: A hosted board variables: board: default: your-board description: The board's subdomain. security: - bearerToken: [] tags: - name: Users & account description: The signed-in user, their account, preferences, and time zone. - name: Boards description: Boards and their four fixed columns (Backlog, Todo, Doing, Done). - name: Cards description: Cards, addressed per board by their `number`. - name: Steps description: | A card's checklist. Steps have no JSON endpoints of their own: they are read in a card's `steps` and written through `steps_attributes` on `POST`/`PUT` of the card. - name: Notes description: The timestamped log on a card. - name: Search description: Full-text search across every board. - name: Tokens description: | Minting tokens over JSON. Tokens are also minted from the profile's API tokens page, `make token`, and OAuth. The OAuth and `/.well-known/` endpoints answer JSON too, but are described at https://docs.mudda.today/mcp/oauth/ rather than here. - name: Uploads description: | Active Storage direct uploads: register a blob, `PUT` the file's bytes to the URL it returns, then pass its `signed_id` (an avatar) or embed it (rich text). - name: Passkeys description: The WebAuthn challenge a passkey ceremony signs. - name: Sessions description: Ending the session that makes the request. paths: /my/user.json: get: tags: [Users & account] operationId: getCurrentUser summary: Get the signed-in user description: | The signed-in user, with the `account` nested in it, the `timezone` the request was reckoned in, and, for a token, its `label` and `scopes`. Open to every token whatever its scopes. **Scope:** any. x-scopes: [] responses: "200": description: The signed-in user. content: application/json: schema: { $ref: "#/components/schemas/CurrentUser" } examples: { default: { $ref: "#/components/examples/CurrentUser" } } "401": { $ref: "#/components/responses/Unauthorized" } "403": { $ref: "#/components/responses/Forbidden" } "429": { $ref: "#/components/responses/TooManyRequests" } /users/{id}.json: parameters: - $ref: "#/components/parameters/UserId" get: tags: [Users & account] operationId: getUser summary: Get the user description: | Always the signed-in user, whatever the `:id`. **Scope:** `read`. x-scopes: [read] responses: "200": description: The user. content: application/json: schema: { $ref: "#/components/schemas/User" } examples: { default: { $ref: "#/components/examples/User" } } "401": { $ref: "#/components/responses/Unauthorized" } "403": { $ref: "#/components/responses/Forbidden" } "429": { $ref: "#/components/responses/TooManyRequests" } patch: tags: [Users & account] operationId: updateUser summary: Update the user description: | Changes the signed-in user's `name` and `avatar` (an Active Storage signed blob id). Always the signed-in user, whatever the `:id`. **Scope:** `write`. x-scopes: [write] requestBody: required: true content: application/json: schema: { $ref: "#/components/schemas/UserInput" } example: { name: Ayesha K. } responses: "200": description: The updated user. content: application/json: schema: { $ref: "#/components/schemas/User" } examples: { default: { $ref: "#/components/examples/User" } } "400": { $ref: "#/components/responses/BadRequest" } "401": { $ref: "#/components/responses/Unauthorized" } "403": { $ref: "#/components/responses/Forbidden" } "422": { $ref: "#/components/responses/Unprocessable" } "429": { $ref: "#/components/responses/TooManyRequests" } /users/{user_id}/avatar.json: parameters: - name: user_id in: path required: true schema: { type: integer } example: 1 delete: tags: [Users & account] operationId: deleteAvatar summary: Remove the avatar description: | Removes the user's avatar; the monogram is shown in its place. **Scope:** `delete`. x-scopes: [delete] responses: "204": { description: Removed. } "401": { $ref: "#/components/responses/Unauthorized" } "403": { $ref: "#/components/responses/Forbidden" } "404": { $ref: "#/components/responses/NotFound" } "429": { $ref: "#/components/responses/TooManyRequests" } /my/timezone.json: patch: tags: [Users & account] operationId: updateTimezone summary: Set the owner's time zone description: | Saves the zone "today" is reckoned in for tokens. It lasts only until the owner next loads a page in a browser set to another zone. A missing or blank zone is a `400`, and a name that isn't a zone a `422`. **Scope:** `write`. x-scopes: [write] requestBody: required: true content: application/json: schema: type: object required: [timezone] properties: timezone: { type: string, description: An IANA zone name. } example: { timezone: Asia/Kolkata } responses: "204": { description: Saved. } "400": { $ref: "#/components/responses/BadRequest" } "401": { $ref: "#/components/responses/Unauthorized" } "403": { $ref: "#/components/responses/Forbidden" } "422": { $ref: "#/components/responses/Unprocessable" } "429": { $ref: "#/components/responses/TooManyRequests" } /my/preferences.json: get: tags: [Users & account] operationId: getPreferences summary: Get preferences description: | The owner's `locale` (`null` follows the browser) and `theme`. **Scope:** `read`. x-scopes: [read] responses: "200": description: The preferences. content: application/json: schema: { $ref: "#/components/schemas/Preferences" } example: { locale: en, theme: auto } "401": { $ref: "#/components/responses/Unauthorized" } "403": { $ref: "#/components/responses/Forbidden" } "429": { $ref: "#/components/responses/TooManyRequests" } patch: tags: [Users & account] operationId: updatePreferences summary: Update preferences description: | Changes only the keys sent. An unknown value is a `422`. **Scope:** `write`. x-scopes: [write] requestBody: required: true content: application/json: schema: { $ref: "#/components/schemas/Preferences" } example: { locale: ar } responses: "204": { description: Saved. } "401": { $ref: "#/components/responses/Unauthorized" } "403": { $ref: "#/components/responses/Forbidden" } "422": { $ref: "#/components/responses/Unprocessable" } "429": { $ref: "#/components/responses/TooManyRequests" } /boards.json: get: tags: [Boards] operationId: listBoards summary: List boards description: | Every board, most recently updated first. **Scope:** `read`. x-scopes: [read] parameters: - $ref: "#/components/parameters/Page" - $ref: "#/components/parameters/Previous" responses: "200": description: A page of boards. headers: X-Total-Count: { $ref: "#/components/headers/XTotalCount" } Link: { $ref: "#/components/headers/Link" } content: application/json: schema: allOf: - $ref: "#/components/schemas/Page" - properties: data: { type: array, items: { $ref: "#/components/schemas/Board" } } examples: { default: { $ref: "#/components/examples/BoardPage" } } "401": { $ref: "#/components/responses/Unauthorized" } "403": { $ref: "#/components/responses/Forbidden" } "422": { $ref: "#/components/responses/Unprocessable" } "429": { $ref: "#/components/responses/TooManyRequests" } post: tags: [Boards] operationId: createBoard summary: Create a board description: | Creates a board with its four fixed columns. **Scope:** `write`. x-scopes: [write] requestBody: required: true content: application/json: schema: { $ref: "#/components/schemas/BoardInput" } example: { name: Writebook } responses: "201": description: The new board, with its columns. headers: Location: { $ref: "#/components/headers/Location" } content: application/json: schema: { $ref: "#/components/schemas/BoardWithColumns" } examples: { default: { $ref: "#/components/examples/BoardWithColumns" } } "400": { $ref: "#/components/responses/BadRequest" } "401": { $ref: "#/components/responses/Unauthorized" } "403": { $ref: "#/components/responses/Forbidden" } "422": { $ref: "#/components/responses/Unprocessable" } "429": { $ref: "#/components/responses/TooManyRequests" } /boards/{id}.json: parameters: - $ref: "#/components/parameters/BoardIdPath" get: tags: [Boards] operationId: getBoard summary: Get a board description: | The board with its four `columns`, in lane order. Columns have no endpoints of their own; each carries a `cards_url` narrowing the card index to that lane. **Scope:** `read`. x-scopes: [read] responses: "200": description: The board. content: application/json: schema: { $ref: "#/components/schemas/BoardWithColumns" } examples: { default: { $ref: "#/components/examples/BoardWithColumns" } } "401": { $ref: "#/components/responses/Unauthorized" } "403": { $ref: "#/components/responses/Forbidden" } "404": { $ref: "#/components/responses/NotFound" } "429": { $ref: "#/components/responses/TooManyRequests" } put: tags: [Boards] operationId: updateBoard summary: Rename a board description: | Renames the board. `PATCH` is accepted too. **Scope:** `write`. x-scopes: [write] requestBody: required: true content: application/json: schema: { $ref: "#/components/schemas/BoardInput" } example: { name: Writebook 2 } responses: "200": description: The board. content: application/json: schema: { $ref: "#/components/schemas/BoardWithColumns" } examples: { default: { $ref: "#/components/examples/BoardWithColumns" } } "400": { $ref: "#/components/responses/BadRequest" } "401": { $ref: "#/components/responses/Unauthorized" } "403": { $ref: "#/components/responses/Forbidden" } "404": { $ref: "#/components/responses/NotFound" } "422": { $ref: "#/components/responses/Unprocessable" } "429": { $ref: "#/components/responses/TooManyRequests" } delete: tags: [Boards] operationId: deleteBoard summary: Delete a board description: | Permanently deletes the board with every card and note on it. **Scope:** `delete`. x-scopes: [delete] responses: "204": { description: Deleted. } "401": { $ref: "#/components/responses/Unauthorized" } "403": { $ref: "#/components/responses/Forbidden" } "404": { $ref: "#/components/responses/NotFound" } "429": { $ref: "#/components/responses/TooManyRequests" } /cards.json: get: tags: [Cards] operationId: listCards summary: List cards on every board description: | Cards across every board, narrowed by the filters. **Scope:** `read`. x-scopes: [read] parameters: - $ref: "#/components/parameters/BoardIds" - $ref: "#/components/parameters/ColumnIds" - $ref: "#/components/parameters/CardIds" - $ref: "#/components/parameters/Terms" - $ref: "#/components/parameters/Creation" - $ref: "#/components/parameters/Due" - $ref: "#/components/parameters/Lane" - $ref: "#/components/parameters/IndexedBy" - $ref: "#/components/parameters/SortedBy" - $ref: "#/components/parameters/Page" - $ref: "#/components/parameters/Previous" responses: "200": { $ref: "#/components/responses/CardPage" } "401": { $ref: "#/components/responses/Unauthorized" } "403": { $ref: "#/components/responses/Forbidden" } "422": { $ref: "#/components/responses/Unprocessable" } "429": { $ref: "#/components/responses/TooManyRequests" } /boards/{board_id}/cards.json: parameters: - $ref: "#/components/parameters/BoardId" get: tags: [Cards] operationId: listBoardCards summary: List a board's cards description: | That board's cards, with the same filters as `/cards.json`. **Scope:** `read`. x-scopes: [read] parameters: - $ref: "#/components/parameters/BoardIds" - $ref: "#/components/parameters/ColumnIds" - $ref: "#/components/parameters/CardIds" - $ref: "#/components/parameters/Terms" - $ref: "#/components/parameters/Creation" - $ref: "#/components/parameters/Due" - $ref: "#/components/parameters/Lane" - $ref: "#/components/parameters/IndexedBy" - $ref: "#/components/parameters/SortedBy" - $ref: "#/components/parameters/Page" - $ref: "#/components/parameters/Previous" responses: "200": { $ref: "#/components/responses/CardPage" } "401": { $ref: "#/components/responses/Unauthorized" } "403": { $ref: "#/components/responses/Forbidden" } "404": { $ref: "#/components/responses/NotFound" } "422": { $ref: "#/components/responses/Unprocessable" } "429": { $ref: "#/components/responses/TooManyRequests" } post: tags: [Cards, Steps] operationId: createCard summary: Create a card description: | Creates the whole card, steps included, in the board's Backlog. A `board_id` or `column_id` in the body is ignored. Past a hosted plan's card limit it is a `422`. **Scope:** `write`. x-scopes: [write] requestBody: required: true content: application/json: schema: { $ref: "#/components/schemas/CardInput" } example: title: Ship it due_on: "2026-12-01" steps_attributes: [{ content: First }, { content: Second }] responses: "201": description: The new card. headers: Location: { $ref: "#/components/headers/Location" } content: application/json: schema: { $ref: "#/components/schemas/CardDetail" } examples: { default: { $ref: "#/components/examples/CardDetail" } } "400": { $ref: "#/components/responses/BadRequest" } "401": { $ref: "#/components/responses/Unauthorized" } "403": { $ref: "#/components/responses/Forbidden" } "404": { $ref: "#/components/responses/NotFound" } "422": { $ref: "#/components/responses/Unprocessable" } "429": { $ref: "#/components/responses/TooManyRequests" } /boards/{board_id}/cards/{number}.json: parameters: - $ref: "#/components/parameters/BoardId" - $ref: "#/components/parameters/CardNumber" get: tags: [Cards] operationId: getCard summary: Get a card description: | The whole card: its fields, all of its `steps`, its 20 most recent `notes`, and `notes_truncated`. When that is `true`, `notes_url` pages through the whole log. **Scope:** `read`. x-scopes: [read] responses: "200": description: The card. content: application/json: schema: { $ref: "#/components/schemas/CardDetail" } examples: { default: { $ref: "#/components/examples/CardDetail" } } "401": { $ref: "#/components/responses/Unauthorized" } "403": { $ref: "#/components/responses/Forbidden" } "404": { $ref: "#/components/responses/NotFound" } "429": { $ref: "#/components/responses/TooManyRequests" } put: tags: [Cards, Steps] operationId: updateCard summary: Update a card description: | Any writable field, plus `column_id` to change lane and `board_id` to move boards, applied in one write or refused with nothing written. A card in Todo or Doing needs a `due_on`. Moved to another board, the card is renumbered there: the `Location` header and the body's `url` carry its new address. `steps_attributes` adds (no `id`), edits (`id` plus fields), or removes (`id` plus `"_destroy": true`, which needs `delete`) steps. `PATCH` is accepted too. **Scope:** `write`, plus `delete` when `steps_attributes` removes a step. x-scopes: [write, "delete (when removing steps)"] requestBody: required: true content: application/json: schema: { $ref: "#/components/schemas/CardUpdate" } example: title: Ship it column_id: 4 pinned: true steps_attributes: [{ id: 12, completed: true }, { content: A new step }] responses: "200": description: The card. `Location` is sent only when it moved boards. headers: Location: { $ref: "#/components/headers/Location" } content: application/json: schema: { $ref: "#/components/schemas/CardDetail" } examples: { default: { $ref: "#/components/examples/CardDetail" } } "400": { $ref: "#/components/responses/BadRequest" } "401": { $ref: "#/components/responses/Unauthorized" } "403": { $ref: "#/components/responses/Forbidden" } "404": { $ref: "#/components/responses/NotFound" } "409": { $ref: "#/components/responses/Conflict" } "422": { $ref: "#/components/responses/Unprocessable" } "429": { $ref: "#/components/responses/TooManyRequests" } delete: tags: [Cards] operationId: deleteCard summary: Delete a card description: | Permanently deletes the card with its steps and notes. **Scope:** `delete`. x-scopes: [delete] responses: "204": { description: Deleted. } "401": { $ref: "#/components/responses/Unauthorized" } "403": { $ref: "#/components/responses/Forbidden" } "404": { $ref: "#/components/responses/NotFound" } "429": { $ref: "#/components/responses/TooManyRequests" } /boards/{board_id}/cards/{card_number}/notes.json: parameters: - $ref: "#/components/parameters/BoardId" - $ref: "#/components/parameters/CardNumberNested" get: tags: [Notes] operationId: listNotes summary: List a card's notes description: | The card's whole note log, oldest first. Only needed when the card's `notes_truncated` is `true`. **Scope:** `read`. x-scopes: [read] parameters: - $ref: "#/components/parameters/Page" - $ref: "#/components/parameters/Previous" responses: "200": description: A page of notes. headers: X-Total-Count: { $ref: "#/components/headers/XTotalCount" } Link: { $ref: "#/components/headers/Link" } content: application/json: schema: allOf: - $ref: "#/components/schemas/Page" - properties: data: { type: array, items: { $ref: "#/components/schemas/Note" } } examples: { default: { $ref: "#/components/examples/NotePage" } } "401": { $ref: "#/components/responses/Unauthorized" } "403": { $ref: "#/components/responses/Forbidden" } "404": { $ref: "#/components/responses/NotFound" } "422": { $ref: "#/components/responses/Unprocessable" } "429": { $ref: "#/components/responses/TooManyRequests" } post: tags: [Notes] operationId: createNote summary: Add a note description: | Adds a timestamped note to the card's log. **Scope:** `write`. x-scopes: [write] requestBody: required: true content: application/json: schema: { $ref: "#/components/schemas/NoteInput" } example: { body: Deployed to staging. } responses: "201": description: The new note. headers: Location: { $ref: "#/components/headers/Location" } content: application/json: schema: { $ref: "#/components/schemas/Note" } examples: { default: { $ref: "#/components/examples/Note" } } "400": { $ref: "#/components/responses/BadRequest" } "401": { $ref: "#/components/responses/Unauthorized" } "403": { $ref: "#/components/responses/Forbidden" } "404": { $ref: "#/components/responses/NotFound" } "422": { $ref: "#/components/responses/Unprocessable" } "429": { $ref: "#/components/responses/TooManyRequests" } /boards/{board_id}/cards/{card_number}/notes/{id}.json: parameters: - $ref: "#/components/parameters/BoardId" - $ref: "#/components/parameters/CardNumberNested" - name: id in: path required: true description: The note's id. schema: { type: integer } example: 31 get: tags: [Notes] operationId: getNote summary: Get a note description: "One note on the card. **Scope:** `read`." x-scopes: [read] responses: "200": description: The note. content: application/json: schema: { $ref: "#/components/schemas/Note" } examples: { default: { $ref: "#/components/examples/Note" } } "401": { $ref: "#/components/responses/Unauthorized" } "403": { $ref: "#/components/responses/Forbidden" } "404": { $ref: "#/components/responses/NotFound" } "429": { $ref: "#/components/responses/TooManyRequests" } put: tags: [Notes] operationId: updateNote summary: Edit a note description: | Replaces the note's body. Only its creator may. `PATCH` is accepted too. **Scope:** `write`. x-scopes: [write] requestBody: required: true content: application/json: schema: { $ref: "#/components/schemas/NoteInput" } example: { body: Deployed to production. } responses: "200": description: The note. content: application/json: schema: { $ref: "#/components/schemas/Note" } examples: { default: { $ref: "#/components/examples/Note" } } "400": { $ref: "#/components/responses/BadRequest" } "401": { $ref: "#/components/responses/Unauthorized" } "403": { $ref: "#/components/responses/Forbidden" } "404": { $ref: "#/components/responses/NotFound" } "422": { $ref: "#/components/responses/Unprocessable" } "429": { $ref: "#/components/responses/TooManyRequests" } delete: tags: [Notes] operationId: deleteNote summary: Delete a note description: | Permanently deletes the note. Only its creator may. **Scope:** `delete`. x-scopes: [delete] responses: "204": { description: Deleted. } "401": { $ref: "#/components/responses/Unauthorized" } "403": { $ref: "#/components/responses/Forbidden" } "404": { $ref: "#/components/responses/NotFound" } "429": { $ref: "#/components/responses/TooManyRequests" } /search.json: get: tags: [Search] operationId: search summary: Search cards description: | Searches card titles, descriptions, and notes across every board, and returns the matching cards, most recently active first. Every word must match; `OR`, `AND`, `NOT` and `NEAR` are words, not operators; double quotes match a phrase. A blank `q` returns nothing. A card number is searched as plain text. **Scope:** `read`. x-scopes: [read] parameters: - name: q in: query description: The search text. schema: { type: string } example: deploy staging - $ref: "#/components/parameters/Page" - $ref: "#/components/parameters/Previous" responses: "200": { $ref: "#/components/responses/CardPage" } "401": { $ref: "#/components/responses/Unauthorized" } "403": { $ref: "#/components/responses/Forbidden" } "422": { $ref: "#/components/responses/Unprocessable" } "429": { $ref: "#/components/responses/TooManyRequests" } /session/password.json: post: tags: [Tokens] operationId: signInWithPassword summary: Mint a token with the password description: | Signs in with the owner's email and password and mints a token, valid for 90 days. `label` names it (default `json-sign-in`); a label holds one live token, so give every client its own. `scopes` (a string or list) defaults to `read write`. The credentials may also be wrapped in `session`. Rate limited to 10 attempts every 3 minutes per IP. security: [] requestBody: required: true content: application/json: schema: { $ref: "#/components/schemas/PasswordSignIn" } example: email_address: you@example.com password: correct horse battery staple label: claude scopes: [read, write] responses: "200": description: The new token. content: application/json: schema: type: object required: [session_token, scopes] properties: session_token: { type: string } scopes: { type: array, items: { $ref: "#/components/schemas/Scope" } } example: { session_token: eyJfcmFpbHMiOnsi…, scopes: [read, write] } "401": { $ref: "#/components/responses/Unauthorized" } "422": { $ref: "#/components/responses/Unprocessable" } "429": { $ref: "#/components/responses/SignInTooManyRequests" } /session/passkey.json: post: tags: [Tokens] operationId: signInWithPasskey summary: Mint a token with a passkey description: | Completes a WebAuthn passkey sign-in and mints a `json-sign-in` token with the default scopes. The body is the browser's WebAuthn assertion. security: [] requestBody: required: true content: application/json: schema: type: object description: The WebAuthn assertion produced by `navigator.credentials.get`. additionalProperties: true example: passkey: id: AbC123… client_data_json: eyJ0eXBlIjoid2ViYXV0aG4uZ2V0Ii… authenticator_data: SZYN5YgOjGh0NBcPZHZgW4… signature: MEUCIQD… responses: "200": description: The new token. content: application/json: schema: type: object required: [session_token] properties: session_token: { type: string } example: { session_token: eyJfcmFpbHMiOnsi… } "401": { $ref: "#/components/responses/Unauthorized" } "429": { $ref: "#/components/responses/SignInTooManyRequests" } /rails/active_storage/direct_uploads: post: tags: [Uploads] operationId: createDirectUpload summary: Register a direct upload description: | Registers a blob and answers with where to `PUT` its bytes. Send the file there with exactly the `direct_upload.headers` given, then use the blob's `signed_id` as a user's `avatar`, or its `attachable_sgid` in an `` in rich text. Answers JSON whatever the path's format. Not subject to the token's request allowance. **Scope:** `write`. x-scopes: [write] requestBody: required: true content: application/json: schema: type: object required: [blob] properties: blob: type: object required: [filename, byte_size, checksum, content_type] properties: filename: { type: string } byte_size: { type: integer, description: The file's size in bytes. } checksum: { type: string, description: "The file's MD5 digest, Base64-encoded." } content_type: { type: string } metadata: { type: object, additionalProperties: true } example: blob: { filename: screenshot.png, byte_size: 12345, checksum: GQ5SqLsM7ylnji0Wgd9wNC==, content_type: image/png } responses: "200": description: The blob, and where to upload its bytes. content: application/json: schema: type: object required: [id, key, filename, content_type, byte_size, checksum, created_at, signed_id, attachable_sgid, direct_upload] properties: id: { type: integer } key: { type: string } filename: { type: string } content_type: { type: string } metadata: { type: object, additionalProperties: true } service_name: { type: string } byte_size: { type: integer } checksum: { type: string } created_at: { type: string, format: date-time } signed_id: { type: string, description: "What `avatar` takes." } attachable_sgid: { type: string, description: What a rich-text attachment's `sgid` takes. } direct_upload: type: object required: [url, headers] properties: url: { type: string, format: uri, description: "`PUT` the file's bytes here." } headers: { type: object, additionalProperties: { type: string }, description: Send exactly these with the `PUT`. } example: id: 9 key: 5tl09q813hmri5z2ui4zzrdj8gqi filename: screenshot.png content_type: image/png metadata: {} service_name: local byte_size: 12345 checksum: GQ5SqLsM7ylnji0Wgd9wNC== created_at: "2026-10-16T14:02:11Z" signed_id: eyJfcmFpbHMiOnsiZGF0YSI6OSwicHVyIjoiYmxvYl9pZCJ9fQ==--d724… attachable_sgid: eyJfcmFpbHMiOnsiZGF0YSI6ImdpZDovL211ZGRh… direct_upload: url: https://your-board.mudda.today/rails/active_storage/disk/eyJfcmFpbHMiOnsiZGF0YSI6eyJrZXkiOiI1dGwwOXE4--08c33a68f1982870d7d1 headers: { Content-Type: image/png } "401": { $ref: "#/components/responses/Unauthorized" } "403": { $ref: "#/components/responses/Forbidden" } "422": { $ref: "#/components/responses/Unprocessable" } /my/passkey_challenge: post: tags: [Passkeys] operationId: createPasskeyChallenge summary: Get a passkey challenge description: | A fresh, signed, expiring WebAuthn challenge for `navigator.credentials.get` (signing in) or `navigator.credentials.create` (registering a passkey). Fetch one just before the ceremony; signing in with a passkey (`POST /session/passkey.json`) checks it. Open without a credential. Answers JSON whatever the path's format. security: [] requestBody: required: false content: application/json: schema: type: object properties: purpose: type: string enum: [authentication, registration] default: authentication description: Picks the challenge's lifetime; anything else is `authentication`. example: { purpose: authentication } responses: "200": description: The challenge. content: application/json: schema: type: object required: [challenge] properties: challenge: { type: string, description: "Base64url; decode it to bytes for the WebAuthn call's `challenge`." } example: { challenge: ZXlKZmNtRnBiSE1pT25zaVpHRjBZU0k2SWtGdk1qUmhRV013ZFd3eVVVbDBRb… } "400": { $ref: "#/components/responses/BadRequest" } /session.json: delete: tags: [Sessions] operationId: signOut summary: End this session description: | Ends the token (or session) making the request. Open to every token whatever its scopes. **Scope:** any. x-scopes: [] responses: "204": { description: Ended. } "401": { $ref: "#/components/responses/Unauthorized" } "429": { $ref: "#/components/responses/TooManyRequests" } components: securitySchemes: bearerToken: type: http scheme: bearer description: | `Authorization: Bearer ` (or `Token `; the scheme is case-sensitive). A token does what its scopes grant, decided by the request's verb: `read` for `GET`, `write` for `POST`/`PUT`/`PATCH`, `delete` for `DELETE` or a write that removes nested records (`"_destroy": true`). Tokens get `read write` unless `delete` is asked for. A request outside a token's scopes is a `403` before the action runs. Each operation's description states the scope it needs (also given as `x-scopes`). Each token may make 600 requests a minute; past that, a `429` with `Retry-After: 60`. parameters: UserId: name: id in: path required: true description: Ignored; always the signed-in user. schema: { type: integer } example: 1 BoardIdPath: name: id in: path required: true description: The board's id. schema: { type: integer } example: 1 BoardId: name: board_id in: path required: true description: The board's id. schema: { type: integer } example: 1 CardNumber: name: number in: path required: true description: The card's number on its board (not its id). schema: { type: integer } example: 7 CardNumberNested: name: card_number in: path required: true description: The card's number on its board (not its id). schema: { type: integer } example: 7 Page: name: page in: query description: The page to read. Prefer following `paging.next`. schema: { type: integer, minimum: 1 } Previous: name: previous in: query description: Accepted on every endpoint; used by the browser's paging. schema: { type: string } BoardIds: name: board_ids[] in: query description: Board ids. schema: { type: array, items: { type: integer } } style: form explode: true ColumnIds: name: column_ids[] in: query description: Column ids, from a board's `columns`. schema: { type: array, items: { type: integer } } style: form explode: true CardIds: name: card_ids[] in: query description: Card `id`s (not numbers). schema: { type: array, items: { type: integer } } style: form explode: true Terms: name: terms[] in: query description: Full-text terms. schema: { type: array, items: { type: string } } style: form explode: true Creation: name: creation in: query description: When the card was created. schema: type: string enum: [today, yesterday, thisweek, thismonth, thisyear, lastweek, lastmonth, lastyear] Due: name: due in: query description: "`soon`: open cards due by tomorrow, the most overdue first." schema: { type: string, enum: [soon] } Lane: name: lane in: query description: That lane on every board, in any case. schema: { type: string, enum: [backlog, todo, doing, done] } IndexedBy: name: indexed_by in: query schema: { type: string, enum: [all, pinned], default: all } SortedBy: name: sorted_by in: query description: | `latest` (most recently active first), `newest`, or `oldest` (by creation). With `due=soon`, only `newest` and `oldest` override its order. schema: { type: string, enum: [latest, newest, oldest], default: latest } headers: Location: description: The record's URL. schema: { type: string, format: uri } XTotalCount: description: The total number of records. schema: { type: integer } Link: description: '`<…?page=2>; rel="next"` while there is a next page.' schema: { type: string } responses: CardPage: description: A page of cards. headers: X-Total-Count: { $ref: "#/components/headers/XTotalCount" } Link: { $ref: "#/components/headers/Link" } content: application/json: schema: allOf: - $ref: "#/components/schemas/Page" - properties: data: { type: array, items: { $ref: "#/components/schemas/Card" } } examples: { default: { $ref: "#/components/examples/CardPage" } } BadRequest: description: The body is missing the object a write needs, or isn't valid JSON. content: application/json: schema: { $ref: "#/components/schemas/Errors" } example: { errors: { card: ["is missing"] }, request_id: 5f0c1e9a-2b7d-4c1e-9a63-0e4f8d2b1c55 } Unauthorized: description: No credential, or a revoked or expired token. content: application/json: schema: { $ref: "#/components/schemas/Errors" } example: { errors: { base: ["Unauthorized"] }, request_id: 5f0c1e9a-2b7d-4c1e-9a63-0e4f8d2b1c55 } Forbidden: description: The user is deactivated, the record isn't yours to change, or the token lacks the scope. content: application/json: schema: { $ref: "#/components/schemas/Errors" } example: { errors: { base: ["This token is not granted the write scope"] }, request_id: 5f0c1e9a-2b7d-4c1e-9a63-0e4f8d2b1c55 } NotFound: description: No such record or route. content: application/json: schema: { $ref: "#/components/schemas/Errors" } example: { errors: { base: ["Not found"] }, request_id: 5f0c1e9a-2b7d-4c1e-9a63-0e4f8d2b1c55 } Conflict: description: A concurrent change took the same unique value; retry. content: application/json: schema: { $ref: "#/components/schemas/Errors" } example: { errors: { base: ["Conflict; retry"] }, request_id: 5f0c1e9a-2b7d-4c1e-9a63-0e4f8d2b1c55 } Unprocessable: description: Validation failed, a query parameter isn't recognised, or a filter value is outside its list. content: application/json: schema: { $ref: "#/components/schemas/Errors" } example: { errors: { due_on: ["can't be blank in Todo or Doing"] }, request_id: 5f0c1e9a-2b7d-4c1e-9a63-0e4f8d2b1c55 } TooManyRequests: description: The token has spent its 600 requests this minute. headers: Retry-After: description: Seconds to wait before retrying. schema: { type: integer, const: 60 } content: application/json: schema: { $ref: "#/components/schemas/Errors" } example: { errors: { base: ["Rate limit exceeded: 600 requests a minute per token"] }, request_id: 5f0c1e9a-2b7d-4c1e-9a63-0e4f8d2b1c55 } SignInTooManyRequests: description: Too many sign-in attempts (10 in 3 minutes); try again later. content: application/json: schema: { $ref: "#/components/schemas/Errors" } example: { errors: { base: ["Try again later."] }, request_id: 5f0c1e9a-2b7d-4c1e-9a63-0e4f8d2b1c55 } schemas: Errors: type: object description: Every failure's envelope. `request_id` matches the `X-Request-Id` header. required: [errors] properties: errors: type: object description: Messages keyed by field; `base` when no field is to blame. additionalProperties: { type: array, items: { type: string } } request_id: { type: string } Paging: type: object description: Pages ramp 15, 30, 50, then 100 records; read `total` and `pages`. required: [total, page, pages, next] properties: total: { type: integer } page: { type: integer } pages: { type: integer } next: { type: [string, "null"], format: uri, description: "The following page, or null on the last." } Page: type: object required: [data, paging] properties: data: { type: array, items: {} } paging: { $ref: "#/components/schemas/Paging" } Scope: type: string enum: [read, write, delete] User: type: object required: [id, name, email_address, active, created_at, url, avatar_url] properties: id: { type: integer } name: { type: string } email_address: { type: string, format: email } active: { type: boolean } created_at: { type: string, format: date-time } url: { type: string, format: uri } avatar_url: { type: string, format: uri } CurrentUser: allOf: - $ref: "#/components/schemas/User" - type: object required: [timezone, account] properties: timezone: { type: string, description: The zone this request's dates were reckoned in. } account: type: object properties: id: { type: integer } created_at: { type: string, format: date-time } token: type: object description: Present only when a token made the request. properties: label: { type: string } scopes: { type: array, items: { $ref: "#/components/schemas/Scope" } } UserInput: type: object properties: name: { type: string } avatar: { type: string, description: An Active Storage signed blob id. } Preferences: type: object properties: locale: { type: [string, "null"], enum: [en, ar, null], description: "`null` follows the browser." } theme: { type: string, enum: [auto, light, dark] } Color: type: object description: A colour by its English name and the CSS value the page paints it with. required: [name, value] properties: name: { type: string, enum: [Blue, Periwinkle, Indigo, Azure, Emerald, Amber, Violet, Purple, Pink] } value: { type: string, example: "var(--color-card-2)" } Column: type: object required: [id, name, color, position, created_at, cards_url] properties: id: { type: integer } name: { type: string, enum: [Backlog, Todo, Doing, Done] } color: { $ref: "#/components/schemas/Color" } position: { type: integer, description: "1 to 4: Backlog, Todo, Doing, Done." } created_at: { type: string, format: date-time } cards_url: { type: string, format: uri, description: The board's card index narrowed to this lane. } Board: type: object required: [id, name, created_at, url, creator] properties: id: { type: integer } name: { type: string } created_at: { type: string, format: date-time } url: { type: string, format: uri } creator: { $ref: "#/components/schemas/User" } BoardWithColumns: allOf: - $ref: "#/components/schemas/Board" - type: object required: [columns] properties: columns: { type: array, items: { $ref: "#/components/schemas/Column" } } BoardInput: type: object required: [name] properties: name: { type: string } Step: type: object required: [id, content, completed] properties: id: { type: integer } content: { type: string } completed: { type: boolean } StepAttributes: type: object description: No `id` adds a step; an `id` edits it, or removes it with `_destroy` (needs `delete`). properties: id: { type: integer } content: { type: string } completed: { type: boolean } _destroy: { type: boolean } Card: type: object required: [id, number, title, description, description_html, has_attachments, closed, backlogged, pinned, overdue, color, due_on, last_active_at, created_at, url, board, creator, notes_url] properties: id: { type: integer } number: { type: integer, description: The card's number on its board. } title: { type: string } description: { type: string, description: Plain text. } description_html: type: string description: | The rich text as Action Text renders it, wrapped in `
…
` (empty when there is no description). To write it back, send the wrapper's inner HTML as `description` (or your own HTML); sending the wrapper itself nests it again. has_attachments: { type: boolean } closed: { type: boolean, description: In Done. } backlogged: { type: boolean, description: In Backlog. } pinned: { type: boolean } overdue: { type: boolean } color: { $ref: "#/components/schemas/Color", description: Its lane's colour. } due_on: { type: [string, "null"], format: date } last_active_at: { type: string, format: date-time } created_at: { type: string, format: date-time } url: { type: string, format: uri } board: { $ref: "#/components/schemas/Board" } column: { $ref: "#/components/schemas/Column" } creator: { $ref: "#/components/schemas/User" } notes_url: { type: string, format: uri } CardDetail: allOf: - $ref: "#/components/schemas/Card" - type: object required: [steps, notes, notes_truncated] properties: steps: { type: array, items: { $ref: "#/components/schemas/Step" } } notes: { type: array, items: { $ref: "#/components/schemas/Note" }, description: The 20 most recent. } notes_truncated: { type: boolean } CardInput: type: object required: [title] properties: title: { type: string } description: { type: string, description: "Rich text, as plain text or HTML." } due_on: { type: [string, "null"], format: date } pinned: { type: boolean } created_at: { type: string, format: date-time } last_active_at: { type: string, format: date-time } steps_attributes: { type: array, items: { $ref: "#/components/schemas/StepAttributes" } } CardUpdate: type: object properties: title: { type: string } description: { type: string } due_on: { type: [string, "null"], format: date } pinned: { type: boolean } created_at: { type: string, format: date-time } last_active_at: { type: string, format: date-time } steps_attributes: { type: array, items: { $ref: "#/components/schemas/StepAttributes" } } column_id: { type: integer, description: A lane on the board the card ends on. } board_id: { type: integer, description: "Moves the card to that board, renumbering it." } Note: type: object required: [id, created_at, updated_at, body, creator, card, url] properties: id: { type: integer } created_at: { type: string, format: date-time } updated_at: { type: string, format: date-time } body: type: object properties: plain_text: { type: string } html: { type: string, description: "Wrapped in `
`, as `description_html` is." } creator: { $ref: "#/components/schemas/User" } card: type: object properties: id: { type: integer, description: The card's database id. } url: { type: string, format: uri } url: { type: string, format: uri } NoteInput: type: object required: [body] properties: body: { type: string, description: "Rich text, as plain text or HTML." } created_at: { type: string, format: date-time } PasswordSignIn: type: object required: [email_address, password] properties: email_address: { type: string, format: email } password: { type: string } label: { type: string, default: json-sign-in } scopes: oneOf: - type: string - type: array items: { $ref: "#/components/schemas/Scope" } examples: User: value: id: 1 name: Ayesha Khan email_address: ayesha@example.com active: true created_at: "2026-01-04T09:12:00Z" url: https://your-board.mudda.today/users/1 avatar_url: https://your-board.mudda.today/users/1/avatar CurrentUser: value: id: 1 name: Ayesha Khan email_address: ayesha@example.com active: true created_at: "2026-01-04T09:12:00Z" url: https://your-board.mudda.today/users/1 avatar_url: https://your-board.mudda.today/users/1/avatar timezone: Asia/Kolkata account: { id: 1, created_at: "2026-01-04T09:12:00Z" } token: { label: claude, scopes: [read, write] } Board: value: id: 1 name: Writebook created_at: "2026-01-04T09:15:00Z" url: https://your-board.mudda.today/boards/1 creator: id: 1 name: Ayesha Khan email_address: ayesha@example.com active: true created_at: "2026-01-04T09:12:00Z" url: https://your-board.mudda.today/users/1 avatar_url: https://your-board.mudda.today/users/1/avatar BoardWithColumns: value: id: 1 name: Writebook created_at: "2026-01-04T09:15:00Z" url: https://your-board.mudda.today/boards/1 creator: id: 1 name: Ayesha Khan email_address: ayesha@example.com active: true created_at: "2026-01-04T09:12:00Z" url: https://your-board.mudda.today/users/1 avatar_url: https://your-board.mudda.today/users/1/avatar columns: - { id: 1, name: Backlog, color: { name: Indigo, value: "var(--color-card-2)" }, position: 1, created_at: "2026-01-04T09:15:00Z", cards_url: "https://your-board.mudda.today/boards/1/cards?column_ids%5B%5D=1" } - { id: 2, name: Todo, color: { name: Azure, value: "var(--color-card-3)" }, position: 2, created_at: "2026-01-04T09:15:00Z", cards_url: "https://your-board.mudda.today/boards/1/cards?column_ids%5B%5D=2" } - { id: 3, name: Doing, color: { name: Amber, value: "var(--color-card-5)" }, position: 3, created_at: "2026-01-04T09:15:00Z", cards_url: "https://your-board.mudda.today/boards/1/cards?column_ids%5B%5D=3" } - { id: 4, name: Done, color: { name: Emerald, value: "var(--color-card-4)" }, position: 4, created_at: "2026-01-04T09:15:00Z", cards_url: "https://your-board.mudda.today/boards/1/cards?column_ids%5B%5D=4" } BoardPage: value: data: - id: 1 name: Writebook created_at: "2026-01-04T09:15:00Z" url: https://your-board.mudda.today/boards/1 creator: id: 1 name: Ayesha Khan email_address: ayesha@example.com active: true created_at: "2026-01-04T09:12:00Z" url: https://your-board.mudda.today/users/1 avatar_url: https://your-board.mudda.today/users/1/avatar paging: { total: 1, page: 1, pages: 1, next: null } Note: value: id: 31 created_at: "2026-10-16T14:02:11Z" updated_at: "2026-10-16T14:02:11Z" body: plain_text: Deployed to staging. html: "
\n
Deployed to staging.
\n
\n" creator: id: 1 name: Ayesha Khan email_address: ayesha@example.com active: true created_at: "2026-01-04T09:12:00Z" url: https://your-board.mudda.today/users/1 avatar_url: https://your-board.mudda.today/users/1/avatar card: { id: 57, url: https://your-board.mudda.today/boards/1/cards/7 } url: https://your-board.mudda.today/boards/1/cards/7/notes/31 NotePage: value: data: - id: 31 created_at: "2026-10-16T14:02:11Z" updated_at: "2026-10-16T14:02:11Z" body: plain_text: Deployed to staging. html: "
\n
Deployed to staging.
\n
\n" creator: id: 1 name: Ayesha Khan email_address: ayesha@example.com active: true created_at: "2026-01-04T09:12:00Z" url: https://your-board.mudda.today/users/1 avatar_url: https://your-board.mudda.today/users/1/avatar card: { id: 57, url: https://your-board.mudda.today/boards/1/cards/7 } url: https://your-board.mudda.today/boards/1/cards/7/notes/31 paging: { total: 1, page: 1, pages: 1, next: null } Card: value: id: 57 number: 7 title: Ship it description: Cut the release and announce it. description_html: "
\n
Cut the release and announce it.
\n
\n" has_attachments: false closed: false backlogged: false pinned: true overdue: false color: { name: Amber, value: "var(--color-card-5)" } due_on: "2026-12-01" last_active_at: "2026-10-16T14:02:11Z" created_at: "2026-10-01T08:30:00Z" url: https://your-board.mudda.today/boards/1/cards/7 board: id: 1 name: Writebook created_at: "2026-01-04T09:15:00Z" url: https://your-board.mudda.today/boards/1 creator: id: 1 name: Ayesha Khan email_address: ayesha@example.com active: true created_at: "2026-01-04T09:12:00Z" url: https://your-board.mudda.today/users/1 avatar_url: https://your-board.mudda.today/users/1/avatar column: { id: 3, name: Doing, color: { name: Amber, value: "var(--color-card-5)" }, position: 3, created_at: "2026-01-04T09:15:00Z", cards_url: "https://your-board.mudda.today/boards/1/cards?column_ids%5B%5D=3" } creator: id: 1 name: Ayesha Khan email_address: ayesha@example.com active: true created_at: "2026-01-04T09:12:00Z" url: https://your-board.mudda.today/users/1 avatar_url: https://your-board.mudda.today/users/1/avatar notes_url: https://your-board.mudda.today/boards/1/cards/7/notes CardDetail: value: id: 57 number: 7 title: Ship it description: Cut the release and announce it. description_html: "
\n
Cut the release and announce it.
\n
\n" has_attachments: false closed: false backlogged: false pinned: true overdue: false color: { name: Amber, value: "var(--color-card-5)" } due_on: "2026-12-01" last_active_at: "2026-10-16T14:02:11Z" created_at: "2026-10-01T08:30:00Z" url: https://your-board.mudda.today/boards/1/cards/7 board: id: 1 name: Writebook created_at: "2026-01-04T09:15:00Z" url: https://your-board.mudda.today/boards/1 creator: id: 1 name: Ayesha Khan email_address: ayesha@example.com active: true created_at: "2026-01-04T09:12:00Z" url: https://your-board.mudda.today/users/1 avatar_url: https://your-board.mudda.today/users/1/avatar column: { id: 3, name: Doing, color: { name: Amber, value: "var(--color-card-5)" }, position: 3, created_at: "2026-01-04T09:15:00Z", cards_url: "https://your-board.mudda.today/boards/1/cards?column_ids%5B%5D=3" } creator: id: 1 name: Ayesha Khan email_address: ayesha@example.com active: true created_at: "2026-01-04T09:12:00Z" url: https://your-board.mudda.today/users/1 avatar_url: https://your-board.mudda.today/users/1/avatar notes_url: https://your-board.mudda.today/boards/1/cards/7/notes steps: - { id: 12, content: First, completed: true } - { id: 13, content: Second, completed: false } notes: - id: 31 created_at: "2026-10-16T14:02:11Z" updated_at: "2026-10-16T14:02:11Z" body: plain_text: Deployed to staging. html: "
\n
Deployed to staging.
\n
\n" creator: id: 1 name: Ayesha Khan email_address: ayesha@example.com active: true created_at: "2026-01-04T09:12:00Z" url: https://your-board.mudda.today/users/1 avatar_url: https://your-board.mudda.today/users/1/avatar card: { id: 57, url: https://your-board.mudda.today/boards/1/cards/7 } url: https://your-board.mudda.today/boards/1/cards/7/notes/31 notes_truncated: false CardPage: value: data: - id: 57 number: 7 title: Ship it description: Cut the release and announce it. description_html: "
\n
Cut the release and announce it.
\n
\n" has_attachments: false closed: false backlogged: false pinned: true overdue: false color: { name: Amber, value: "var(--color-card-5)" } due_on: "2026-12-01" last_active_at: "2026-10-16T14:02:11Z" created_at: "2026-10-01T08:30:00Z" url: https://your-board.mudda.today/boards/1/cards/7 board: id: 1 name: Writebook created_at: "2026-01-04T09:15:00Z" url: https://your-board.mudda.today/boards/1 creator: id: 1 name: Ayesha Khan email_address: ayesha@example.com active: true created_at: "2026-01-04T09:12:00Z" url: https://your-board.mudda.today/users/1 avatar_url: https://your-board.mudda.today/users/1/avatar column: { id: 3, name: Doing, color: { name: Amber, value: "var(--color-card-5)" }, position: 3, created_at: "2026-01-04T09:15:00Z", cards_url: "https://your-board.mudda.today/boards/1/cards?column_ids%5B%5D=3" } creator: id: 1 name: Ayesha Khan email_address: ayesha@example.com active: true created_at: "2026-01-04T09:12:00Z" url: https://your-board.mudda.today/users/1 avatar_url: https://your-board.mudda.today/users/1/avatar notes_url: https://your-board.mudda.today/boards/1/cards/7/notes paging: { total: 42, page: 1, pages: 3, next: "https://your-board.mudda.today/cards.json?page=2" } ```