Count Records

Count records matching a filter.


POST /v1/count-records

Count records matching a filter. Useful for dashboards or checking how many tasks are open/done in a workspace without fetching full data.

Request body

FieldTypeRequiredDescription
workspaceIdstringNoFilter by workspace ID
donebooleanNoFilter by completion status
archivedbooleanNoFilter by archived status
{
  "workspaceId": "string",
  "done": true,
  "archived": true
}

Response

Returns the result of the operation.

Example

curl -X POST https://rest.blue.app/v1/count-records \
  -H "Authorization: Bearer $BLUE_TOKEN" \
  -H "blue-org-id: $BLUE_ORG_ID" \
  -H "Content-Type: application/json" \
  -d '{"workspaceId":"string","done":true,"archived":true}'