Skip to main content
POST
Send an image

Description

This endpoint allows you to send images to individual contacts or groups on WhatsApp. The image must be sent in base64 format. Optionally, you can add a caption to the image.

Body

Body Parameters

Status Codes

  • 200 - Image sent successfully
  • 400 - Invalid parameters or image corrupted
  • 401 - Unauthorized session
  • 404 - Session not found
  • 413 - Image too large

Usage Example

Authorizations

apikey
string
header
required

Your Wappfy API key (get it at dash.wappfy.com.br)

Body

application/json
chatId
string
required

Chat ID (WhatsApp JID)

Example:

"5511999999999@c.us"

file
object
required

Image file (remote URL or base64 data)

session
string
required

Session name (instanceName)

Example:

"my-session"

reply_to
string

Message ID you want to reply to

Example:

null

caption
string

Caption/text that accompanies the image

Response

201 - application/json

The response is of type object.