GuideLab Docs

Count orders per filter preset

Returns the number of orders matching each active preset's filter, keyed by preset id. Powers the stat cards on the orders page. Clinics are counted against the fixed built-in set.

GET
/order-filter-presets/counts

Returns the number of orders matching each active preset's filter, keyed by preset id. Powers the stat cards on the orders page. Clinics are counted against the fixed built-in set.

Authorization

__Secure-guidelab-prod.session_token<token>

Production session cookie set for the guidelab.co domain by Better Auth

In: cookie

Response Body

application/json

curl -X GET "https://example.com/order-filter-presets/counts"
{  "counts": {    "property1": 0,    "property2": 0  }}
Empty
Empty