Send A Audio File To Phone Number Or Group
Request test
Request URL
https://connectivity.pk/api/messages/audio?instance_id={{instance_id}}&token={{token}}
Request body
|
token
*Required
|
Your API Authorization code
|
|
to
*Required
|
Phone number with international format e.g. +14155552671
or chatID for contact or group e.g 14155552671@c.us or 14155552671-441234567890@g.us |
|
audio
|
HTTP link audio or base64-encoded file
Supported extensions ( mp3 , aac , ogg ). Max file size : 10MB. Max Base64 length : 10,000,000 Example link: https://file-example.s3-accelerate.amazonaws.com/audio/2.mp3 Contact Us |
|
audio_file
|
Use this as an alternative to audio URL.
Allowed: mp3, aac, ogg. Max file size: 10MB. |
|
priority
|
Priority controls order and delay.
Order: priority = 0 : High priority = 1-9 : Normal priority = 10+ : Low Delay: If priority is provided, delay = priority seconds (0-120). If priority is missing, delay comes from instance_settings: - queued <= 10 -> send_delay - queued > 10 -> send_delay_max. Contact Us |
|
scheduled_at
|
Optional scheduled send time.
Easy formats (server timezone): - 2026-02-02 03:30 PM - 02-02-2026 15:30 - 2026/02/02 15:30 If in the past, it sends immediately. |
|
referenceId
|
Your custom reference ID for this message
Contact Us |
|
nocache
|
Default: false
false: use a previously uploaded file instead of uploading it with each request true : upload it with each request Contact Us |
|
msgId
|
Reply to a specific message.
Contact Us |
Response
No response yet.
Request samples
Note:
don't forget to URL encode your query params like
base64 or utf-8