Kanban Boards
Organize existing tasks into project or No Project boards. Stages control placement; changing a card’s position does not create a second task record.
Board Endpoints
| Method | Path | Description | Auth |
|---|---|---|---|
| GET | /kanban/boards | List boards | JWT |
| GET | /kanban/boards/:id/view | Get board with cards | JWT |
| POST | /kanban/boards | Create a board | JWT + Entitlement |
Stage Endpoints
| Method | Path | Description | Auth |
|---|---|---|---|
| GET | /kanban/boards/:boardId/stages/:stageId/cards | List cards in stage (cursor-paginated) | JWT |
| POST | /kanban/boards/:boardId/stages | Create a stage | JWT |
| POST | /kanban/boards/:boardId/stages/reorder | Reorder stages | JWT |
Card Endpoints
| Method | Path | Description | Auth |
|---|---|---|---|
| POST | /kanban/boards/:boardId/cards | Create a card | JWT |
| POST | /kanban/cards/move | Move card to stage/position | JWT |
| POST | /kanban/stages/:stageId/cards/reorder | Reorder cards within a stage | JWT |
List Kanban Boards
Request
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
scope | string | Yes | Board scope. One of global or chainy. |
chainyId | string (uuid) | Conditional | Required when scope=chainy. The Project to list boards for. |
archived | boolean | No | Include archived boards. Defaults to false. |
scope is mandatory — omitting it returns 400 bad_request (scope must be one of the following values: global, chainy).
Use the id from Create Project's response (data.id) as $CHAINY_ID when scoping to a project.
Response
{
"data": [
{
"id": "cm5board01",
"title": "Language Learning Board",
"chainyId": "cm5abc123",
"isArchived": false,
"createdAt": "2026-03-17T10:00:00.000Z"
}
],
"meta": {
"total": 1
}
}Code Examples
# Global boards
curl "https://api.chainabit.com/api/v1/kanban/boards?scope=global" \
-H "Authorization: Bearer $TOKEN"# Project-scoped boards
curl "https://api.chainabit.com/api/v1/kanban/boards?scope=chainy&chainyId=$CHAINY_ID" \
-H "Authorization: Bearer $TOKEN"Create Board
A project board may already exist. Creating it again resolves that board instead of making a duplicate, and its returned title can reflect the project. Use the returned data.id for subsequent operations.
Request
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
title | string | Yes | Board title |
description | string | No | Board description |
scope | string | Yes | global for the No Project board or chainy for a project board |
chainyId | string (uuid) | Conditional | Required with scope: "chainy" |
Response
{
"data": {
"id": "cm5board01",
"title": "Language Learning Board",
"description": "Track Spanish learning progress",
"chainyId": "cm5abc123",
"isArchived": false,
"createdAt": "2026-03-17T10:00:00.000Z"
}
}Code Examples
curl -X POST https://api.chainabit.com/api/v1/kanban/boards \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"scope": "chainy",
"title": "Language Learning Board",
"description": "Track Spanish learning progress",
"chainyId": "'$CHAINY_ID'"
}'Create Stage
Request
Use the id from Create Board's response (data.id) as $BOARD_ID.
Response
{
"data": {
"id": "cm5stage02",
"boardId": "cm5board01",
"title": "In Progress",
"position": 1,
"createdAt": "2026-03-17T10:05:00.000Z"
}
}Code Examples
curl -X POST https://api.chainabit.com/api/v1/kanban/boards/$BOARD_ID/stages \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"title": "In Progress",
"position": 1
}'Create Card
A card projects an existing task. Its id equals the task’s bitId; its title is read from that task. This endpoint places the task on a stage rather than creating a new task.
Request
Use the id from Create Board's response as $BOARD_ID, the id from Create Stage's response as $STAGE_ID, and the id of one of your own Tasks as $BIT_ID.
Response
{
"data": {
"id": "33333333-3333-4333-8333-333333333333",
"boardId": "11111111-1111-4111-8111-111111111111",
"stageId": "22222222-2222-4222-8222-222222222222",
"bitId": "33333333-3333-4333-8333-333333333333",
"position": 0,
"bit": {
"id": "33333333-3333-4333-8333-333333333333",
"title": "Review the setup guide",
"status": "pending",
"assignees": []
}
}
}Code Examples
curl -X POST https://api.chainabit.com/api/v1/kanban/boards/$BOARD_ID/cards \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"stageId": "'$STAGE_ID'",
"bitId": "'$BIT_ID'",
"position": 0
}'Move Card
Request
Use the id from Create Card's response as $CARD_ID, and the id of the destination stage (from Create Stage's response) as $TARGET_STAGE_ID.
Response
{
"data": {
"id": "33333333-3333-4333-8333-333333333333",
"boardId": "11111111-1111-4111-8111-111111111111",
"stageId": "22222222-2222-4222-8222-222222222222",
"bitId": "33333333-3333-4333-8333-333333333333",
"position": 0,
"bit": {
"id": "33333333-3333-4333-8333-333333333333",
"title": "Review the setup guide",
"status": "pending",
"assignees": []
}
}
}Code Examples
curl -X POST https://api.chainabit.com/api/v1/kanban/cards/move \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"bitId": "'$CARD_ID'",
"toStageId": "'$TARGET_STAGE_ID'",
"toPosition": 0
}'Reorder Stages
Request
Use $BOARD_ID from Create Board as before. orderedStageIds must list every stage id on the board (each from Create Stage's response) in the desired order — replace $STAGE_ID_1..$STAGE_ID_4 below with your own.
Response
{
"data": {
"reordered": true
}
}Code Examples
curl -X POST https://api.chainabit.com/api/v1/kanban/boards/$BOARD_ID/stages/reorder \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"orderedStageIds": ["'$STAGE_ID_1'", "'$STAGE_ID_2'", "'$STAGE_ID_3'", "'$STAGE_ID_4'"]
}'Reorder Cards
Request
Use the id from Create Stage's response as $STAGE_ID. orderedBitIds must list every card id in that stage (each from Create Card's response) in the desired order — replace $CARD_ID_1..$CARD_ID_3 below with your own.
Response
{
"data": {
"reordered": true
}
}Code Examples
curl -X POST https://api.chainabit.com/api/v1/kanban/stages/$STAGE_ID/cards/reorder \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"orderedBitIds": ["'$CARD_ID_1'", "'$CARD_ID_2'", "'$CARD_ID_3'"]
}'Board with Cards View
The response groups cards by stage in data.cardsByStage. Stages do not embed a cards array. data.cardsMetaByStage contains pagination for each group. The example below shows selected fields with illustrative IDs.
Request
Use the id from Create Board's response as $BOARD_ID.
Response
{
"data": {
"board": {
"id": "11111111-1111-4111-8111-111111111111",
"title": "Project board",
"isDefault": true,
"isArchived": false
},
"stages": [
{
"id": "22222222-2222-4222-8222-222222222222",
"boardId": "11111111-1111-4111-8111-111111111111",
"title": "In Progress",
"position": 1,
"isDefault": false
}
],
"cardsByStage": {
"22222222-2222-4222-8222-222222222222": [
{
"id": "33333333-3333-4333-8333-333333333333",
"boardId": "11111111-1111-4111-8111-111111111111",
"stageId": "22222222-2222-4222-8222-222222222222",
"bitId": "33333333-3333-4333-8333-333333333333",
"position": 0,
"bit": {
"id": "33333333-3333-4333-8333-333333333333",
"title": "Review the setup guide",
"status": "pending",
"assignees": []
}
}
]
},
"cardsMetaByStage": {
"22222222-2222-4222-8222-222222222222": {
"limit": 20,
"offset": 0,
"total": 1,
"hasNextPage": false
}
}
},
"meta": {
"limit": 20,
"offset": 0,
"total": 1,
"hasNextPage": false
}
}Code Examples
curl https://api.chainabit.com/api/v1/kanban/boards/$BOARD_ID/view \
-H "Authorization: Bearer $TOKEN"Cards in Stage (Cursor Paginated)
Start with no cursor. When meta.hasNextPage is true, pass the returned meta.nextCursor as the next request’s cursor. It is a task UUID, not a base64 string. The page limit is 1–50; keep the same board and stage while paging.
Request
Use the id from Create Board's response as $BOARD_ID and the id from Create Stage's response as $STAGE_ID.
Response
{
"data": [
{
"id": "33333333-3333-4333-8333-333333333333",
"boardId": "11111111-1111-4111-8111-111111111111",
"stageId": "22222222-2222-4222-8222-222222222222",
"bitId": "33333333-3333-4333-8333-333333333333",
"position": 0,
"bit": {
"id": "33333333-3333-4333-8333-333333333333",
"title": "Review the setup guide",
"status": "pending",
"assignees": []
}
}
],
"meta": {
"limit": 20,
"offset": 0,
"hasNextPage": false
}
}Code Examples
curl "https://api.chainabit.com/api/v1/kanban/boards/$BOARD_ID/stages/$STAGE_ID/cards?limit=20" \
-H "Authorization: Bearer $TOKEN"