Sendexa LogoDocs

Start Conversation

Initialize a new chat session between a customer and your support team.

POST
/v1/chat/conversations

Request Body

JSON
{
"customerId": "cust_987654",
"initialMessage": "Hello, I have a question about my recent order.",
"metadata": {
"source": "web_widget",
"page": "/pricing"
}
}

Response

JSON
{
"success": true,
"data": {
"conversationId": "conv_abc123",
"status": "pending",
"createdAt": "2024-01-15T10:30:00Z"
}
}

Try It Yourself

POST
https://api.sendexa.co/v1/chat/conversations