Docs

Create an Asset

Create an Asset from a video Source. Processing starts asynchronously.

POST
/assets

Authorization

Authorization
header
string
required

Enter the project access token with the Bearer prefix, e.g. "Bearer project_access_token"

Bodyapplication/json
source_id
string
required

ID of the video Source to process.

max_resolution
string

Maximum streaming resolution. Omit to use the Project default, or the plan maximum if unset. 2160p requires Starter or above. Smaller sources are not upscaled. Does not affect static renditions.

Available options:
1080p2160p
metadata
object

String metadata with a maximum encoded JSON size of 2048 bytes.

Examples:
map[key:value key2:value2]
min_resolution
string

Minimum streaming resolution. Omit to use the Project default; auto removes the minimum. Must not exceed max_resolution. Smaller sources are not upscaled. Does not affect static renditions.

Available options:
auto240p360p540p720p1080p1440p2160p
path_template
string

PathTemplate specifies the Asset output folder relative to Storage base_prefix. Supports {assetID} and case-sensitive {metadata.}; referenced values must be non-empty. Ignored for Chunkify storage, which always uses {assetID}. Overrides the Project default. Defaults to {assetID} when neither is set. Maximum template size: 1024 UTF-8 bytes. Expanded prefix: 768 bytes including base_prefix and trailing slash.

Examples:
videos/{metadata.VideoID}
preview_enabled
boolean

Allow public preview access without an API token. Omit to use the Project default. Does not control CDN or static download access.

storage
object

Output Storage. Omit to use the Project default. The path_template controls the folder for generated output paths.

title
string

Asset title, up to 256 characters. Defaults to an empty string.

Examples:
Launch video
workflow_id
object

WorkflowId specifies the Workflow to select. Omit to use the Project default. Set null to disable automatic actions. The current revision is pinned when creation is accepted.

Responses

application/json
data
object
required
status
"success"
string
required

Create an Asset