GuideLab API

Get filter options for orders

Returns available filter options for the order list, including distinct doctor names, partner organizations (labs for clinics, clinics for labs), and patients (clinics only). Used to populate filter dropdowns in the UI. Each list is capped; `truncated` reports which lists were cut short so the UI can offer a search instead of a partial dropdown.

GET
/orders/filter-options

Returns available filter options for the order list, including distinct doctor names, partner organizations (labs for clinics, clinics for labs), and patients (clinics only). Used to populate filter dropdowns in the UI. Each list is capped; truncated reports which lists were cut short so the UI can offer a search instead of a partial dropdown.

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/orders/filter-options"
{  "doctors": [    "string"  ],  "patients": [    {      "id": "string",      "firstName": "string",      "lastName": "string"    }  ],  "labs": [    {      "id": "string",      "name": "string"    }  ],  "clinics": [    {      "id": "string",      "name": "string"    }  ],  "truncated": {    "doctors": true,    "patients": true,    "partners": true  }}
Empty