Upload a background-music track for a video

Uploads an audio file as a background-music asset for the given video.

Non-MP3 input is transcoded to MP3 with ffmpeg before storage, so WAV, M4A and similar formats are accepted. The stored asset is keyed by file name: uploading a file whose name already exists in the workspace overwrites that asset's record rather than creating a second one.

Send the file as multipart/form-data under the field name file. Counts against the workspace's asset limit.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
curl -X POST 'https://apis.elai.io/api/v1/uploads/music/66a1f0c2b7cd13032a9c6002' \
  -H 'Authorization: Bearer YOUR_API_TOKEN' \
  -F 'file=@/path/to/your/file'
Path Params
string
required

Video the track is uploaded for. Determines the storage path.

Body Params
file
required

Audio file. Transcoded to MP3 unless it already is one.

Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json