Authentication
Your API key for authentication
Request Body
Public URL of the document file
Message Type (e.g., document)
Document caption (optional)
Message ID to reply to (optional)
Custom reference ID (optional)
curl -X POST "https://backend.conversales.in/api/v1/sendDocumentMessage" \
-H "X-API-Key: 3kJ9mP2nQ8rT5vW7xY1zA4bC6dE8fG0hI" \
-H "Content-Type: application/json" \
-d '{
"to": "1234567890",
"mediaUrl": "https://example.com/document.pdf",
"message": "Please find the document attached",
"type":"document"
}'
{
"statusCode": 200,
"message": "Document sent successfully",
"data": {
"messageId": "wamid.HBgNMTIzNDU2Nzg5MA==",
"status": "sent",
"to": "1234567890"
}
}
Supported formats: PDF, DOC, DOCX, XLS, XLSX, PPT, PPTX, TXT. Max size: 100MB.