GREEN-API for WhatsApp icon

GREEN-API for WhatsApp

Send and receive WhatsApp messages using Green-API.

Sending → Send File By URL

AI-generated

Summary

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

Links

Discussion