Call API
V1
V1
  • Getting Started
  • Response Code
    • HTTP Status Codes
    • Error Messages
    • Error Codes
  • Authentication
  • Endpoint
    • Upload Audio File
    • Get List audio file
    • Delete Audio File
    • IVR List
    • Numbers Collection
    • Make a Call With Dynamic Audio URL
    • Call Detail / Status
  • Kembali ke OCA API documentation
Powered by GitBook
On this page
Export as PDF
  1. Endpoint

Upload Audio File

PreviousAuthenticationNextGet List audio file

Last updated 7 months ago

Upload audio file is method to store your audio file in OCA’s cloud storage, you can retrieve your audio by url that oca provide after you successfully upload your audio.

HTTP Method : POST

Endpoint URL :

Form Data (Body)

Property
Type

audio

File (accepted file is mp3)

Response:

Property
Type

id

String

filename

String

name

String

url

URL String

{
    "id": "xxxxf03d61fae4001267xxxx",
    "filename": "df82xxxx-a5xx-44xx-86xx-57f4e7e8xxxx.mp3",
    "name":"OCA Audio Rekam.mp3",
    "url": "https://webapigw.ocatelkom.co.id/audio/play/df82xxxx-a5xx-44xx-86xx-57f4e7e8xxxx.mp3"
}
https://call.ocatelkom.co.id/api/v1/upload-audio