Create a card
const url = 'https://your-board.mudda.today/boards/1/cards.json';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"title":"Ship it","due_on":"2026-12-01","steps_attributes":[{"content":"First"},{"content":"Second"}]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://your-board.mudda.today/boards/1/cards.json \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "title": "Ship it", "due_on": "2026-12-01", "steps_attributes": [ { "content": "First" }, { "content": "Second" } ] }'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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The board’s id.
Example
1Request Bodyrequired
Section titled “Request Bodyrequired”object
Rich text, as plain text or HTML.
No id adds a step; an id edits it, or removes it with _destroy (needs delete).
object
Example
{ "title": "Ship it", "due_on": "2026-12-01", "steps_attributes": [ { "content": "First" }, { "content": "Second" } ]}Responses
Section titled “Responses”The new card.
object
The card’s number on its board.
Plain text.
The rich text as Action Text renders it, wrapped in
<div class="action-text-content">…</div> (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.
In Done.
In Backlog.
Its lane’s colour.
object
object
object
object
A colour by its English name and the CSS value the page paints it with.
object
1 to 4: Backlog, Todo, Doing, Done.
The board’s card index narrowed to this lane.
object
object
The 20 most recent.
object
object
Wrapped in <div class="action-text-content">, as description_html is.
object
object
The card’s database id.
Examples
{ "id": 57, "number": 7, "title": "Ship it", "description": "Cut the release and announce it.", "description_html": "<div class=\"action-text-content\">\n <div>Cut the release and announce it.</div>\n</div>\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": "<div class=\"action-text-content\">\n <div>Deployed to staging.</div>\n</div>\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}Headers
Section titled “Headers”The record’s URL.
The body is missing the object a write needs, or isn’t valid JSON.
Every failure’s envelope. request_id matches the X-Request-Id header.
object
Messages keyed by field; base when no field is to blame.
object
Example
{ "errors": { "card": [ "is missing" ] }, "request_id": "5f0c1e9a-2b7d-4c1e-9a63-0e4f8d2b1c55"}No credential, or a revoked or expired token.
Every failure’s envelope. request_id matches the X-Request-Id header.
object
Messages keyed by field; base when no field is to blame.
object
Example
{ "errors": { "base": [ "Unauthorized" ] }, "request_id": "5f0c1e9a-2b7d-4c1e-9a63-0e4f8d2b1c55"}The user is deactivated, the record isn’t yours to change, or the token lacks the scope.
Every failure’s envelope. request_id matches the X-Request-Id header.
object
Messages keyed by field; base when no field is to blame.
object
Example
{ "errors": { "base": [ "This token is not granted the write scope" ] }, "request_id": "5f0c1e9a-2b7d-4c1e-9a63-0e4f8d2b1c55"}No such record or route.
Every failure’s envelope. request_id matches the X-Request-Id header.
object
Messages keyed by field; base when no field is to blame.
object
Example
{ "errors": { "base": [ "Not found" ] }, "request_id": "5f0c1e9a-2b7d-4c1e-9a63-0e4f8d2b1c55"}Validation failed, a query parameter isn’t recognised, or a filter value is outside its list.
Every failure’s envelope. request_id matches the X-Request-Id header.
object
Messages keyed by field; base when no field is to blame.
object
Example
{ "errors": { "due_on": [ "can't be blank in Todo or Doing" ] }, "request_id": "5f0c1e9a-2b7d-4c1e-9a63-0e4f8d2b1c55"}The token has spent its 600 requests this minute.
Every failure’s envelope. request_id matches the X-Request-Id header.
object
Messages keyed by field; base when no field is to blame.
object
Example
{ "errors": { "base": [ "Rate limit exceeded: 600 requests a minute per token" ] }, "request_id": "5f0c1e9a-2b7d-4c1e-9a63-0e4f8d2b1c55"}Headers
Section titled “Headers”Seconds to wait before retrying.