v1.0.0OpenAPI 3.1.1

Workflows API

Download OpenAPI Document

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

Server
{{API_BASE_URL}}
Your API environment
Authentication RequiredApiKeyAuth
Your organization API key (starts with `uvk_`). Create one in the Universe app under Settings → API keys.
x-api-key:
Client Libraries
Shell

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

Start a run

List runs

Auth Required

Your organization's runs, newest first, one page at a time. Filter by workflow (flowId), project (projectId), status group (status) or text in the run or workflow name (q). counts says how many runs each status filter would return with the other filters applied. Each row has a quick progress; Get a run has the full detail.

Permission: cosmos:read. An API key acts with the role of the member who created it.

Query Parameters

pagenumber

Page number, from 1.

Default: 1Example: 1Min: 1
limitnumber

Runs per page.

Default: 20Example: 20Min: 1Max: 100
projectIdstring

Only runs in this project (a project ID), or none for runs in no project.

Example: 6d5c4b3a-2e1f-4a0b-9c8d-7e6f5a4b3c2d
flowIdstring · uuid

Only runs of this workflow (its id).

Example: 3c9d7e1a-5b2f-4a6c-8d0e-1f2a3b4c5d6e
statusstring

live = running, awaiting_action, completed, failed = failed or timed_out, cancelled = stopped by a person, all = no filter.

Enum values:allliveawaiting_actioncompletedfailedcancelled
Default: allExample: failed
qstring

Text to find in the run name or the workflow name, ignoring case.

Example: launch

Responses

200One page of runs.
application/json
dataExecutionListItemDto[]required

One page of runs, newest first.

Show child attributes
executionIdstring · uuidrequired

Run ID.

Example: a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d
flowIdstring · uuidrequired

The workflow this is a run of.

Example: 3c9d7e1a-5b2f-4a6c-8d0e-1f2a3b4c5d6e
namestringrequired

Name of the run.

Example: product-launch.mp4
flowNamestringrequired

Name of the workflow.

Example: Dub to Hindi, review, export
statusstringrequired

RUNNING, PAUSED (an Approval gate is waiting for Approve or Reject), COMPLETED, FAILED or TERMINATED (cancelled). The last three are final.

Enum values:RUNNINGPAUSEDCOMPLETEDFAILEDTERMINATED
Example: COMPLETED
progressExecutionProgressDtorequired

A quick estimate: steps that have started, minus the one running now. Get a run has the exact status of each step.

Show child attributes
completednumberrequired

Steps finished.

Example: 1
totalnumberrequired

Steps in the run.

Example: 2
startedByExecutionStartedByDtorequired

Who started it. Null if that member has left.

Show child attributes
namestring | nullrequired

Their name.

Example: Priya Sharma
imagestring | nullrequired

Link to their profile picture.

Example: null
projectIdstring · uuid | nullrequired

Project the run is in. Null when it is in none.

Example: 6d5c4b3a-2e1f-4a0b-9c8d-7e6f5a4b3c2d
startedAtstring · date-time | nullrequired

When the run started.

Example: 2026-10-02T14:10:00.000Z
finishedAtstring · date-time | nullrequired

When the run reached a final status. Null while it is live.

Example: 2026-10-02T14:42:31.000Z
lastActivityAtstring · date-time | nullrequired

When the run last moved on: a step started or needed action, or the run finished, failed, was approved, rejected, retried or cancelled. A rename or a move to another project does not count.

Example: 2026-10-02T14:42:31.000Z
metaExecutionListMetaDtorequired

Paging.

Show child attributes
pagenumberrequired

This page number.

Example: 1
limitnumberrequired

Runs per page.

Example: 20
totalnumberrequired

Runs matching every filter.

Example: 42
totalPagesnumberrequired

Number of pages.

Example: 3
hasMorebooleanrequired

Whether there is a next page.

Example: true
countsExecutionListCountsDtorequired

Runs per status filter, with every other filter (projectId, flowId, q) applied.

Show child attributes
allnumberrequired

All runs.

Example: 42
livenumberrequired

RUNNING runs.

Example: 2
awaiting_actionnumberrequired

