Import an Asset

Import a video Asset to Livepeer from an external URL through the POST /api/asset/import API.

curl --location --request POST 'https://livepeer.com/api/asset/import' \
--header 'Authorization: Bearer $API_TOKEN' \
--header 'Content-Type: application/json' \
--data-raw '{
    "url":"$EXTERNAL_URL",
    "name":"Example name"
}'
parametertypedescription
urlstringThe URL of the file that Livepeer should download and use.
namestringThe name of the `Asset` containing a custom human-readable description or title.

Livepeer live stream recordings are automatically imported as Asset objects. All you need to do is enable recording on your streams.

When the stream session ends, the platform waits 6min to give a chance for the user to reconnect on the same recording session. After that delay, the recording is processed and you should have a new asset in your account which you can retrieve from the list assets API.