Skip to main content
POST
Add a photo or clip

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).

Path Parameters

id
string
required

The recording's video id: the project's, or its source upload's video_id

Body

application/json
content_type
enum<string>
required
Available options:
image/jpeg,
image/png,
image/webp,
image/heic,
image/heif,
video/mp4,
video/quicktime,
video/webm
size_bytes
integer<int64>
required

Exact file size: a clip at most 2 GiB, a photo at most 20 MB. Every part is signed for its exact length

Required range: 1 <= x <= 2147483648
duration_ms
integer<int64>

A clip's length as the client read it, checked against the limits now; Solara measures it again

Required range: 0 <= x <= 3600000
file_name
string

Its name, shown to the person

Maximum string length: 255
height
integer<int64>
Required range: 0 <= x <= 20000
mode
enum<string>
default:parts

parts: one presigned PUT per part_size part, completed with each part's ETag. link, for an AI agent only (403 agent_only otherwise): one short upload_link whose GET answers the whole file's presigned PUT as text, for 2 hours: curl -fsS -T "FILE" "$(curl -fsS '<upload_link>')". Then complete-project-media-upload with no parts

Available options:
parts,
link
purpose
enum<string>
default:shot

shot: footage for the AI to place (422 broll_off while footage is off for the workspace); block: a clip dropped on the timeline into a picture block, an MP4, MOV or WebM only, which the AI never places or describes (422 picture_blocks_off while picture blocks are off); auto_edit: a video or photo of an auto edit's reel, held to its caps, from the Solara app only (403 api_key_not_allowed with an API key; 422 auto_edit_off while it is off; 422 auto_edit_locked once the reel started). All hold a place under the video's limits

Available options:
shot,
block,
auto_edit
sort_order
integer<int64>

An auto edit's file's place in the customer's order, 0 first. Absent: after the reel's others. Only with purpose auto_edit

Required range: 0 <= x <= 99
width
integer<int64>
Required range: 0 <= x <= 20000

Response

Created

expires_at
string<date-time>
required

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

media
object
required
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: a short link whose GET answers the file's presigned PUT as text, until expires_at or until the item is completed or removed (then 410)