Description
This endpoint allows you to send an audio message via WhatsApp. You can send audio files by providing a media ID (for uploaded media) or a link to hosted media.
Your API key for authentication.
Your workspace ID for authentication.
Body
The phone number of the recipient in international format (e.g., “919876543210”).
The unique identifier associated with the sender’s phone number given by WhatsApp.
Audio message object. Media ID if using uploaded media (previously uploaded via media upload API).
URL of the hosted audio file if using hosted media. The audio file must be publicly accessible.
Optional URL to receive post-back notifications about the message status.
Optional data to include in post-back notifications.
Response
Indicates whether the call was successful. true if successful, false if not.
Success or error response message.
{
"status" : true ,
"message" : "WhatsApp audio message sent successfully"
}