Skip to main content
POST
/
message
/
sendMedia
/
{instanceName}
Send Media Message
curl --request POST \
  --url https://api.flowmod.ai/message/sendMedia/{instanceName} \
  --header 'Content-Type: application/json' \
  --header 'apikey: <api-key>' \
  --data '
{
  "number": "5511999999999",
  "mediatype": "image",
  "media": "<string>",
  "caption": "Media caption",
  "fileName": "document.pdf",
  "mimetype": "image/jpeg"
}
'
{
  "status": 201,
  "error": false,
  "response": {
    "key": {
      "id": "<string>",
      "fromMe": true,
      "remoteJid": "<string>"
    },
    "message": {},
    "messageTimestamp": 123,
    "status": "PENDING",
    "pushName": "<string>"
  }
}

Authorizations

apikey
string
header
required

Organization-specific API key for Evolution API access

Path Parameters

instanceName
string
required

Body

application/json
number
string
required

Phone number or group ID

Example:

"5511999999999"

mediatype
enum<string>
required

Type of media being sent

Available options:
image,
video,
audio,
document
Example:

"image"

media
string
required

Base64 encoded media content or URL

caption
string

Optional caption for the media

Example:

"Media caption"

fileName
string

File name for documents

Example:

"document.pdf"

mimetype
string

MIME type of the media

Example:

"image/jpeg"

Response

200 - application/json

Media message sent successfully

status
number
Example:

201

error
boolean
Example:

false

response
object