POST
/
spaces
/
{owner}
/
{space}
/
audios

To upload a media file as an audio, it must meet the specified requirements and be properly encoded as a Base64 string.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

owner
string
required

The handle of the owner.

Required string length: 1 - 50
space
string
required

The handle of the space.

Required string length: 1 - 50

Body

application/json
alias
string | null

The alias of the new audio.

Required string length: 1 - 100
file
string

The base64-encoded content of the binary file of the new audio.

identity
string | null

The handle of the identity linked to the new audio.

Required string length: 1 - 50

Response

201 - application/json
alias
string | null
required

The alias of the audio.

createdAt
string
required

The date and time when the audio was created.

duration
string
required

The duration of the audio.

handle
string
required

The handle of the audio. Is unique.

id
string
required

The UUID of the audio. Is unique.

identity
object
required

The identity linked to the audio.

sampleRate
integer
required

The sampling sample rate of the audio.

state
enum<string>
required

The state of the audio.

Available options:
avaitingFile,
available,
notAvailable
uploadedAt
string
required

The date and time when the binary file was uploaded.

verifications
integer
required

The number of verifications of the audio.

voiceprints
integer
required

The number of voiceprints of the audio.