API Reference
Messages API
Send messages and retrieve message history from conversations.
Endpoints
GET
/v1/conversations/:id/messagesList messages in a conversation
POST
/v1/conversations/:id/messagesSend a message in a conversation
Send Message
POST
/v1/conversations/:id/messages{
"content": "Your order has been shipped!",
"type": "text",
"sender": "agent"
}Message Types
Text Message
{
"type": "text",
"content": "Hello! How can I help?"
}Image Message
{
"type": "image",
"content": "https://cdn.example.com/image.jpg",
"caption": "Product photo"
}Button Message
{
"type": "buttons",
"content": "How would you like to proceed?",
"buttons": [
{ "id": "track", "text": "Track Order" },
{ "id": "return", "text": "Start Return" },
{ "id": "agent", "text": "Talk to Human" }
]
}Message Object
idstring - Unique identifierconversation_idstring - Parent conversationtypestring - text, image, buttons, etc.contentstring - Message contentsenderstring - customer or agenttimestampstring - ISO 8601 timestampmetadataobject - Additional data