POST /sendVoiceVoice messages accept OGG/Opus or convert=true hint.Client UX should:
1.
record locally and offer playback,
2.
convert to acceptable format client-side when possible, or set convert=true
3.
and show conversion progress.
Validate file extension and mimetype early; otherwise surface bad_format guidance instructing the user to re-record or enable conversion.For low-latency UX, upload and immediately show a “sending” waveform; update with success/failure.
Request
Query Params
Request Code Samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl--location-g--request POST 'https://wawp.net/wp-json/awp/v1/sendVoice?instance_id=123456789&access_token=123456789&chatId=447441429009&convert=true&file[url]=https://file-examples.com/storage/fe2ae8fbf56883b019a7d6a/2017/11/file_example_OOG_1MG.ogg&file[filename]=note.ogg&file[mimetype]=audio/ogg; codecs=opus'