List Customers
Retrieve and filter a paginated list of customers
Retrieve a list of customers with support for pagination, filtering, and sorting.
Endpoint
Query Parameters
Number of records to return per page (max: 100)
Cursor for fetching next page of results
Cursor for fetching previous page of results
Filter customers by email address
Filter customers created after this timestamp (ISO 8601)
Filter customers created before this timestamp (ISO 8601)
Sort order for results (created_at:asc|created_at:desc)
Response Format
Array of customer objects. See Customer Object for structure.
Examples
Basic List Request
Filtered List Request
Pagination
The API uses cursor-based pagination to handle large collections of customers. To fetch the next page of results:
-
Get the
after
cursor from the pagination object -
Pass it as the
after
parameter in your next request -
Repeat until no more
after
cursor is returned
For optimal performance, we recommend:
-
Use reasonable page sizes (15-50 records)
-
Cache results when possible
-
Implement progressive loading in your UI
Error Responses
Invalid query parameters or malformed request
Missing or invalid API key
Insufficient permissions to list customers
Rate Limits
List operations are subject to the following rate limits:
-
100 requests per minute per API key
-
1000 requests per hour per API key
Exceeding these limits will result in a 429 Too Many Requests
response.
Best Practices
-
Efficient Filtering: Use filters to reduce response size and improve performance
-
Cursor Management: Store cursors temporarily for pagination
-
Bulk Operations: Use higher limit values for bulk data retrieval
-
Error Handling: Implement proper retry logic for rate limits
-
Data Freshness: Consider implementing cache invalidation strategies
Customer Object
See the Customer Object documentation for detailed field descriptions.