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.
Authentication
AuthorizationBearer
Use your Respan API key for Respan API authentication. Enter only the Respan API key value; clients send Authorization: Bearer <RESPAN_API_KEY>. For /api/responses, OpenAI or Azure OpenAI provider credentials go in Settings -> Providers or the request body credential_override field, not in this auth field.
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.
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