Skip to main content
GET
Check user tickets
Requires Premium or Enterprise subscription

Overview

Check how many open tickets a user has in a specific category. Useful for enforcing ticket limits before allowing new ticket creation. Use this endpoint before calling POST /tickets/create to check if the user has reached their category’s maximum open tickets limit. If CanCreateTicket is false, inform the user they need to close existing tickets first.

Path Parameters

string
required
UserId to check

Query Parameters

string
Category ID to check (optional). If provided, returns category-specific limits.

Response

boolean
Whether the request was successful
object

Example

Response Example

Error Responses

Rate Limit

25 requests per second per API key

Authorizations

apikey
string
header
required

Pass your API key in the apikey header. Alternatively, the x-api-key header is also accepted.

Path Parameters

userId
string
required

UserId to check

Query Parameters

category
string

Category ID to check

Response

Ticket count returned successfully