Workflows API
Download OpenAPI DocumentChain translation, review and dubbing steps into one automated run.
Chain steps such as dubbing, document translation, quality checks, exports and human approvals into one workflow, then run it as often as you like. New here? Read Workflows for the whole flow and the graph format.
Every request
Send your organization API key in the x-api-key header; it starts with uvk_. Create one in the Universe app under Settings → API keys. The key and organization limits count requests over a rolling minute. See Authentication and Rate limits.
The typical flow: find the step types you need with List step types, save a workflow with Create a workflow (check it first with Validate a workflow), read what a run asks for in its inputSchema, then Start a run and poll it with Get a run. When a run reaches an Approval gate, Approve a step or Reject a step.
Runs work in the background, so every call returns straight away. Saving a workflow is free. A run is charged step by step, as each step starts, at the rate of the product that does the work; Start a run lists the rates. Without enough credits it returns 402 and nothing starts. See Credits.
Every route needs a cosmos permission on the role of the member who created the API key: read to look, create, update and delete to manage workflows, execute to run them. Each step also needs the permission of its own product, listed in its requires.
Workflows
A workflow is a saved graph of steps and the edges between them. Create, validate, update and delete your organization's workflows here; built-in workflows can be read and run but not changed.
List workflows
Get a workflow
Create a workflow
Validate a workflow
Update a workflow
Get your copy of a ready-made workflow
Step types
The building blocks of a workflow: product steps such as dubbing, translation and quality checks, and the logic.* gates that wait, branch, run in parallel and ask for approval. Read them first to learn each step's field keys.
List step types
Runs
A run is one execution of a workflow with its own inputs. Start it, poll it until it finishes, then retry or cancel it if you need to. You can also rename a run, file it in a folder and choose who owns each step.
- POST/v1/cosmos/flows/{id}/run
- GET/v1/cosmos/executions
- GET/v1/cosmos/executions/{id}
- POST/v1/cosmos/executions/{id}/retry
- POST/v1/cosmos/executions/{id}/rename
- GET/v1/cosmos/executions/{id}/images.zip
- PATCH/v1/cosmos/executions/{id}/project
- POST/v1/cosmos/executions/{id}/images/save-to-drive
- POST/v1/cosmos/executions/{id}/nodes/{nodeId}/step-owners
Start a run
List runs
Get a run
Retry a run
Rename a run
Download a run’s images
Move a run to a project
Save a run’s images to Drive
Set step owners
Approvals
An Approval gate pauses a run until someone decides. While it waits, the run's status is awaiting_action: approve the step to continue, or reject it to stop the run.