Skip to main content
POST
/
assets
Upload File
curl --request POST \
  --url https://api.audioshake.ai/assets \
  --header 'Content-Type: multipart/form-data' \
  --header 'x-api-key: <api-key>' \
  --form file='@example-file'
{
  "id": "<string>",
  "format": "<string>",
  "name": "<string>"
}
Upload a media file to create a new Asset. The returned id can be used as assetId when creating a Task.
Maximum file size is 2GB. Uploaded Assets expire after 72 hours.

Authorizations

x-api-key
string
header
required

Body

multipart/form-data
file
file
required

The uploaded file data. Supported audio formats only. (e.g. wav, aiff, flac, mp3)

Response

200 - application/json

Default Response

id
string

Unique identifier of the Asset. Use this id as assetId when creating a Task.

format
string

Format of the output file

name
string

Name of the Asset