Upload Audio

Endpoint

https://line.cammsoft.com/v1/application/audio/upload.api

Info

This endpoint receives audio content for database storage.

Warning

This resource is only accessible to authorized applications.

Repeated authentication failures will result in the banning of the offending IP address.

POST

Input Header Parameters
application-keyRequired
Input JSON Parameters
{}Object {}RequiredROOT
nameStringRequiredIdentify this audio file.
descriptionStringOptionalDescription of audio file.
accountIdStringOptionalTo apply this record to an account by ID.
lineIdStringOptionalTo apply this record to a line by ID.
contentTypeStringRequiredThe audio content type. Ex: audio/x-wav
encodingStringRequiredEncoding of data parameter. Only base64 supported currently.
dataStringRequiredString encoded audio data.

On Success
Output JSON Parameters
{}Object {}ROOT
audioIdStringThe ID of the new audio file.

On Failed
Output JSON Parameters
{}Object {}Root parameter type.
errorObject {}
codeStringError short code string.
messageStringGreater description of error.

Codes: METHOD_NOT_ALLOWED, BAD_REQUEST, INTERNAL_ERROR, ACCESS_DENIED, BANNED, INVALID_ACCOUNT_ID, INVALID_LINE_ID