# Send Media

**if you need to Send  Media using Cartat WhatsApp API You can use this endpoint.**

## To Send Media Message

<mark style="color:green;">`POST`</mark> `https://api.cartat.net/message/media`

#### Headers

| Name                                            | Type             | Description                                                       |
| ----------------------------------------------- | ---------------- | ----------------------------------------------------------------- |
| Accept<mark style="color:red;">\*</mark>        | application/json |                                                                   |
| Content-Type<mark style="color:red;">\*</mark>  | application/json |                                                                   |
| Authorization<mark style="color:red;">\*</mark> | Bearer {{token}} | you can find your access token [here](/cartat-api/get-started.md) |

#### Request Body

| Name                                         | Type                                                              | Description                                                                                                                                                                                                                                                                                                                                                                                                               |
| -------------------------------------------- | ----------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| number<mark style="color:red;">\*</mark>     | 9665000000                                                        | Receiver number starting with country code                                                                                                                                                                                                                                                                                                                                                                                |
| media\_url<mark style="color:red;">\*</mark> | <https://file-example.s3-accelerate.amazonaws.com/video/test.mp4> | <p><strong>the media URL</strong></p><p>Accept: <mark style="color:blue;"><code>MP4</code></mark>, <mark style="color:blue;"><code>MP3</code></mark>, <mark style="color:blue;"><code>PDF</code></mark>, <mark style="color:blue;"><code>PNG</code></mark>,<mark style="color:blue;"><code>GIF</code></mark>, <mark style="color:blue;"><code>JPEG</code></mark>, <mark style="color:blue;"><code>Excel</code></mark></p> |
| caption                                      | any caption                                                       | any caption text                                                                                                                                                                                                                                                                                                                                                                                                          |

{% tabs %}
{% tab title="200: OK " %}

```json
{
    "status": "success",
    "id": "3EB0E34A1DEBD96181ED41",
    "from": "9665000000",
    "to": "9665000000",
    "type": "video",
    "body": "https://file-example.s3-accelerate.amazonaws.com/video/test.mp4"
}
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.cartat.net/cartat-api/whatsapp-api/messages/send-media.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
