list_cards
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”| 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”GET /cards.jsonGET /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 and the HTTP status.
Input schema
Section titled “Input schema”{ "$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"}