Accounts
List accounts
Fetch a list of accounts associated with your organization.
The List Accounts endpoint returns a paginated list of all accounts. This endpoint is typically restricted to administrators or platform-level integrations that need to manage multiple accounts.
Endpoint
Headers
Key | Value | Required |
---|---|---|
Authorization | Bearer <admin_token> | Yes |
Query Parameters
Parameter | Type | Required | Description |
---|---|---|---|
page | int | No | Page number for pagination (default: 1). |
limit | int | No | Number of results per page (default: 25, max: 100). |
status | string | No | Filter accounts by status (active, suspended, closed). |
type | string | No | Filter accounts by type (individual, business). |
created_after | string | No | Return accounts created after a specific ISO 8601 timestamp. |
created_before | string | No | Return accounts created before a specific ISO 8601 timestamp. |
Response
Successful Response (200 OK)
Field | Type | Description |
---|---|---|
data | array | Array of account objects. |
pagination | object | Metadata about the current page of results. |
page | int | Current page number. |
limit | int | Results per page. |
total | int | Total number of matching accounts. |
has_next | bool | Indicates if more pages exist. |
Error Response (401 / 403)
Error Code | Meaning |
---|---|
unauthorized | Missing or invalid token. |
forbidden | Token does not belong to an admin or platform account. |
Example Usage
cURL
JavaScript (Fetch)
Use filters like status and created_after to reduce payload size and improve performance when dealing with large datasets.