Send Image Message
In this page we show you how to send a message containing an image.
Last updated
In this page we show you how to send a message containing an image.
Last updated
An image conversation type refers to a message that includes an image, and optionally, text and/or actions.
Arguments/Parameters are additional pieces of information that you include in the request to customise the behavior of the API or to filter the results returned by the API.
In this table below you'll see the Arguments for this request.
Arguments | Explaination |
---|---|
Both examples demonstrate how to construct a request to send an image message to a WhatsApp user using the specified API endpoint.
The placeholders indicate that certain values, such as image URLs and organization/app user IDs, will be provided dynamically or replaced with actual values when making the request.
The provided YAML configuration below defines an API specification using the OpenAPI (formerly known as Swagger) format.
mediaURL *required
Provides the URL where the file content is hosted or located.
text (optional)
The text content of the message. Maximum length of 4096 characters.
altText (optional)
A description of the image that's optional, provided mainly for accessibility reasons. By default, it'll be saved using the image file's name.
actions (optional)
An array of actions related to the message.
API request to send an image
"image"
"https://example.org/test.png"
"Here is an image attached to the message"
Successfully Replied.