---
title: "Send Media"
method: POST
path: "/message/sendMedia/{instance}"
tags: ["Message Controller"]
---

# Send Media

`POST /message/sendMedia/{instance}`

## Request

- Base URL: `https://evolution-example`
- URL: `https://evolution-example/message/sendMedia/{instance}`
- Auth: API key in header `apikey`

Send media message

## Path parameters

- `instance` string, required

## Request body

- object
  - `number` string, required: Number to receive the message (with country code)
  - `mediatype` string, required: Image, video or document
  - `mimetype` string, required: image/png
  - `caption` string, required: Teste de caption
  - `media` string, required: Url or base64
  - `fileName` string, required: Image.png
  - `delay` integer: Presence time in milliseconds before sending message
  - `linkPreview` boolean: Shows a preview of the target website if there's a link within the message
  - `mentionsEveryOne` boolean: Mentioned everyone when the message send
  - `mentioned` string[]: Numbers to mention
  - `quoted` object
    - `key` object
      - `id` string: Quoted message ID
    - `message` object
      - `conversation` string: Quoted message content

## Response `201`

Created

- object
  - `key` object: The key of the message, which identifies the message in the chat.
    - `remoteJid` string: The remote Jid.
    - `fromMe` boolean: Indicates whether the message was sent by the user.
    - `id` string: The ID of the message.
  - `message` object: The message content, which may include various types of messages like text, images, etc.
    - `imageMessage` object: Details of the image message.
      - `url` string: The URL of the image.
      - `mimetype` string: The MIME type of the image.
      - `caption` string: The caption text of the image.
      - `fileSha256` string: The SHA-256 hash of the image file.
      - `fileLength` string: The length of the image file.
      - `height` integer: The height of the image.
      - `width` integer: The width of the image.
      - `mediaKey` string: The media key of the image.
      - `fileEncSha256` string: The SHA-256 hash of the encrypted image file.
      - `directPath` string: The direct path to the image.
      - `mediaKeyTimestamp` string: The timestamp of the media key.
      - `jpegThumbnail` string: The JPEG thumbnail of the image.
      - `contextInfo` object: Additional context information.
  - `messageTimestamp` string: The timestamp of the message, represented as a string.
  - `status` string: The status of the message, such as sent, received, or pending.

## Changes

- **2024-11-25** (v2) `f4f5817334cd`: 1 warning, 5 info
  - removed the request property `options`
  - added the new optional request property `delay`
  - added the new optional request property `linkPreview`
  - added the new optional request property `mentioned`
  - …2 more
- **2024-11-25** (v2) `3d1ab1444bc9`: 5 breaking, 2 warning, 4 info
  - added the new required request property `caption`
  - added the new required request property `fileName`
  - added the new required request property `media`
  - added the new required request property `mediatype`
  - …7 more
- **2024-11-25** (v2) `c153448703e5`: 3 breaking, 6 info
  - added the new required request property `mediaMessage`
  - added the new required request property `number`
  - removed the success response with the status `200`
  - api operation id `sendMedia` was added
  - …5 more
- **2024-09-09** (v2) `0c4620ca5ed5`: 1 breaking, 10 warning, 5 info
  - removed the success response with the status `201`
  - removed the request property `caption`
  - removed the request property `delay`
  - removed the request property `fileName`
  - …12 more
- **2024-08-09** (v2) `996acfdb07ce`: 2 breaking, 2 warning, 7 info
  - added the new required request property `media`
  - added the new required request property `mediatype`
  - removed the request property `mediaMessage`
  - removed the request property `options`
  - …7 more

[Operation history](https://skmtc.dev/evolution-foundation/apis/evolution-api-3/changes/message/sendMedia/:instance/post.md)

---

[API](https://skmtc.dev/evolution-foundation/apis/evolution-api-3.md) - [All operations](https://skmtc.dev/evolution-foundation/apis/evolution-api-3/llms.txt) - [OpenAPI document](https://skmtc.dev/evolution-foundation/apis/evolution-api-3/revisions/153363ee7f38?raw)
