Taiga
API ReferencePre EncounterAppointmentsV1

Get counts

Gets aggregate counts for the visits matching the given filters. The counts respect all provided filters but are independent of pagination, so this can be fetched once when filters change instead of on every page of `get_visits`. **IMPORTANT:** Like `get_visits`, this endpoint requires a date filter on `appointment.startTimestamp` to ensure acceptable query performance.

GET
/appointments/v1/visits/counts

Authorization

BearerAuth
AuthorizationBearer <token>

Send your Taiga API key as a Bearer token. Create and manage keys in the Taiga developer portal.

In: header

Query Parameters

filters?|

Required: Must include a date filter on appointment.startTimestamp (using gt, lt, or eq operators). Example: appointment.startTimestamp|gt|2024-01-01

Response Body

application/json

application/json

curl -X GET "https://example.com/appointments/v1/visits/counts"
{  "not_ready_reason_counts": {    "property1": 0,    "property2": 0  }}