---
title: "Send a media message (Evolution API)"
method: POST
path: "/message/sendMedia/{instance}"
tags: ["Message"]
---

# Send a media message (Evolution API)

`POST /message/sendMedia/{instance}`

Sends a media file (image or document) based on the mediatype field

## Path parameters

- `instance` string, required

## Request body

- DtoSendMediaRequest
  - `caption` string
  - `delay` integer
  - `fileName` string
  - `media` string — Media is the URL of the file
  - `mediatype` string
  - `mentioned` string[]
  - `mentionsEveryOne` boolean
  - `mimetype` string
  - `number` string
  - `quoted` DtoMessageRequestQuoted
    - `key` DtoQuotedKey
      - `id` string
    - `message` DtoQuotedMessage
      - `conversation` string

## Response `200`

OK

- DtoSendDocumentResponse
  - `contextInfo` unknown
  - `instanceId` string
  - `key` DtoMessageResponseKey
    - `fromMe` boolean
    - `id` string
    - `remoteJid` string
  - `message` DtoSendDocumentResponseData
    - `base64` string
  - `messageTimestamp` integer
  - `messageType` string
  - `pushName` string
  - `source` string
  - `status` string

## Other responses

- `400` — Bad Request
- `422` — Unprocessable Entity
- `500` — Internal Server Error

---

[API](https://skmtc.net/verbeux-ai/apis/whatsmiau-api.md) · [All operations](https://skmtc.net/verbeux-ai/apis/whatsmiau-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/verbeux-ai/whatsmiau-api/versions/5af3cb49985a/schema)
