Send a document file to phone number or group
Request test
Request URL
https://api.ultramsg.com/{{instance_id}}/messages/document
Request body
token
*Required
|
|
to
*Required
|
Phone number with international format e.g. +14155552671 |
filename
*Required
|
File name, for example 1.jpg or Hello.pdf |
document
*Required
|
HTTP link file or base64-encoded file |
caption
*Required
|
The text under the file . |
Request samples
Note : don't forget to URL encode your query params like base64 or utf-8