Uploads, imports & analysis
Beta

Uploads, imports & analysis

Create upload URLs, import external media, and analyze video scenes.

media_imports_create

Alpha

Import a public TikTok or Instagram video into the connected workspace when its Creative flag is enabled.

Operation Write, approval required, requires the creative flag

Sample prompt: Import this public Instagram Reel into my workspace and wait until it is ready to use as a video reference.

Parameters

ParameterTypeRequiredDefaultDescription
bodyobjectYes—Media import input.
body.urlstringYes—Public TikTok or Instagram video or Reel URL.
body.get_transcriptbooleanNo—Retrieve a transcript when TikTok provides one. Instagram ignores this field.
body.source_media_urlstringNo—Direct video URL on the source platform CDN. The service can fall back to the post.
body.modestringNo—async (default), sync, subscribe, or webhook.
body.webhook_urlstringNo—Public HTTPS endpoint for terminal notifications. Required in webhook mode.
body.wait_timeout_secondsintegerNo—HTTP wait for sync or subscribe, from 0 to 30 seconds. Defaults to 30.
body.project_idstringNo—Destination project ID in the connected workspace.
idempotency_keystringYes—Reuse this key to retry the same input.
approval_receiptstringNo—Receipt from the plan. Supply it after confirmation.

media_imports_get

Alpha

Retrieve a media import by ID in the connected workspace when its Creative flag is enabled.

Operation Read only, requires the creative flag

Sample prompt: Get the imported video URL so I can use it as a reference in a Creative video job.

Parameters

ParameterTypeRequiredDefaultDescription
pathobjectYes—Media import identifier.
path.idstringYes—The data.media_import_id returned when creating the import.
idempotency_keystringNo—Use a unique key per action and reuse it when retrying the same input.

upload_url_create

Create a signed file upload URL for the connected workspace.

Operation Write, approval required

Sample prompt: Upload my local product.png and use it as a reference for a new product photo.

Parameters

ParameterTypeRequiredDefaultDescription
bodyobjectYes—File metadata.
body.content_typestringNo—File MIME type, for example image/png.
body.size_bytesintegerYes—Exact size in bytes, from 1 to 2,147,483,648.
body.filenamestringNo—Original filename, up to 255 characters.
idempotency_keystringYes—Key for this upload request.
approval_receiptstringNo—Receipt from the plan. Supply it after confirmation.

video_analysis_create

Alpha

Analyze a video scene by scene, or ask a specific question about it. Provide exactly one of an uploaded video ID or a public YouTube URL. Longer videos may reduce accuracy. Use glance for a faster pass with fewer sampled frames.

Operation Write, approval required, requires the creative flag

Sample prompt: Quote a quick analysis of this uploaded video to find when the product first appears.

Parameters

ParameterTypeRequiredDefaultDescription
modestringNo"deep"Use deep for detailed analysis or glance to sample fewer frames.
promptstringNo—A question of up to 4,000 characters. Omit it for a scene breakdown.
video_input_idstringNo—UUID of an uploaded video. Provide either this or youtube_url.
youtube_urlstringNo—Public YouTube HTTPS URL. Provide either this or video_input_id.

Send these values in tools/call request metadata under params._meta.

ParameterTypeRequiredDefaultDescription
idempotency_keystringNo—The plan’s request.idempotencyKey. Reuse it after approval or when retrying the same action.
approval_receiptstringNo—The plan’s approval_id. Supply it after the user approves the plan.

video_analysis_jobs

Alpha

List video analysis jobs in the connected workspace, newest first. Pass next_cursor from the last response as cursor to fetch the next page. The cursor is a Unix timestamp in seconds.

Operation Read only, requires the creative flag

Sample prompt: Show me the 10 most recent video analysis jobs and their statuses.

Parameters

ParameterTypeRequiredDefaultDescription
cursornumber / nullNo—The last response’s next_cursor. Omit it or send null for the first page.
sizeintegerNo—Number of results per page, from 1 to 100.

video_analysis_status

Alpha

Get the status and result of a video analysis job by its video_analyze_id. When the job completes, answers appear in result.analysis and scene breakdowns in result.scenes. Check fail_reason if the job fails.

Operation Read only, requires the creative flag

Sample prompt: Check whether my last video analysis finished and show me its scene breakdown.

Parameters

ParameterTypeRequiredDefaultDescription
video_analyze_idstringYes—UUID returned when the analysis was submitted.