List contacts
GET/api/contactsScope contacts:read
List your contacts, a page at a time.
Every filter is optional, and they combine. A page holds at most 200 contacts: read total, then ask for the next page until you have them all. Deleted contacts are never listed.
| Parameter | Type | What it is |
|---|---|---|
page | integer, at least 1 | Default: 1. |
page_size | integer, 1 to 200 | Default: 50. |
search | string, or null | Words found anywhere in the name, email or number, in any order. A number matches in any format. |
status | string, or null | The contact's status, such as new. |
classification | string, or null | Lead classification: hot, warm or cold. |
source | string, or null | Where the contact came from, exactly as the contact's source field says. |
disposition | string, or null | The contact's latest outcome key. |
min_score | integer, or null | Has a call scored at least this (0 to 100). |
max_score | integer, or null | Has a call scored at most this (0 to 100). |
min_duration | integer, or null | Has a call at least this many seconds long. |
max_duration | integer, or null | Has a call at most this many seconds long. |
campaign_id | string (uuid), or null | Has a call placed by this campaign. |
lead_set | string, or null | The lead set the contact was imported into. |
dnd | boolean, or null | true: only Do-Not-Call contacts; false: only callable ones. |
needs | one of: callback, stale_high, or null | callback: a call back is owed; stale_high: hot, callable, and not rung in the last 7 days. |
added_from | string (date-time), or null | Added at or after this time (ISO 8601). |
added_to | string (date-time), or null | Added at or before this time (ISO 8601). |
added_days | integer, 1 to 366, or null | Added in the last N days |
agent_id | string (uuid), or null | Has a call answered by this AI agent. |
team_id | string (uuid), or null | Has a call answered by this AI team. |
answered_by | one of: agent, team, or null | Has a call answered by any AI agent working alone, or by any AI team. |
assigned_to | string, or null | Given to: a team member's user id, or none |
last_message_status | string, up to 12 characters, or null | The latest campaign message to the contact has this status (delivered, read, replied, failed...) |
sort | one of: name, source, score, last_called, added | Default: name. |
order | one of: asc, desc | Default: asc. |
view | one of: active, held | held: contacts held over the plan's contact limit. Default: active. |
| Field | Type | What it is |
|---|---|---|
totalrequired | integer | Contacts matching the filters, across every page. |
pagerequired | integer | — |
page_sizerequired | integer | — |
sortrequired | string | — |
orderrequired | string | — |
itemsrequired | list of objects | — |
items[].idrequired | string (uuid) | — |
items[].namerequired | string | — |
items[].phonerequired | string | — |
items[].emailrequired | string, or null | — |
items[].lead_typerequired | string, or null | — |
items[].statusrequired | string | — |
items[].classificationrequired | string, or null | — |
items[].dispositionrequired | string, or null | — |
items[].dnd_flagrequired | boolean | — |
items[].source | string, or null | — |
items[].language | string, or null | — |
items[].created_at | string (date-time), or null | — |
items[].last_called_at | string (date-time), or null | — |
items[].score | number, or null | — |
items[].assigned_user_id | string (uuid), or null | — |
| Code | When |
|---|---|
401 | The token is missing, unknown or revoked, or its workspace was deleted. |
402 | The workspace's plan does not include API access. The token is paused, not revoked: it works again as soon as the plan includes API access. |
403 | The token does not have this endpoint's scope, it is a sandbox token, the workspace is suspended, or the request came from a network the workspace does not allow. |
422 | A field is missing or not in the form this endpoint takes. detail says which, and why. |
429 | This token has made more than 60 requests a minute. The Retry-After header says how many seconds to wait. |
curl "https://aicallstudio.com/api/contacts?page_size=50" \
-H "Authorization: Bearer mtc_YOUR_TOKEN"