Skip to main content
POST
Upload asset

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

The body is of type file.

Response

Asset created.

An uploaded media file, usable only by the project that uploaded it.

id
string
required

Id of an asset uploaded with POST /v1/assets by the same project.

Pattern: ^asset_[A-Za-z0-9_-]{8,64}$
object
enum<string>
required
Available options:
asset
mime_type
string
required
size_bytes
integer<int64>
required
sha256
string
required
created_at
string<date-time>
required
expires_at
string<date-time>
required

After this time the asset can no longer be referenced (default 24 h after upload).