Theme switcher

List Customers

Retrieve a paginated list of all customers for the authenticated team.

Search Functionality: The search parameter performs partial, case-insensitive matching across:

  • Customer name
  • Email address
  • Main phone number

Pagination:

  • Results are paginated with configurable page size
  • Maximum 100 records per page to prevent performance issues
  • Response includes total record count for pagination calculation

Sorting:

  • Default sort: Customer name (ascending)
  • Available sort fields: customer, email, createdAt, updatedAt
  • Sort direction: ASC or DESC

Edge Cases:

  • If page exceeds totalPages, returns empty records array
  • If search has no matches, returns empty records array with totalRecords: 0
  • If team has no customers, returns empty records array

Use Cases:

  • Display customer list in your application
  • Search for specific customers
  • Export customer data
  • Sync customers to external systems

Header Parameters

x-client-idstring
x-signaturestring
Authorizationstring

Query Parameters

searchstring

Search term to filter customers. Searches across customer name, email, and mainPhone using partial matching (case-insensitive).

Example: "acme" will match "Acme Corp" and "acme@example.com"

Max length
255
pageinteger

Page number for pagination. First page is 1.

If page exceeds total pages, returns empty results.

Minimum
1
Maximum
10000
Default value
1
limitinteger

Number of records to return per page. Maximum 100 to prevent performance issues.

Minimum
1
Maximum
100
Default value
20
orderBystring

Field to sort results by

Default value
customer
Enum values:
customeremailcreatedAtupdatedAt
orderDirectionstring

Sort direction. ASC = ascending, DESC = descending

Default value
ASC
Enum values:
ASCDESC

Response

200
Object
Success - Returns paginated list of customers

Response Attributes

statusstring

Always "success" for successful requests

messagestring

Human-readable success message

dataobject

Show child attributes

401
Object
Unauthorized - Authentication failed

Response Attributes

statusstring Required

Always "error" for error responses

messagestring Required

Human-readable error description

codestring Required

Machine-readable error code for programmatic handling

detailsobject

Additional context about the error (varies by error type)

Show child attributes

errorsarray

Present for validation errors with multiple fields

Show child attributes

429
Object
Too Many Requests - Rate limit exceeded

Response Attributes

statusstring Required

Always "error" for error responses

messagestring Required

Human-readable error description

codestring Required

Machine-readable error code for programmatic handling

detailsobject

Additional context about the error (varies by error type)

Show child attributes

errorsarray

Present for validation errors with multiple fields

Show child attributes

Was this section helpful?

What made this section unhelpful for you?

GET

/

Select
1

Response

Was this section helpful?

What made this section unhelpful for you?