GuideLab API

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.

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.

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