List Chat Contacts
List visitor contacts and obtain the IDs needed for Get Chat Contact, Update Chat Contact and Create Visitor Message. Each contact's ID is in data[].id. The default page contains up to 10 contacts; the maximum page size is 100.
To keep the response focused, use include_fields with the attributes you need. For example, include_fields=name,email,widget_id selects those contact attributes. The allowed names appear below. If you supply both include_fields and exclude_fields, only include_fields is applied.
GET https://developers.chatway.app/api/v1/contactsExample request
curl -G "https://developers.chatway.app/api/v1/contacts" \
-H "X-API-KEY: your_api_key" \
--data-urlencode "limit=10" \
--data-urlencode "page=1"Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
search | query | No | string|null | Optional contact search term. Omit it to list contacts without a search filter. |
limit | query | No | integer|null | Maximum contacts per page. Default: 10. Allowed range: 1–100. |
page | query | No | integer|null | Page number, starting at 1. Default: 1. |
include_fields | query | No | string|null | Allowed: widget_name, widget_id, team_id, name, email, phone, country_dialing_code, bgcolor, location, browser_type, country_code, country, country_flag, country_emoji, page_visited, online_status, last_active_at, blocked_at, is_name_updated, created_at, verified_id, verified_email, timezone, language, ip, operating_system. Example: `name,widget_name`. If both this and exclude_fields are sent, only include_fields is applied. |
exclude_fields | query | No | string|null | Allowed: widget_name, widget_id, team_id, name, email, phone, country_dialing_code, bgcolor, location, browser_type, country_code, country, country_flag, country_emoji, page_visited, online_status, last_active_at, blocked_at, is_name_updated, created_at, verified_id, verified_email, timezone, language, ip, operating_system. Ignored when include_fields is also present (include takes precedence). |
Responses
200
Paginated list responses include data, meta.pagination, and links. Use the page and limit query parameters to walk results. Follow links.next until it is null, or increment page until current_page >= total_pages.
| Field | Description |
|---|---|
meta.pagination.total |
Total records across all pages |
meta.pagination.count |
Records returned on this page |
meta.pagination.per_page |
Page size used for this response (matches limit) |
meta.pagination.current_page |
Current page number (1-based) |
meta.pagination.total_pages |
Total number of pages |
links.next |
URL for the next page, or null on the last page |
links.first / links.last |
First and last page URLs |
application/json
data (array<object>, required)type (string, required)id (string, required)attributes (object, required)— Returned attributes depend on include_fields and exclude_fields. Filtered-out attributes are omitted. The field types below apply when an attribute is present. If both filters are supplied, only include_fields is applied.widget_name (string|null)widget_id (string|null)team_id (string|null)name (string|null)email (string|null)phone (string|null)country_dialing_code (string|null)bgcolor (string|null)location (string|null)browser_type (string|null)country_code (string|null)country (string|null)country_flag (string|null)country_emoji (string|null)page_visited (array)timezone (string|null)language (string|null)ip (string|null)operating_system (string|null)online_status (string|null)last_active_at (string|null)blocked_at (string|null)is_name_updated (boolean)created_at (string|null)verified_id (string|null)verified_email (string|null)
meta (object, required)pagination (object, required)total (integer, required)count (integer, required)per_page (integer, required)current_page (integer, required)total_pages (integer, required)
links (object, required)self (string, required)first (string, required)next (string|null, required)last (string, required)
422
Examples
Response 200 example
{
"data": [
{
"type": "chat-contacts",
"id": "9b0c5fe6-35ad-459d-b6ba-4288191f84f1",
"attributes": {
"widget_name": "Main site widget",
"widget_id": "eouqtiupanm6uvglwshy",
"team_id": "MOCK_TEAM_ID",
"name": "John Doe",
"email": "[email protected]",
"phone": "+1XXXXXXXXXX",
"country_dialing_code": "+1",
"bgcolor": "#007F3E",
"location": "New York, US",
"browser_type": "Chrome 143",
"country_code": "US",
"country": "United States",
"country_flag": "country flag",
"country_emoji": "country emoji",
"page_visited": [],
"timezone": "timezone",
"language": "language",
"ip": "ip",
"operating_system": "operating system",
"online_status": "online",
"last_active_at": "2026-02-04T10:30:00Z",
"blocked_at": "blocked at",
"is_name_updated": false,
"created_at": "2026-02-04T10:30:00Z",
"verified_id": "verified id",
"verified_email": "verified email"
}
}
],
"meta": {
"pagination": {
"total": 1,
"count": 1,
"per_page": 10,
"current_page": 1,
"total_pages": 1
}
},
"links": {
"self": "https://developers.chatway.app/api/v1/contacts?page=1",
"first": "https://developers.chatway.app/api/v1/contacts?page=1",
"next": null,
"last": "https://developers.chatway.app/api/v1/contacts?page=1"
}
}