Conversations Endpoint
Work with customer conversations (chats, emails, calls, etc.) through the API.List Conversations
Get all conversations for a 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) |
channel | string | No | Filter by channel: sms, email, instagram, facebook, whatsapp, voice |
status | string | No | Filter by status: open, closed, resolved |
customer_id | string | No | Filter by customer ID |
Get Single Conversation
Get details about one conversation. Endpoint:| Parameter | Type | Required | Description |
|---|---|---|---|
conversation_id | string | Yes | The conversation ID |
Create Conversation
Start a new conversation programmatically. Endpoint:| Parameter | Type | Required | Description |
|---|---|---|---|
customer_phone | string | Conditional | Phone number (if channel is SMS or voice) |
customer_email | string | Conditional | Email (if channel is email) |
customer_name | string | No | Customer’s name |
channel | string | Yes | sms, email, voice, etc. |
message | string | No | Initial message content |
Send Message
Send a message in an existing conversation. Endpoint:| Parameter | Type | Required | Description |
|---|---|---|---|
content | string | Yes | Message text |
sender | string | No | customer or assistant (default: assistant) |
Update Conversation
Change conversation status or metadata. Endpoint:| Parameter | Type | Required | Description |
|---|---|---|---|
status | string | No | open, closed, or resolved |
customer_name | string | No | Update customer name |
tags | array | No | Add tags: ["important", "vip"] |
Close Conversation
Mark a conversation as resolved/closed. Endpoint:Conversation Fields
| Field | Type | Description |
|---|---|---|
id | string | Unique conversation ID |
customer_id | string | Associated customer ID |
customer_name | string | Customer’s name |
customer_email | string | Customer’s email |
customer_phone | string | Customer’s phone number |
channel | string | Communication channel |
status | string | open, closed, resolved |
subject | string | Conversation title/subject |
last_message | string | Most recent message |
timestamp | ISO 8601 | When conversation started |
unread | boolean | Has unread messages? |
tags | array | Customer tags |
messages | array | Message thread |
Examples
List All SMS Conversations
Get Unread Conversations
Create and Send Message
Error Responses
400 - Bad Request:Next Steps
Questions? Email support@agentclara.ai