---
title: "Upload audio file"
method: POST
path: "/calls/1/files"
tags: ["channels", "voice", "file-management"]
---

# Upload audio file

`POST /calls/1/files`

## 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/calls/1/files`
- Auth: one of:
  - API key in header `Authorization`
  - API key in header `Authorization`
  - HTTP basic
  - OAuth 2
    - Client credentials
    - Token URL: `https://api.infobip.com/auth/1/oauth2/token`

Upload an audio file. Uploaded files can be played on calls, dialogs or conferences. The file will be removed if it is not used for 90 days.

## Request body `multipart/form-data`

- object
  - `file` string, binary, required

## Response `200`

Success

- 4527871876f1b326359cd9e5dcf777f0ecc3c5fde89b1e88f0c154b298b67611File
  - `id` string: File ID.
  - `name` string, required: File name.
  - `fileFormat` 'MP3' | 'WAV' | 'MP4', required: File format.
  - `size` integer: File size in bytes.
  - `creationTime` string, date-time: File creation time.
  - `expirationTime` string, date-time: File expiration time.
  - `duration` integer: File duration in seconds.

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