Request test
Phone with international format e.g. +1408XXXXXXX , or chatID for contact or group
Request URL
https://api.ultramsg.com/{{instance_id}}/messages/document
Request body
Token *Required
to *Required

Phone with international format e.g. +14155552671
or
chatID for contact or group e.g [email protected] or [email protected]

filename *Required

File name, for example 1.jpg or Hello.pdf
filename Max length : 255 char .

document *Required

HTTP link file or base64-encoded file

Supported most extensions like ( zip , xlsx , csv , txt , pptx , docx ....etc ) .

Max file size : 100MB .

Max Base64 length : 2,000,000 More info

example links :

https://file-example.s3-accelerate.amazonaws.com/documents/cv.pdf

referenceId *Required

Your custom reference ID for this message

nocache *Required

default false
false : use a previously uploaded file instead of uploading it with each request
true : uploading it each request


Request samples
Note : don't forget to URL encode your query params like base64 or utf-8
WhatsApp Chat WhatsApp Chat Hello, how can I help you ?