---
title: "Upload file"
method: POST
path: "/voice/ivr/1/uploads"
tags: ["channels", "voice", "interactive-voice-response", "ivr-uploaded-files"]
deprecated: true
---

# Upload file

`POST /voice/ivr/1/uploads`

## 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/ivr/1/uploads`
- 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.**

Upload an audio file to be played in IVR calls. The file will be removed if it is not used for 90 days. Supported formats: `.wav` and `.mp3`.

## Request body `multipart/form-data`

- object
  - `file` string, binary, required

## Response `200`

Success

- 287f18f04e9f129a7bc94ed3ae48e2480e2673b8fdf041ab5125fde9674634b8File: The list of the results for this page.
  - `id` string: File ID.
  - `name` string, required: File name.
  - `fileFormat` string, 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)
