---
title: "Upload audio files"
method: POST
path: "/voice/masking/1/upload"
tags: ["channels", "voice", "number-masking", "number-masking-configurations"]
deprecated: true
---

# Upload audio files

`POST /voice/masking/1/upload`

## 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/voice/masking/1/upload`
- 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

> **Deprecated.**

This method allows uploading audio files that can be used on the Infobip Voice platform. The method accepts either a URL or a Base64-encoded audio file in the request body. Providing both or neither will cause the request to be rejected. The file will be removed if it is not used for 90 days.

## Request body

- 322179e48f777ec7fa4be8d16ebc634ba865098b0ae9d513535e196958077f6cUploadBody
  - `url` string: URL of the audio file to upload. Max size is 4MB. The accepted file format is mp3.
  - `content` string, byte: Base64-encoded audio file content, provided instead of a URL. Max size is 4MB. The accepted file format is mp3.

## Response `200`

OK

- 322179e48f777ec7fa4be8d16ebc634ba865098b0ae9d513535e196958077f6cUploadResponse
  - `fileId` string: Id of the uploaded audio file.

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