Skip to content
Console

List contacts

GET
/api/v1/contacts
curl --request GET \
--url 'https://api.inside.chat/api/v1/contacts?website_id=example&query_field=all&query_match=prefix' \
--header 'Authorization: Bearer <token>'

Required scopes: contact_read
Data access: –
MCP tool: contacts_list
Note: query adds contact_read_pii

Page stored contact IDs and blocked state, descending. Personal fields and search need contact_read_pii and PII; query_field selects all/name/email/mobile/phone, query_match prefix/exact. Unrestricted policy required; excludes deleted contacts, custom fields, links and remote CRM.

website_id
required
string
/^web_[0-9]{1,20}_[1-9][0-9]{0,18}$/

An explicitly granted website.

query

Requires both contact_read_pii and PII data access. Prefix search over stored native primary name, email, mobile and phone. Wildcards are literal; custom fields and remote CRM data are excluded.

string
>= 1 characters <= 200 characters
query_field

Requires query and current PII access. Exact matching uses native database collation with no address normalization or automatic contact selection.

string
default: all
Allowed values: all name email mobile phone
query_match

Requires query and current PII access. Exact matching uses native database collation with no address normalization or automatic contact selection.

string
default: prefix
Allowed values: prefix exact
limit
integer
>= 1 <= 100
cursor
string
<= 100 characters /^ctc_[0-9]{1,20}_[1-9][0-9]{0,18}_[1-9][0-9]{0,18}$/

Authorized result. Projection depends on current scopes and data policy.

Media typeapplication/json
object
data
required
object
data
required
Array
<= 100 items
One of:
object
id
required
string
<= 100 characters /^ctc_[0-9]{1,20}_[1-9][0-9]{0,18}_[1-9][0-9]{0,18}$/
blocked
required
boolean
access
required
object
pii
required
next_cursor
required
Any of:
string
<= 100 characters /^ctc_[0-9]{1,20}_[1-9][0-9]{0,18}_[1-9][0-9]{0,18}$/
coverage
required
Allowed value: stored_primary_contacts

Example

{
"data": {
"data": [
{
"access": {
"pii": false
}
}
],
"coverage": "stored_primary_contacts"
}
}

Invalid, duplicate or unsupported request parameters.

Missing, expired or revoked installation credential.

Resource not found or not permitted by current authority.

The requested capability is not available for application installations.

Per-app quota exceeded.

Retry-After
integer
>= 1

Enrollment, native service or required authority is unavailable.