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

To upload a media file as an audio, it must meet the specified requirements.

An audio can only have one binary file, either provided as a Base64 string on audio creation or uploaded raw in a separate request.

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
audio
string
required

The handle of the audio.

Required string length: 1 - 50

Body

application/octet-stream · file

The new file of the audio.

Response

200 - 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.