Pagination and filtering
Cursor lists, limit clamping, and bounded include= expansions.
Lists
Every collection endpoint returns:
{
"data": [],
"hasMore": false,
"nextCursor": null
}limitdefaults to 50, max 200.cursoris an opaque keyset (createdAt + id, descending). Do not parse it.- Pass
nextCursorascursoruntilhasMoreis false. - Inserting rows while paging will not replay already-seen ids in the current keyset.
Filters
Query parameters are resource-specific:
| Resource | Filters |
|---|---|
| Clients | status=active|inactive, search |
| Assignments | clientId, status, type, startDate, endDate |
| Tasks | assignmentId, status, assigneeId |
| Time entries | userId, clientId, assignmentId, startDate, endDate, status |
| Users | active=true|false |
Unknown or malformed filters return 400 { error: { code: "invalid_request" } }. Dates are YYYY-MM-DD. UUIDs must be UUIDs. Client {id} in the path accepts the human-readable slug or UUID.
include=
Only assignment detail supports expansions, one level deep:
GET /v1/assignments/{id}?include=client,tasksAllowlist: client, tasks. Any other token is 400.