Cards and lanes
Boards and their four lanes
Section titled “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”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’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:
{ "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”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
<div class="action-text-content">; 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_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”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:
{ "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.
Moving cards
Section titled “Moving cards”- Lanes.
column_idmoves the card to another lane on its board. Acolumn_idthat isn’t on the board the card ends on is a404. - Boards.
board_idmoves the card to another board, where it lands in Backlog unless acolumn_idnames one of the destination’s lanes. The card is renumbered there, so its old number and URL are stale: the response’sLocationheader carries the new URL, as does the body’surl. Aboard_idthat isn’t yours is a404.
Filtering cards
Section titled “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 ids (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 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”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.