Skip to main content
POST
Count tickets for up to 20 queries in one call
Key: Read Scope: Company

Authorizations

Authorization
string
header
required

Use your Primo API key in the Authorization header as Bearer <API_KEY>.

Body

application/json
queries
object
required

Up to 20 ticket queries, each under a label you choose (letters, digits, "_" or "-"), e.g. {"pending":{"status":"PENDING"},"pendingHigh":{"status":"PENDING","priority":"HIGH"}}. A query takes the status, priority, searchTerm, assigneeEmployeeId and tagIds of getTickets, nothing else.

Response

default - application/json
counts
object
required

The number of records matching each query, under the label the query was sent with