Skip to content

List clients

Request

🔐 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 createdAt descending
  • Each client carries its department, office, industry, client type, business entity and staff assignments; relationships and optional foreign keys are null when unset
  • The response includes the total count
  • Default pageSize is 50; maximum is 1000
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:1000
pageinteger, >= 0

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

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

Responses

Successfully retrieved client list

Bodyapplication/json
clientsArray of objects(Client)required
totalobjectrequired
Response
{ "clients": [ { … } ], "total": { "aggregate": { … } } }