Agent Operations
Run an agent, track progress and download outputs.
GET /get-user-agents-simple
Return a lightweight list of your own agents – handy for populating dropdowns or showing recent creations in a UI.
Query | Type | Default | Notes |
---|---|---|---|
limit | integer (1-100) | all | Caps the number of agents returned (newest first) |
Authentication is identical to other operational endpoints:
- Bearer API key (
mk_…
) orX-API-Key
header - Supabase session JWT for the Mosaic dashboard
Example – list the five most-recent agents
Response
The endpoint returns only your agents; there is no global marketplace yet. Results are sorted by
created_at
descending.
POST /run-agent
Execute an agent workflow on an uploaded video file.
Let Mosaic choose an agent based on your prompt:
Let Mosaic choose an agent based on your prompt:
Target a specific agent by ID:
Field | Type | Required | Description |
---|---|---|---|
file_id | string (UUID) | ✅ | ID of the uploaded file |
agent_id | string (UUID) | ⚠️ | ID of the agent to run (mutually exclusive with prompt ) |
prompt | string | ⚠️ | Natural-language instruction; Mosaic picks an agent & parameters (mutually exclusive with agent_id ) |
parameters | object | Key-value overrides for agent fields | |
auto | boolean | Let Mosaic choose optimal parameters (only used with agent_id ) |
agent_id
OR prompt
, not both. When using prompt
, Mosaic automatically selects the best agent and parameters.Response
GET /get-agent-run/
Get full run details including the workflow graph.
Response
GET /get-agent-run-simple/
Returns the same high-level metadata without the heavy graph payload. Poll this endpoint every ~5 seconds for updates on agent runs.
GET /get-agent-run-outputs/
Retrieve signed download URLs for all outputs of the run.
POST /retry-agent-run-node/
Retry a specific failed node within an agent run instead of re-running the entire workflow.
Field | Type | Required | Description |
---|---|---|---|
agent_run_node_id (path) | UUID | ✅ | ID of the node to retry. Must currently have status=failed . |
Authentication: same as other operational endpoints – Bearer API key (mk_…
) or Supabase session. Anonymous requests are rejected with 401
.
Request
Successful response
HTTP 200 — the node (and all downstream nodes) are reset to not_started
; the parent run switches back to `