Skip to main content
GET
Get all customers

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Headers

X-Tenant
number
required

Tenant identifier. Send the Tenant ID in the X-Tenant header to scope API requests to a specific tenant.

Query Parameters

search
string | null

The search query.

Maximum string length: 255
per_page
integer | null

The number of items per page.

Required range: 1 <= x <= 100
page
integer | null

The page number.

Required range: x >= 1
sort_by
enum<string> | null

The field to sort by.

Available options:
first_name,
last_name,
date_of_birth,
gender,
created_at,
updated_at
sort_order
enum<string> | null

The sort direction (asc or desc).

Available options:
asc,
desc
gender
enum<string> | null

Filter by gender.

Available options:
male,
female,
other
min_age
integer | null

Filter by minimum age.

Required range: x >= 0
max_age
integer | null

Filter by maximum age.

Required range: x >= 0
user_id
integer | null

Filter by assigned user.

trashed
boolean | null

Filter by trashed status.

Response

Paginated set of CustomerResource

data
CustomerResource · object[]
required
meta
object
required