---
title: "Upload binary content"
method: POST
path: "/email/1/content"
tags: ["channels", "email", "email-message-sending"]
---

# Upload binary content

`POST /email/1/content`

## 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/email/1/content`
- 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

This method allows you to upload binary content that you can reference when sending Email messages.

## Headers

- `X-Content-Id` string, required
- `X-Media-Type` string, required
- `X-Validity-Period-Minutes` string

## Request body `application/octet-stream`

- string, binary

## Response `200`

Successful Request

- 34438aa163eb13a2a06ad96ae98170e41cc2ee8902e8b7655aba73ceb0bb23f1UploadBinaryResult
  - `uploadedContentId` string: The ID that uniquely identifies the uploaded content.

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `429`: Too Many Requests
- `500`: Internal Server Error

---

[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)
