curl -X POST https://api.livchat.ai/v1/messages/send/image \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"phone": "5511999999999",
"image": "https://example.com/image.jpg",
"caption": "Check this out!"
}'
const response = await fetch("https://api.livchat.ai/v1/messages/send/image", {
method: "POST",
headers: {
Authorization: "Bearer YOUR_API_KEY",
"Content-Type": "application/json",
},
body: JSON.stringify({
phone: "5511999999999",
image: "https://example.com/image.jpg",
caption: "Check this out!",
}),
});
import requests
response = requests.post(
"https://api.livchat.ai/v1/messages/send/image",
headers={
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json",
},
json={
"phone": "5511999999999",
"image": "https://example.com/image.jpg",
"caption": "Check this out!",
},
)
{
"success": true,
"code": 200,
"data": {
"details": "Sent",
"id": "3EB04A45DCA355D01DB68C"
}
}
Messages
Send Image
Send an image to a WhatsApp number
POST
/
v1
/
messages
/
send
/
image
curl -X POST https://api.livchat.ai/v1/messages/send/image \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"phone": "5511999999999",
"image": "https://example.com/image.jpg",
"caption": "Check this out!"
}'
const response = await fetch("https://api.livchat.ai/v1/messages/send/image", {
method: "POST",
headers: {
Authorization: "Bearer YOUR_API_KEY",
"Content-Type": "application/json",
},
body: JSON.stringify({
phone: "5511999999999",
image: "https://example.com/image.jpg",
caption: "Check this out!",
}),
});
import requests
response = requests.post(
"https://api.livchat.ai/v1/messages/send/image",
headers={
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json",
},
json={
"phone": "5511999999999",
"image": "https://example.com/image.jpg",
"caption": "Check this out!",
},
)
{
"success": true,
"code": 200,
"data": {
"details": "Sent",
"id": "3EB04A45DCA355D01DB68C"
}
}
Send an image with optional caption.
Request Body
string
required
Recipient phone number in international format
string
required
Image URL or base64-encoded data in data URI format (
data:image/jpeg;base64,...)string
Optional caption for the image
string
Optional message ID to reply to
Supported Formats
- JPEG / JPG
- PNG
- GIF
- WEBP
Maximum file size: 16MB
curl -X POST https://api.livchat.ai/v1/messages/send/image \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"phone": "5511999999999",
"image": "https://example.com/image.jpg",
"caption": "Check this out!"
}'
const response = await fetch("https://api.livchat.ai/v1/messages/send/image", {
method: "POST",
headers: {
Authorization: "Bearer YOUR_API_KEY",
"Content-Type": "application/json",
},
body: JSON.stringify({
phone: "5511999999999",
image: "https://example.com/image.jpg",
caption: "Check this out!",
}),
});
import requests
response = requests.post(
"https://api.livchat.ai/v1/messages/send/image",
headers={
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json",
},
json={
"phone": "5511999999999",
"image": "https://example.com/image.jpg",
"caption": "Check this out!",
},
)
{
"success": true,
"code": 200,
"data": {
"details": "Sent",
"id": "3EB04A45DCA355D01DB68C"
}
}
⌘I