Send A Document File To Phone Number Or Group
Request test
Request URL
https://connectivity.pk/api/messages/document?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 |
|
filename
*Required
|
File name, for example 1.jpg or Hello.pdf
filename Max length: 255 char. |
|
document
|
HTTP link file or base64-encoded file
Supported most extensions like ( zip , xlsx , csv , txt , pptx , docx ....etc ). Max file size: 10MB. Max Base64 length: 10,000,000 Example link: https://file-example.s3-accelerate.amazonaws.com/documents/cv.pdf Contact Us |
|
document_file
|
Use this as an alternative to document URL.
Allowed: pdf, doc, docx, xls, xlsx, ppt, pptx, txt, csv, zip, rar. Max file size: 10MB. |
|
caption
|
The text under the file.
Data type: text, UTF-8 or UTF-16 string with emoji. Max length: 1024 char. |
|
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 |
|
mentions
|
Use this feature to mention users in a group.
Contact Us |
Response
No response yet.
Request samples
Note:
don't forget to URL encode your query params like
base64 or utf-8