Skip to main content
This endpoint retrieves a list of all customers with support for pagination, filtering, and including related data.
There is no search parameter on this endpoint. To find customers by name or phone, use the filters parameter described below.

HTTP Request

This endpoint requires authentication. Include your JWT in the x-token header. See Authentication for how to obtain a token and Errors for error responses.

Query Parameters

integer
default:"1"
Page number for pagination (1-based).
integer
default:"50"
Number of customers to return per page (1-999).
string
Include related data in the response. Supported values: group. You can include multiple with parameters.
array
Filter customers by specific fields. Filters use array notation: filters[0][0]=field_name&filters[0][1]=value. Multiple filters can be combined using different indices (e.g., filters[0], filters[1]). Supported filter fields: - name: Filter by customer name (partial match) - phones: Filter by phone number (searches in all phone numbers) - group_id: Filter by customer group ID Filter Examples: - Filter by name: filters[0][0]=name&filters[0][1]=John - Filter by phone: filters[0][0]=phones&filters[0][1]=15551234567 - Multiple filters: filters[0][0]=name&filters[0][1]=John&filters[1][0]=phones&filters[1][1]=15551234567

Request Examples

Response Example

Field Reference

Customer Object

Notes

  • Filterable fields: name (partial match), phones (searches across all phone numbers), group_id (exact match). Note: use phones (plural) — the singular phone field is not filterable.
  • Sortable fields: id, cid, group_id, name, email, address, created_at, updated_at.
  • The search query parameter is listed in some older references but is not implemented — use filters instead.