---
title: "Upload Zalo media"
method: POST
path: "/zalo/1/sender/{sender}/media"
tags: ["channels", "zalo", "zalo-service-management", "zalo-media-management"]
---

# Upload Zalo media

`POST /zalo/1/sender/{sender}/media`

## Request

- Base URL: `https://api.infobip.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.infobip.com/zalo/1/sender/{sender}/media`
- Auth: one of:
  - OAuth 2
    - Client credentials
    - Token URL: `https://api.infobip.com/auth/1/oauth2/token`
  - API key in header `Authorization`
  - API key in header `Authorization`
  - HTTP basic

Uploads an image file to Zalo and returns the media ID that can be referenced in template content.

## Path parameters

- `sender` string, required: Sender ID.

## Request body `multipart/form-data`

- object
  - `file` string, binary, required: Image file to upload. Supported formats: JPG and PNG.

## Response `201`

Media uploaded

- 6a8bbdacebad88e7e0de8bdfd30e29e04d114b9f00175a0482b9e26b742d85d5MediaUploadResponse
  - `mediaId` string, required: Identifier of the uploaded media returned by Zalo.

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `429`: Too Many Requests
- `500`: Internal Server Error
- `502`: Bad Gateway

---

[API](https://skmtc.dev/infobip/apis/infobip-openapi-specification.md) - [All operations](https://skmtc.dev/infobip/apis/infobip-openapi-specification/llms.txt) - [OpenAPI document](https://skmtc.dev/infobip/apis/infobip-openapi-specification/revisions/9dcbbaf902de?raw)
