Conversations
List company conversations. Use action=“list” with optional filters: lead_id, visitor_id, user_id, agent_id, status (conversation status e.g. active), channel (e.g. whatsapp, email, chat), custom_data_status (value of custom_data.status).
Input Schema
| Parameter | Type | Description |
|---|---|---|
| action | string | Action to perform (list only). Enum: list |
| lead_id | string | Filter by lead UUID |
| visitor_id | string | Filter by visitor UUID |
| user_id | string | Filter by user UUID |
| agent_id | string | Filter by agent UUID |
| status | string | Filter by conversation status (e.g. active, closed) |
| channel | string | Filter by channel (e.g. whatsapp, email, chat) |
| custom_data_status | string | Filter by custom_data.status (JSONB key) |
| limit | number | Max results (default 10) |
| offset | number | Pagination offset |
REST Endpoint
GET /api/agents/customerSupport/conversationsAll parameters are passed as query string. The site_id param is required.
GET /api/agents/customerSupport/conversations?site_id=YOUR_SITE_ID&channel=whatsapp&status=active&limit=20
Authorization: Bearer YOUR_API_KEYResponse:
{
"success": true,
"data": {
"conversations": [...],
"pagination": { "total": 42, "page": 1, "limit": 20, "pages": 3 }
}
}Last updated on