Skip to main content
POST
Start an image upload

Authorizations

Authorization
string
header
required

An API key, created in Solara: the menu under your name, then API keys. Send it as Authorization: Bearer sol_live_…. It works while the workspace has agent access, within what its plan gives (the free plan included).

Body

application/json
content_type
string
required

e.g. video/mp4, image/jpeg

Required string length: 1 - 128
kind
enum<string>
required

What the file is

Available options:
video,
photo
size_bytes
integer<int64>
required

Exact file size; at most 500 MB

Required range: x >= 1
mode
enum<string>
default:parts

parts: one presigned PUT per part_size part, completed with each part's ETag. link, for an AI agent's image (an API key or a connected app; 403 agent_only otherwise): no part URLs, one short upload_link instead, for 2 hours. A GET of it answers the file's presigned PUT as text, so a shell sends the file with: curl -fsS -T "FILE" "$(curl -fsS '<upload_link>')". Then complete-manual-post-upload with no parts

Available options:
parts,
link

Response

Created

expires_at
string<date-time>
required

When the part URLs (mode link: the upload link) stop working

part_size
integer<int64>
required

Bytes per part; the last part is the remainder. Mode link: the whole file

parts
object[] | null
required

One presigned PUT per part; none in mode link

total_parts
integer<int64>
required

Mode link: 1

upload_id
string<uuid>
required
video_id
string<uuid>
required

The id the scheduled video will have

Mode link: a short link whose GET answers the file's presigned PUT as text. It signs this upload's one part, for size_bytes exactly, until expires_at or until the upload is completed or abandoned (then 410)