PAUSED runs (an Approval gate is waiting).

Example: 1
completednumberrequired

COMPLETED runs.

Example: 35
failednumberrequired

FAILED and TERMINATED runs.

Example: 4
400Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).
application/json
statusCodeintegerrequired

HTTP status code, repeated in the body.

Example: 404
messagestring | string[]required

What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.

Example: Booking not found
errorstring

Short name of the status.

Example: Not Found
401The `x-api-key` header is missing, or the key is invalid, expired or deleted.
application/json
statusCodeintegerrequired

HTTP status code, repeated in the body.

Example: 404
messagestring | string[]required

What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.

Example: Booking not found
errorstring

Short name of the status.

Example: Not Found
403Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.
application/json
statusCodeintegerrequired

HTTP status code, repeated in the body.

Example: 404
messagestring | string[]required

What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.

Example: Booking not found
errorstring

Short name of the status.

Example: Not Found
429Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.
application/json
statusCodeintegerrequired

HTTP status code, repeated in the body.

Example: 404
messagestring | string[]required

What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.

Example: Booking not found
errorstring

Short name of the status.

Example: Not Found
500Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.
application/json
statusCodeintegerrequired

HTTP status code, repeated in the body.

Example: 404
messagestring | string[]required

What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.

Example: Booking not found
errorstring

Short name of the status.

Example: Not Found
GET/v1/cosmos/executions
curl '{{API_BASE_URL}}/v1/cosmos/executions?page=1&limit=20&projectId=6d5c4b3a-2e1f-4a0b-9c8d-7e6f5a4b3c2d&flowId=3c9d7e1a-5b2f-4a6c-8d0e-1f2a3b4c5d6e&status=failed&q=launch' \
  --header 'x-api-key: YOUR_API_KEY'
{
  "data": [
    {
      "executionId": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
      "flowId": "3c9d7e1a-5b2f-4a6c-8d0e-1f2a3b4c5d6e",
      "name": "product-launch.mp4",
      "flowName": "Dub to Hindi, review, export",
      "status": "COMPLETED",
      "progress": {
        "completed": 1,
        "total": 2
      },
      "startedBy": {
        "name": "Priya Sharma",
        "image": null
      },
      "projectId": "6d5c4b3a-2e1f-4a0b-9c8d-7e6f5a4b3c2d",
      "startedAt": "2026-10-02T14:10:00.000Z",
      "finishedAt": "2026-10-02T14:42:31.000Z",
      "lastActivityAt": "2026-10-02T14:42:31.000Z"
    }
  ],
  "meta": {
    "page": 1,
    "limit": 20,
    "total": 42,
    "totalPages": 3,
    "hasMore": true
  },
  "counts": {
    "all": 42,
    "live": 2,
    "awaiting_action": 1,
    "completed": 35,
    "failed": 4
  }
}

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.

Approve a step

Reject a step

Models

AiModelDto
AiModelRateDto
ExecutionListCountsDto
ExecutionListItemDto
ExecutionListMetaDto
ExecutionNodeControlDto
ExecutionNodeDto
ExecutionProgressDto
ExecutionResponseDto
ExecutionStartedByDto
ExecutionStatusResponseDto
FlowEdgeConditionDto
FlowEdgeDto
FlowGraphDto
FlowInputBindingDto
FlowNodeDto
FlowNodePositionDto
FlowResponseDto
InsufficientCreditsErrorDto
ListExecutionsResponseDto
MovedProjectDto
MoveExecutionProjectBodyDto
MoveExecutionProjectResponseDto
NodeFieldDto
NodeFieldOptionDto
NodeFlagsDto
NodeNavigationDto
NodeRequirementDto
NodeTypeDto
NodeTypesResponseDto
PortTypeDto
RejectGateBodyDto
RenameExecutionDto
RenameExecutionResponseDto
RunInputFieldDto
SaveFlowDto
SaveRunImagesDto
SetStepOwnersDto
SharedInputDto
StartExecutionDto
StepGalaxyDto
StepOwnerDto
StepOwnersResponseDto
ValidateFlowDto
ValidateFlowResponseDto