List customers
Retrieve customers in your organization with analytics and budget fields. Available filter fields include customer_identifier, name, email, number_of_requests, total_tokens, total_cost, and active_days.
Headers
Authorization
Bearer token. Use Bearer YOUR_API_KEY.
Query parameters
page
Page number.
page_size
Number of customers per page. Maximum is 1000.
sort_by
Sort field. Prefix with - for descending. Common values include customer_identifier, email, name, -first_seen, -number_of_requests, and -total_cost.
environment
Optional environment filter. If omitted, the backend uses the environment implied by your auth context when applicable.
Allowed values:
Request
This endpoint expects an object.
operator
Logical operator for combining filters when supported by the client payload.
Allowed values:
Response
Paginated list of customers.
count
Total number of matching customers.
results
Customers for the current page.
next
Next page URL.
previous
Previous page URL.
Errors
400
Bad Request Error
401
Unauthorized Error
429
Too Many Requests Error
500
Internal Server Error