🔐 Required role:
API_ADMIN📖 Data dictionary: Client group
Retrieve all client groups with basic pagination support
Uses standard limit/offset pagination via pageSize and page — see Pagination. Use total.aggregate.count to detect the end.
This endpoint returns a paginated list of all client groups in the tenant, including assigned partner/manager staff and office information. partnerStaff, managerStaff and office are null when the group has no such assignment.
Key Features:
- Basic pagination with configurable page sizes (default: 50 records)
- Default sorting by client group name (ascending) then creation date (descending)
- Total count aggregation for pagination metadata
Security
(BearerAuth and CfAccessClientId and CfAccessClientSecret) or BearerAuth
Limit — number of records to return (not a page count).
Default:50
Example:25
- Sandbox (requires Cloudflare Access headers)https://api.sandbox.aiwyn.app/gql/v1/client_groups
- Staging (requires Cloudflare Access headers)https://api.staging.aiwyn.app/gql/v1/client_groups
- Production (your live firm data; no Cloudflare Access headers)https://api.aiwyn.ai/gql/v1/client_groups
curl -i -X POST \
https://api.sandbox.aiwyn.app/gql/v1/client_groups \
-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": 25,
"page": 0
}'Response
{ "clientGroups": [ { … }, { … } ], "total": { "aggregate": { … } } }