Messages
Send Voice Note
POST
/api/v1/chat/send/voiceSend 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.
| Name | Type | In | Required | Description |
|---|---|---|---|---|
| Phone | string | form | Yes | Who gets it: phone number with country code, or a group id ending in @g.us. |
| Audio | file | form | Yes | The recording file. Up to 10 MB. |
| Seconds | integer | form | No | Length of the recording in seconds. |
| Id | string | form | No | 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]"