ClientSphereDocs
API reference/Tickets

Get ticket counts

Returns ticket totals for the workspace in one call, rather than paging a list to count it.

GET
/tickets/counts

Authorization

AuthorizationRequiredBearer <token>

API key as Bearer token: Authorization: Bearer sk_live_.... Use sk_live_ prefixed keys for production data and sk_test_ prefixed keys for sandbox/test data.

In: header

X-API-Key<token>

API key via header: X-API-Key: sk_live_.... Use sk_live_ prefixed keys for production data and sk_test_ prefixed keys for sandbox/test data.

In: header

curl -X GET "https://clientsphere.io/api/v1/tickets/counts" \
  -H "Authorization: Bearer <token>"

Ticket counts

{
  "data": {
    "all": 128,
    "mine": 0,
    "unresolved": 31,
    "resolved": 97
  }
}