Skip to content

Client group

Manage client group records and associated staff assignments.

List client groups

Request

🔐 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
Bodyapplication/json
pageSizeinteger, [ 1 .. 1000 ]

Limit — number of records to return (not a page count).

Default:50
Example:25
pageinteger, >= 0

Offset — number of records to skip. This is not a page index. To fetch the next N rows after the first N, send pageSize: N and page: N. An offset at or beyond total.aggregate.count returns an empty result array.

Default:0
Example:0
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
  }'

Responses

Successfully retrieved client group list

Bodyapplication/json
clientGroupsArray of objects(ClientGroup)required
totalobjectrequired
Response
{ "clientGroups": [ { … }, { … } ], "total": { "aggregate": { … } } }