Skip to main content
POST
Create a sound

Authorizations

Authorization
string
header
required

HTTP Basic Authentication. Use your API Access Key ID as the username and your API Access Key Secret as the password. Generate keys in the CloudTalk Dashboard under Account -> Settings -> API Keys (https://dashboard.cloudtalk.io/menu/account/settings/API-keys).

Headers

Idempotency-Key
string

Names this create, so that a retry does not create a second sound. 1 to 255 characters. Kept for 24 hours.

Required string length: 1 - 255

Body

name
string
required

1 to 60 characters, without < or >.

Required string length: 1 - 60
Pattern: ^[^<>]*$
text
string
required

1 to 1,000 characters.

Required string length: 1 - 1000
voice
string
required
language
string
required

ISO 639-1, one of the voice's languages.

Example:

"en"

Response

The new sound.

id
string
required

Sound id. Use it as soundId.

Example:

"79"

name
string
required

Up to 60 characters.

Maximum string length: 60
scope
enum<string>
required

account: yours. default: provided by CloudTalk, read-only.

Available options:
account,
default
status
enum<string>
required

A new sound converts for a short while: processing, then ready, or failed when it cannot play.

Available options:
processing,
ready,
failed
inUse
boolean
required

Used by a call flow, business hours, a group or the voicemail setting.

createdAt
string<date-time> | null
required

null when the stored date is missing or not valid, as on some older default sounds.

updatedAt
string<date-time> | null
required

null when the stored date is missing or not valid, as on some older default sounds.

audioUrl
string | null

Get a sound only. A signed link to the audio file that expires after about 5 minutes. Do not store it: read the sound again for a new link. null when the audio file is not in storage.