Sending · POST
sendFileByUrl
Send an image, PDF, video, audio file or document from a public URL, with an optional caption.
Endpoint
POST https://flowapi.pro/waInstance{idInstance}/sendFileByUrl/{apiTokenInstance}Request body
{
"chatId": "972501234567@c.us",
"urlFile": "https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf",
"fileName": "dummy.pdf",
"caption": ""
}Example
curl -X POST "https://flowapi.pro/waInstance{idInstance}/sendFileByUrl/{apiTokenInstance}" \
-H "Content-Type: application/json" \
-d '{"chatId":"972501234567@c.us","urlFile":"https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf","fileName":"dummy.pdf","caption":""}'Response
{
"idMessage": "3EB0C1A7F2D4E8B91C"
}Notes
- fileName must include the extension; the type is detected from it.
- The URL must be reachable from the internet without login.
More sending methods
Try it on your own number
7 days free, no credit card. Then $10 per number per month.