channels
voice
file-management

Upload audio file

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.

post/calls/1/files

Request

  • Base URL
    https://api.infobip.com (the document declares no server; this is the origin it was published from)
  • Auth
    • API key in header Authorization
    • or API key in header Authorization
    • or HTTP basic
    • or OAuth 2
      Client credentials
      Token URL: https://api.infobip.com/auth/1/oauth2/token

Request body multipart/form-data

filestring binary required

Response

Success

idstring

File ID.

namestring required

File name.

fileFormat'MP3' | 'WAV' | 'MP4' required

File format.

sizeinteger

File size in bytes.

creationTimestring date-time

File creation time.

expirationTimestring date-time

File expiration time.

durationinteger

File duration in seconds.

Example response

{
  "id": "218eceba-c044-430d-9f26-8f1a7f0g2d03",
  "name": "Example file",
  "fileFormat": "WAV",
  "size": 292190,
  "duration": 3
}

Changes

No recorded changes to this operation across all 1 revision of this API.