Skip to main content
POST
Upload a file

Authorizations

Authorization
string
header
required

A workspace API key: Authorization: Bearer osk_...

Path Parameters

workspace
string<uuid>
required

Your workspace UUID. Must match the API key's workspace.

Body

multipart/form-data
file
file
required
alt_text
string
Maximum string length: 255

Response

201 - application/json

Uploaded

id
integer

Use this in a post version's media.

uuid
string<uuid>
name
string
mime_type
string
type
string
url
string
thumb_url
string
is_video
boolean
created_at
string