v1

latestSwagger 2.0Apache 2.02026-07-13123128517.6 KB
campaigns

Add sound via call

Use this API to create a sound via a phone call. Provide the required phone number in the CallCreateSound object inside the request, and user will receive a call shortly after with instructions on how to record a sound over the phone.

post/campaigns/sounds/calls

Query parameters

fieldsstring

Limit fields received in response. E.g. fields: id, name or fields items (id, name), see more at partial response page.

Request body

namestring

Name of a sound to create

toNumberstring

Phone number in E.164 11-digit format to call to record a sound. Example: 12132000384

Response

successful operation

idinteger

An id of a sound file

namestring

A name of a sound file

createdinteger

The time when the given resource was created, formatted in unix time milliseconds (read only). Example: 1473781817000 for Sat, 05 Jan 1985 14:03:37 GMT

lengthInSecondsinteger

Length of a sound in seconds

status'UPLOAD' | 'RECORDING' | 'ACTIVE' | 'ACTIVE_SYSTEM' | 'FAILED' | 'ARCHIVED' | 'SCRUBBED'

A current status of a sound, available values: UPLOAD - uploading is in progress, RECORDING - recording of sound is in progress, ACTIVE - sound is ready, FAILED, ARCHIVED - sound was archived, SCRUBBED - sound was scrubbed

duplicateboolean

True if the same sound file exists in a sound library of account