Skip to content

Messages API ​

Send and receive messages across channels.

Endpoints ​

List Messages ​

http
GET /api/v1/conversations/:conversationId/messages

Query Parameters:

ParameterTypeDescription
pagenumberPage number
limitnumberPer page (default: 50)
beforestringMessages before this ID
afterstringMessages after this ID

Send Message ​

http
POST /api/v1/messages/send
json
{
  "conversationId": "conv-uuid",
  "content": "Hello! How can I help you?",
  "type": "text"
}

Send File ​

http
POST /api/v1/messages/send-file
Content-Type: multipart/form-data
FieldTypeDescription
conversationIdstringConversation ID
filefileFile to send
captionstringOptional file caption

Message Types ​

TypeDescription
textText message
imageImage file
documentDocument file
audioAudio/voice message
videoVideo file
templateWhatsApp template message

DOLU.ai - AI-Powered CRM Platform