Send A Document File To Phone Number Or Group

Request test
to
filename
document
document_file
caption
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.
Response
No response yet.
Request samples