/api/columnsThe columns of a workspace.
With ?project=, it returns only the set IN EFFECT for a card of that project, already resolved by the columnScope in Settings.
Query parameters
Request
# every column of the workspace: the tenant set and each project set
curl -s "http://localhost:3000/api/columns?tenant=cmsp4djx60002p801o7ybpkv7" \
-H "Authorization: Bearer $TOKEN"
# only the set IN EFFECT for a card of that project
curl -s "http://localhost:3000/api/columns?tenant=cmsp4djx60002p801o7ybpkv7&project=cmttg1vjy000zlf015g097nhi" \
-H "Authorization: Bearer $TOKEN"Response200
[
{
"id": "cmttg1vdl000tlf01uuqhz8ad",
"projectId": null,
"name": "A fazer",
"accent": "stone",
"position": 0,
"done": false
}
]Error responses
It serves whoever calls the API from outside: the interface reads columns from the /api/board payload, which is already scoped.