API reference
//List client types
🔐 Required role:
API_ADMIN📖 Data dictionary: Client type
Retrieve all client types with basic pagination support
Uses standard limit/offset pagination via pageSize and page — see Pagination. Use total.aggregate.count to detect the end.
This is a read-only lookup endpoint. Use it to resolve the clientTypeId values accepted by the Client Onboarding endpoint (POST /api/v1/clients/v1/onboard).
Security
(BearerAuth and CfAccessClientId and CfAccessClientSecret) or BearerAuth
- Sandbox (requires Cloudflare Access headers)https://api.sandbox.aiwyn.app/gql/v1/client_types
- Staging (requires Cloudflare Access headers)https://api.staging.aiwyn.app/gql/v1/client_types
- Production (your live firm data; no Cloudflare Access headers)https://api.aiwyn.ai/gql/v1/client_types
curl -i -X POST \
https://api.sandbox.aiwyn.app/gql/v1/client_types \
-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": 50,
"page": 0
}'Response
{ "clientTypes": [ { … } ], "total": { "aggregate": { … } } }