# 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](https://docs.cartat.net/cartat-api/get-started) |

#### 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 %}
