Clients
The clients endpoint returns the list of clients your API key is authorised for. For a standard key this is your own account; for a reseller/parent key it also includes your managed sub-clients.
Pagination
This endpoint uses offset-based pagination. Use the limit parameter to control page size and the offset parameter to skip results. The response paging object reports the total number of matching clients so you can iterate until offset + count reaches total.
Endpoint
GET /v1/clients
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
clientId |
string |
No | Return a single client by ID. Must be a client your API key is authorised for. |
search |
string |
No | Free-text, case-insensitive partial match on client ID, name, or parent client name. |
active |
boolean |
No | Filter by account status. true returns only active clients, false only inactive. |
limit |
integer |
No | Maximum number of clients to return per page. Must be from 1 to 500. Defaults to 200. |
offset |
integer |
No | Number of clients to skip before returning results. Must be 0 or greater. Defaults to 0. |
Authorisation
Passing a clientId your API key is not authorised for returns 401 with Unauthorized. Please ensure client ID is valid..
Parameter validation
limit and offset must be whole numbers within the ranges above, and active must be true or false. Invalid values return 400 with a message describing the offending parameter.
Request Example
Response Example
The data field is an array of ClientStructure's. The paging object reports the page window and the total number of matching clients.