Skip to main content
POST
/
v3
/
assets
Upload Asset
curl --request POST \
  --url https://api.heygen.com/v3/assets \
  --header 'Content-Type: multipart/form-data' \
  --header 'x-api-key: <api-key>' \
  --form file='@example-file'
{
  "data": {
    "asset_id": "<string>",
    "url": "<string>",
    "mime_type": "<string>",
    "size_bytes": 123
  }
}

Authorizations

x-api-key
string
header
required

HeyGen API key. Obtain from your HeyGen dashboard.

Body

multipart/form-data
file
file
required

File to upload (image, video, audio, or PDF). Max 32 MB.

Response

Successful response

data
UploadAssetV3Response · object

Response from uploading an asset via POST /v3/assets.