curl -X POST "https://your-collabase.ch/api/v1/filters" \
-H "Authorization: Bearer cb_xYz123ABCD..." \
-H "Content-Type: application/json" \
-d '{
"name": "Open invoices",
"entity": "task",
"cqlText": "status != \"Done\" AND label IN (\"invoice\")",
"sort": [{ "field": "dueDate", "direction": "ASC" }],
"columns": ["key", "title", "dueDate"]
}'
Create filter
Save a CQL query as a private filter of the token owner, with the kind of object, the sort and the columns.
POST
/
api
/
v1
/
filters
curl -X POST "https://your-collabase.ch/api/v1/filters" \
-H "Authorization: Bearer cb_xYz123ABCD..." \
-H "Content-Type: application/json" \
-d '{
"name": "Open invoices",
"entity": "task",
"cqlText": "status != \"Done\" AND label IN (\"invoice\")",
"sort": [{ "field": "dueDate", "direction": "ASC" }],
"columns": ["key", "title", "dueDate"]
}'
Creates a filter that belongs to the token owner. It is private until you share it.
Scope
filters:write.Body parameters
string
required
1 to 100 characters. Two filters may have the same name.
string | null
Up to 500 characters.
string
required
The query. It must parse; a query with a syntax error answers
422.object[]
default:"[]"
Up to five keys, each
{ "field", "direction" }.string | null
default:"null"
The field the list groups by when the filter is opened; none means no grouping.
string[]
default:"[]"
The columns to show; none means the kind’s standard columns.
Response
Status201 with the filter, in the shape of List filters.
curl -X POST "https://your-collabase.ch/api/v1/filters" \
-H "Authorization: Bearer cb_xYz123ABCD..." \
-H "Content-Type: application/json" \
-d '{
"name": "Open invoices",
"entity": "task",
"cqlText": "status != \"Done\" AND label IN (\"invoice\")",
"sort": [{ "field": "dueDate", "direction": "ASC" }],
"columns": ["key", "title", "dueDate"]
}'
Last modified on October 23, 2026