1. Whatsapp API
Hatif
  • Rate Limiting
  • Account API
    • Service Login
      POST
  • Channels API
    • Get Channels
      GET
  • Support API
    • Upload Image, Video, or PDF
      POST
    • Upload Audio File
      POST
  • Whatsapp API
    • Send Text
      POST
    • Send Template
      POST
    • Send Image
      POST
    • Send Audio
      POST
    • Send Video
      POST
    • Send File
      POST
    • List Templates (Service Account)
      GET
  • Contact
    • Set Property Value on Contact
      PUT
    • Search Contacts
      POST
    • Delete Property Value on Contact
      DELETE
    • Create Contact
      POST
    • Update Contact
      PUT
    • Get Contacts
      GET
    • Get Contact By Id
      GET
    • Create Bulk Contacts vCards
      POST
    • Contacts History
      GET
  • Contact Properties
    • List Contact Properties
      GET
    • Contact Properties Statistics
      POST
    • Create Contact Property
      POST
    • Update Contact Property
      PUT
    • Delete Contact Property
      DELETE
  • Workspace API
    • Get Workspace Users
  • Conversations API
    • Get Conversation Timeline
    • List Conversations
    • Create Conversation
    • Assign Conversation
    • Get Conversation
  • Outbound IVR API
    • Create Outbound IVR
  • Tags API
    • Tag a conversation
    • Create Tag
    • Delete Tag
    • Update Tag
    • List Tags
  • Conversations - Service Account
  • Call Webhook
  • WhatsApp Message Webhook
  • Schemas
    • Call Webhook
    • WhatsApp Message Webhook
    • ServiceAccountTemplateDto
    • ConversationDto
    • CreateTagDto
    • ServiceAccountTemplateParameterDto
    • ChannelConversationDto
    • UpdateTagDto
    • TemplateParameterDto
    • TagDto
    • ParameterValueDto
    • ConversationTimelineDto
    • PagedResultOfTagDto
    • ChannelNotFoundError
    • AiSummaryDto
    • ReplyInfoDto
    • InternalThreadDto
    • LocationMessageDto
    • AssignationInfoDto
    • PagedResultOfConversationDto
    • PagedResultOfConversationTimelineDto
  1. Whatsapp API

Send Audio

POST
/v1/whatsapp/service-account/sendAudio
Sends a WhatsApp audio/voice-note message from a workspace channel to a destination number.
Auth: OAuth2 client-credentials via /connect/token (policy VoxaAPIScope), same as all service-account endpoints.
Accepted audio formats:
Native (sent as-is): audio/aac, audio/amr, audio/mpeg (.mp3), audio/mp4 (.m4a), audio/ogg
Auto-converted before delivery: audio/wav, audio/x-wav, audio/webm
Size limit: 16 MB (Meta's WhatsApp audio limit).

Request

Header Params

Body Params application/jsonRequired

Examples

Responses

🟢200OK
application/json
The audio message has been accepted and queued for delivery.
Bodyapplication/json

🟢200OK
🟠400Bad Request
🟠401Unauthorized
🟠403Forbidden
🟠404Record Not Found
🟠408
🔴500Server Error
Request Request Example
Shell
JavaScript
Java
Swift
curl --location 'https://api.voxa.sa/v1/whatsapp/service-account/sendAudio' \
--header 'Authorization: Bearer eyJh......' \
--header 'content-type: application/json' \
--data '{
    "channelId": "3a197.........",
    "audioUrl": "https://example.com/audio.mp3",
    "toNumber": "9665xxxxxxxx"
}'
Response Response Example
200 - Official/Dialog360 channel
{
    "contactId": "3a1ca9.........",
    "status": "Sent",
    "message": "Message sent",
    "conversationEventId": "3a1ca9.........",
    "messageId": null
}
Modified at 2026-07-06 16:14:08
Previous
Send Image
Next
Send Video
Built with