> For the complete documentation index, see [llms.txt](https://docs.mburger.cloud/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mburger.cloud/api-docs-1/media/upload-media.md).

# Upload Media

{% hint style="info" %}
How to upload a media
{% endhint %}

{% tabs %}
{% tab title="Request" %}
`POST https://mburger.cloud/api/media`

```bash
curl https://mburger.cloud/api/media
-H "Accept: application/json" 
-H "X-MBurger-Token: <token>" 
-H "X-MBurger-Version: 3"
```

#### &#x20;Parameters

| Name         | Type  | Required | Description                                 |
| ------------ | ----- | -------- | ------------------------------------------- |
| media        | array | Yes      | An array of media to upload to the project. |
| {% endtab %} |       |          |                                             |

{% tab title="Response" %}
When successful, a HTTP 200 and JSON like this is returned:

```
{
  "status_code": 0,
  0 => {
      "id": 2
      "uuid": "uuid-of-the-media"
      "url": "http://example.test/storage/1/image.jpeg"
      "size": 695
      "file_name": "image.jpeg"
      "mime_type": "image/jpeg"
    }
}
```

{% endtab %}
{% endtabs %}
