orvachat

Messages

Send Voice Note

POST/api/v1/chat/send/voice

Send a voice note. Multipart form fields: Phone, Audio (the file), optional Seconds and Id. Up to 10 MB.

Send this request as multipart/form-data, not JSON.

Parameters

  • Phonestringin formRequired

    Who gets it: phone number with country code, or a group id ending in @g.us.

  • Audiofilein formRequired

    The recording file. Up to 10 MB.

  • Secondsintegerin formOptional

    Length of the recording in seconds.

  • Idstringin formOptional

    Your own id for the message.

Code Examples

cURL
curl -X POST "https://orvachat.com/api/v1/chat/send/voice" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -F "Phone=923001234567" \
  -F "[email protected]"