Skip to main content
Upload an asset

Authorizations

Authorization
string
header
required

Production API key created at https://app.protoface.com for https://api.protoface.com; no activation step or environment switch. Pass the full secret shown once at creation as Authorization: Bearer sk_live_…, not the short dashboard identifier. HTTP 401 missing_authorization means the header did not parse; the key was not looked up. A token that passes parsing can return api_key.unknown, api_key.revoked, api_key.expired, or api_key.environment. See https://docs.protoface.com/reference/errors#authentication-codes.

Body

multipart/form-data
file
file
required
modality
string
required
Required string length: 1 - 120
duration_ms
integer | null
Required range: x >= 0
schema_uri
string | null
Maximum string length: 500

Response

Successful Response

byte_size
integer | null
required
created_at
string<date-time>
required
deleted_at
string<date-time> | null
required
download_url
string | null
required
duration_ms
integer | null
required
height
integer | null
required
id
string
required
media_type
string | null
required
modality
string
required
schema_uri
string | null
required
scope
string
required
status
string
required
width
integer | null
required
object
string
default:asset
Allowed value: "asset"