Skip to main content
POST
https://backend.conversales.in
/
api
/
v1
/
sendAudioMessage
curl -X POST "https://backend.conversales.in/api/v1/sendAudioMessage" \
  -H "X-API-Key: 3kJ9mP2nQ8rT5vW7xY1zA4bC6dE8fG0hI" \
  -H "Content-Type: application/json" \
  -d '{
    "to": "1234567890",
    "mediaUrl": "https://example.com/audio.mp3",
    "type":"audio"
  }'
{
  "statusCode": 200,
  "message": "Audio sent successfully",
  "data": {
    "messageId": "wamid.HBgNMTIzNDU2Nzg5MA==",
    "status": "sent",
    "to": "1234567890"
  }
}

Authentication

X-API-Key
string
required
Your API key for authentication

Request Body

to
string
required
Recipient phone number
mediaUrl
string
required
Public URL of the audio file
type
string
required
Message Type (e.g., audio)
replyToMessageId
string
Message ID to reply to (optional)
clientId
string
Custom reference ID (optional)
curl -X POST "https://backend.conversales.in/api/v1/sendAudioMessage" \
  -H "X-API-Key: 3kJ9mP2nQ8rT5vW7xY1zA4bC6dE8fG0hI" \
  -H "Content-Type: application/json" \
  -d '{
    "to": "1234567890",
    "mediaUrl": "https://example.com/audio.mp3",
    "type":"audio"
  }'
{
  "statusCode": 200,
  "message": "Audio sent successfully",
  "data": {
    "messageId": "wamid.HBgNMTIzNDU2Nzg5MA==",
    "status": "sent",
    "to": "1234567890"
  }
}