Skip to main content
The Library stores reusable media and brand files—raw footage, screen recordings, images, logos, audio tracks, custom fonts, and PDFs (up to 512 MB per file)—scoped to your workspace. Upload a file once to receive a stable asset_id, then pass that asset_id in Projects (attachments: [{ asset_id }]) or Brand kits (sections[].asset_ids) without re-uploading bytes.
Required scopes: motion:assets:read to list or read assets; motion:assets:write to create and complete uploads.

Three-step upload flow

Uploads go directly to cloud storage using a presigned POST policy:
  1. Create an upload ticket (POST /uploads): Send filename, content_type, and file_size. Motion returns id (the future asset_id), upload_url, and upload_fields.
  2. Upload file bytes: Send a POST multipart/form-data request to upload_url with every entry from upload_fields, placing file last.
  3. Complete & wait for ready (POST /uploads/{id}/complete): Mark the upload complete, then poll GET /assets/{asset_id} until asset.status is ready.

The Asset object

string
Unique UUID for the Library asset. Pass as asset_id in POST /projects, POST /projects/{id}/messages, or POST /brand-kits.
string
Original filename supplied when the upload was created.
enum
Detected media category: image, video, audio, pdf, or file.
enum
Processing state: uploading, processing, ready, or failed. Wait until ready before attaching the asset to a project or brand kit.
enum | null
How the asset entered the Library: user_uploaded, agent_found, or agent_generated.
string | null
MIME type of the stored asset (for example video/mp4, image/png, font/ttf).
number | null
File size in bytes (maximum 512 MB per upload).
string | null
Temporary signed download URL; call GET /assets/{asset_id} again to renew after expires_at.

Endpoints