Skip to main content

Endpoint

Sandbox base URL: https://testqa.cpaas.globeteleservices.com Replace {Sender Hash} with the registered sender hash from the WhatsApp channel’s Numbers section in the CPaaS+ Portal.

Headers

Include the following headers in the request:
Generate the Bearer token from the API tab in the CPaaS+ Portal.

Request parameters

Request example

Replace the example recipient number and media ID with values for your integration. Send the JSON as the request body and include the required headers.

Before sending an audio message

  1. Upload the audio file through the Media Upload API.
  2. Capture the returned media ID.
  3. Set audio.id to that media ID in the message request.
  4. Send the request to the endpoint using your registered sender hash and Bearer token.

Responses and errors

See Common HTTP Status Codes for the documented status meanings and possible causes. A successful HTTP response indicates that the request was accepted for processing; it does not, by itself, confirm that the recipient received the audio message.