Contacts Endpoint
Retrieve customer information and manage contact data.List Contacts
Get all contacts for your sub-account. Endpoint:| Parameter | Type | Required | Description |
|---|---|---|---|
limit | number | No | Max results (default: 25, max: 100) |
offset | number | No | Skip first N results (for pagination) |
search | string | No | Search by name or email |
tag | string | No | Filter by tag |
sort | string | No | Sort by: created, updated, name |
Get Single Contact
Get details about one customer. Endpoint:| Parameter | Type | Required | Description |
|---|---|---|---|
contact_id | string | Yes | The contact ID |
Create Contact
Add a new customer to your contacts. Endpoint:| Parameter | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Customer’s name |
email | string | No | Email address |
phone | string | No | Phone number |
tags | array | No | Tags: ["vip", "frequent"] |
custom_fields | object | No | Custom data: {"company": "Acme"} |
Update Contact
Modify contact information. Endpoint:| Parameter | Type | Required | Description |
|---|---|---|---|
name | string | No | Customer’s name |
email | string | No | Email address |
phone | string | No | Phone number |
tags | array | No | Update tags |
custom_fields | object | No | Update custom data |
Search Contacts
Find contacts by name or email. Endpoint:| Parameter | Type | Required | Description |
|---|---|---|---|
q | string | Yes | Search query (name or email) |
limit | number | No | Max results (default: 10) |
Get Contact Conversations
Get all conversations for a specific contact. Endpoint:| Parameter | Type | Required | Description |
|---|---|---|---|
limit | number | No | Max results (default: 25) |
offset | number | No | Skip first N results |
Delete Contact
Remove a contact from your system. Endpoint:Contact Fields
| Field | Type | Description |
|---|---|---|
id | string | Unique contact ID |
name | string | Customer’s full name |
email | string | Email address |
phone | string | Phone number (E.164 format) |
tags | array | Customer tags |
custom_fields | object | Custom data fields |
created_at | ISO 8601 | When contact was created |
updated_at | ISO 8601 | Last update |
last_conversation | ISO 8601 | Most recent message |
conversation_count | number | Total conversations |
Examples
Get All VIP Customers
Search for a Customer
Add Contact with Custom Data
Update Tags on Contact
Error Responses
400 - Bad Request:Next Steps
- Manage conversations - See Conversations
- Set up webhooks - See Webhooks
Questions? Email support@agentclara.ai