🔐 Required role:
API_ADMIN📖 Data dictionary: Client
Retrieve all clients with limit/offset pagination
This endpoint lists all clients. It does not apply filters. Use POST /gql/v1/clients/search when you need a where clause.
Uses standard limit/offset pagination via pageSize and page — see Pagination. Use total.aggregate.count from the response to know when you have reached the end.
Other behavior:
- Default sort is client name ascending, then
createdAtdescending - Each client carries its department, office, industry, client type, business entity and staff assignments; relationships and optional foreign keys are
nullwhen unset - The response includes the total count
- Default
pageSizeis 50; maximum is 1000
Security
(BearerAuth and CfAccessClientId and CfAccessClientSecret) or BearerAuth
Limit — number of records to return (not a page count).
Default:50
Example:1000
- Sandbox (requires Cloudflare Access headers)https://api.sandbox.aiwyn.app/gql/v1/clients
- Staging (requires Cloudflare Access headers)https://api.staging.aiwyn.app/gql/v1/clients
- Production (your live firm data; no Cloudflare Access headers)https://api.aiwyn.ai/gql/v1/clients
curl -i -X POST \
https://api.sandbox.aiwyn.app/gql/v1/clients \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'CF-Access-Client-Id: YOUR_API_KEY_HERE' \
-H 'CF-Access-Client-Secret: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"pageSize": 1000,
"page": 0
}'Response
{ "clients": [ { … } ], "total": { "aggregate": { … } } }