List all customers

GET https://api.tamio.com/v2/customers/list

Returns a paginated list of customers. Supports filtering by name, email, country, date range, teammate, automation, product, and affiliate program. Leads can be optionally included via the include_leads parameter.

Query Parameters

page integer*
per_page integer*
order string
ascdesc
sort_by string
nameemailcountrycreated_at
filter string

Search by name, email, or other fields

from string

Start date filter (ISO 8601 or unix timestamp)

to string

End date filter (ISO 8601 or unix timestamp)

include_leads boolean

Whether to include leads in the results

teammate_id string

Filter by assigned teammate UUID

automation_id string

Filter by automation UUID

product_id string

Filter by product UUID

affiliate_program_id string

Filter by affiliate program UUID

affiliate_program_partner_id string

Filter by affiliate program partner UUID

countries[] array of string

Filter by country codes

attributes[] array of string

Additional attributes to include

Responses

200 Customers listed successfully

Customers listed successfully

status integer
total_results integer
customers array of Customer
400 Validation or business-logic error. Possible `error_code` values:
401 Unauthorized – invalid or missing Bearer token
/customers/list
1const response = await fetch("https://api.tamio.com/v2/customers/list", {
2 headers: {
3 "Authorization": "Bearer YOUR_API_KEY",
4 "Accept": "application/json"
5 }
6});
7const data = await response.json();
Responses
{
  "status": 200,
  "total_results": 150,
  "customers": []
}