Actions46
- Account Actions
- Group Actions
- Journal Actions
- Queue Actions
- Receiving Actions
- Sending Actions
- Service Actions
- Status Actions
Sending → Send File By URL
AI-generatedSummary
Send File By URL operation sends a file from a remote URL to a specified WhatsApp chat using the Green‑API sendFileByUrl endpoint.
Inputs
- chatId (required) — WhatsApp chat identifier (e.g., 79000000000@c.us).
- urlFile (required) — Direct URL to the file that should be sent.
- fileName (required) — File name with extension to be shown in the chat.
- caption — Optional caption accompanying the file.
- quotedMessageId — Optional ID of a message to quote/reply to.
Output shape
object
Returns the JSON response from the Green‑API sendFileByUrl request, containing details about the sent message.
Examples
Example 1: Send an image file by URL to a chat
chatId=1234567890@c.us, urlFile=https://example.com/pic.jpg, fileName=pic.jpg, caption=Hello world