Wasapress icon

Wasapress

Interact with Wasapress WhatsApp Marketing API

Send Audio (PTT)

AI-generated

Summary

Send a voice message (PTT) audio file to a specified WhatsApp number.

Inputs

  • Number (required) — The WhatsApp number with country code (no + or spaces) to send the audio message to.
  • File URL (required) — The URL of the audio file in PTT/voice message format to be sent.
  • Pin Time — Duration in seconds to pin the sent message; leave blank to not pin the message.
  • View Once — Flag indicating whether the audio can only be viewed once by the recipient.

Output shape

a single JSON object containing the API response including status code and body data

The output includes all returned fields from the Wasapress API response body plus an added 'statusCode' property. Errors are included in the response without throwing exceptions, as HTTP status errors are ignored.

Discussion