Skip to main content
POST
Create Media File

Authorizations

Authorization
string
header
required

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

Body

multipart/form-data
tenantId
string
required

Tenant ID (0 for system files)

name
string
required

Media file name

text
string

Text/description for the media file

voiceId
string

Voice ID used to synthesize audio

file
any

Audio file to upload (converted to WAV)

Response

200 - application/json

Created media file

id
number
required

Media file ID

tenantId
number
required

Tenant ID (0 = system)

name
string
required

Media file name

size
number
required

File size in bytes

text
string | null
required

Text/description

voiceId
string | null
required

Voice ID

createdAt
string
required

Creation timestamp (ISO)

md5
string
required

MD5 hash of the stored audio