capabilities.work

Import an Asset from a URL

A 3-step recipe with Livepeer. We can help you get access.

Recipe · 3 steps

Import an Asset from a URL

Upload an asset from a URL, then poll the task until completion.

  1. Start the upload of an asset from the provided source URL. The response includes the placeholder asset and the processing task.
  2. Poll the processing task by ID. Branch to reading the asset when the task is completed and end on failure; otherwise keep polling.
  3. Read the finished asset to surface its playback ID and playback URL.
What you'll need to have ready
  • authToken: Livepeer API key used as a Bearer token.
  • name: Name of the asset to create.
  • url: Public source URL (https, ipfs, or ar) to import the video from.
For your developer

Arazzo workflow livepeer:import-asset-from-url, 3 operations: uploadAsset → getTask → getAsset. Specs on APIs.io.