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

Auth Required

Get one workflow: its graph, its status (draft or published; only a published workflow can run) and its inputSchema, the values to pass in input when you start a run. Ready-made workflows can be read too.

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

Path Parameters

idstring · uuidrequired

Workflow ID (id), from Create a workflow or List workflows.

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

Responses

200The workflow.
application/json
idstring · uuidrequired

Workflow ID.

Example: 3c9d7e1a-5b2f-4a6c-8d0e-1f2a3b4c5d6e
fk_orgIdstring · uuid | nullrequired

Your organization. Null for a ready-made workflow (isSystem: true).

Example: 7f3e2d1c-0b9a-4c8d-9e7f-6a5b4c3d2e1f
fk_ownerIdstring · uuid | nullrequired

Member who created it. Null for a ready-made workflow.

Example: 2b4d6f8a-1c3e-4a5b-8c7d-9e0f1a2b3c4d
namestringrequired

Name.

Example: Dub to Hindi, review, export
descriptionstring | nullrequired

Description, if you set one.

Example: Dubs a video into Hindi and exports it after a review.
isSystembooleanrequired

True for a built-in workflow: every organization sees it and can run it, nobody can change or delete it.

Example: false
statusstringrequired

published once the flow has at least one real step and saved cleanly: it can run. draft while it has only its Start and End (or nothing).

Enum values:draftpublished
Example: published
graphFlowGraphDtorequired

The steps and their connections, as you saved them.

Show child attributes
nodesFlowNodeDto[]required

Every step, including exactly one logic.start and one logic.end once the flow has a real step.

Show child attributes
idstringrequired

Your id for the node, unique within the flow. Edges, inputBindings, run inputs and run steps refer to it. Letters, digits, - and _ keep run-input keys readable.

Example: dub
nodeTypeKeystringrequired

The step type, a key from List step types, such as tv.instant_clone, logic.approval or logic.start.

Example: tv.instant_clone
positionFlowNodePositionDto

Canvas position, used only to draw the flow in the Universe app.

Show child attributes
xnumberrequired

Horizontal position on the canvas, in pixels.

Example: 240
ynumberrequired

Vertical position on the canvas, in pixels.

Example: 0
configobject

Values fixed when you save the flow, keyed by field key from the step type's inputSchema (and configSchema, for the LLM step). A field set here is not asked for when the flow runs. Gates keep their settings here too: a Delay's durationSeconds, an Approval's label and instructions, a Switch's cases and defaultCase.

Example: {"sourceLanguage":"en-US","targetLanguage":"hi-IN","speakerCount":"2"}
inputBindingsobject

Inputs read from an earlier step, keyed by input field key: { "<inputKey>": { "fromNodeId", "outputKey" } }. This is what the run reads; draw a matching binding edge so the canvas shows the wire.

Example: {"parentProcessId":{"fromNodeId":"dub","outputKey":"processId"}}
edgesFlowEdgeDto[]required

Every connection between steps.

Show child attributes
sourcestringrequired

id of the node the edge starts from.

Example: dub
targetstringrequired

id of the node the edge goes to.

Example: review
idstring

Your id for the edge.

Example: e2
sourceHandlestring

Where the edge leaves the source. For a control edge: __ctl_out, or case:<caseKey> from a Switch. For a binding edge: the source's output key. For a share edge: an input key of the source.

Example: __ctl_out
targetHandlestring

Where the edge enters the target. For a control edge: __ctl_in. For a binding or share edge: the target's input key.

Example: __ctl_in
kindstring

control: run order and branching (Start → step → gate → … → End). binding: data from an output to an input (mirror it in the target's inputBindings). share: two inputs of the same type that take one value, asked for once when the flow runs. Left out, the edge is a binding.

Enum values:bindingsharecontrol
Default: bindingExample: control
conditionFlowEdgeConditionDto

Reserved. Stored with the flow but not used to route a run: branch with a Switch gate instead.

Show child attributes
outputKeystringrequired

Output key of the source node to test.

Example: verdict
equalsstring | number | booleanrequired

The value the output must equal.

Example: APPROVED
inputSchemaRunInputFieldDto[]required

What a run of this flow asks for: every step input that is neither set in config nor wired, in the order the steps run. Pass each one in input under its key when you start a run. Worked out from the current step types each time you read the flow.

Show child attributes
keystringrequired

Key to use in input when you start a run: <nodeId>__<fieldKey> (non-alphanumeric characters of the node id become _), or share__<…> for inputs joined by a share edge.

Example: dub__tmId
labelstringrequired

Display name.

Example: Target language
typestringrequired

What kind of value it is: text, textarea, number, select, boolean, file, language (a language code), tm (a translation memory id), region (a Quality Control region id), upstreamRef (a value wired from an earlier step, or for a file, uploaded at run time), or a type of the step's own, such as voice.

Example: language
dataTypestringrequired

Port type. A binding edge may join an output to an input only when their dataTypes match (any matches everything). See portTypes for the list.

Example: language
fieldKeystringrequired

The field's own key within its step.

Example: tmId
nodeIdstringrequired

id of the node that asks for it.

Example: dub
groupstringrequired

Label of that step, for grouping the inputs.

Example: Dub with Voice Clone
requiredboolean

Whether the step needs a value: set in config, wired, or given when the flow runs.

Example: true
multipleboolean

Takes a list of values instead of one.

Example: true
descriptionstring

Help text.

Example: The language to translate and dub into.
optionsNodeFieldOptionDto[]

The allowed values of a select field.

Show child attributes
labelstringrequired

What the Universe app shows.

Example: 2
valuestring | number | booleanrequired

The value to send.

Example: 2
optionsSourcestring

Where the Universe app loads the allowed values from, for example cosmos_ai_models (the aiModels list in this response).

Example: cosmos_ai_models
defaultobject

Value used when you set none.

Example: auto-detect
refOutputKeystring

For an upstreamRef input: the output key of an earlier step it usually reads. Informational; the wire is what counts.

Example: deliverable
modalitiesstring[]

What the port carries more precisely than dataType, such as docx, pptx, image or text. Two ports connect only when these overlap. Absent: unrestricted. Empty: the port carries nothing in this configuration.

Example: ["docx"]
dataTypeFromstring

The config key whose value sets this port's dataType (the LLM step's ports change with its input and output kinds).

Example: inputModality
modalitiesFromstring

The config key whose value sets this port's modalities.

Example: inputModality
modalitiesMapobject

For modalitiesFrom: config value → the modalities the port then carries. Values not listed carry themselves.

Example: {"image":[]}
conductorWorkflowNamestring | nullrequired

Internal name of the compiled workflow. Null until the flow is published. Informational.

Example: cosmos_flow_3c9d7e1a-5b2f-4a6c-8d0e-1f2a3b4c5d6e
conductorWorkflowVersionnumber | nullrequired

Goes up by one each time a save publishes the flow. A run keeps the version it started with. Null until first published.

Example: 3
createdAtstring · date-timerequired

When it was created.

Example: 2026-10-01T09:30:00.000Z
updatedAtstring · date-timerequired

When it was last saved.

Example: 2026-10-02T14:05:12.000Z
deletedAtstring · date-time | nullrequired

Always null: deleted workflows are not returned.

Example: null
shareGroupsSharedInputDto[]required

Inputs joined by share edges, which a run asks for once. Empty when the flow has none.

Show child attributes
nodeIdstringrequired

id of the node.

Example: translate-fr
fieldKeystringrequired

Input field key within that node.

Example: sourceLanguage
groupKeystringrequired

The input key the whole group is given under when the flow runs.

Example: share__translate_de__sourceLanguage
canonicalbooleanrequired

True for the one member that appears in inputSchema; the others read its value.

Example: true
summarystringrequired

The steps in run order, by label, without Start, End and Merge.

Example: Dub with Voice Clone → Approval → Export Video
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
404No workflow with this `id` in your organization, or it was deleted (`Flow <id> not found`).
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/flows/{id}
curl '{{API_BASE_URL}}/v1/cosmos/flows/3c9d7e1a-5b2f-4a6c-8d0e-1f2a3b4c5d6e' \
  --header 'x-api-key: YOUR_API_KEY'
{
  "id": "3c9d7e1a-5b2f-4a6c-8d0e-1f2a3b4c5d6e",
  "fk_orgId": "7f3e2d1c-0b9a-4c8d-9e7f-6a5b4c3d2e1f",
  "fk_ownerId": "2b4d6f8a-1c3e-4a5b-8c7d-9e0f1a2b3c4d",
  "name": "Dub to Hindi, review, export",
  "description": "Dubs a video into Hindi and exports it after a review.",
  "isSystem": false,
  "status": "published",
  "graph": {
    "nodes": [
      {
        "id": "start",
        "nodeTypeKey": "logic.start",
        "position": {
          "x": 0,
          "y": 0
        }
      },
      {
        "id": "dub",
        "nodeTypeKey": "tv.instant_clone",
        "position": {
          "x": 240,
          "y": 0
        },
        "config": {
          "sourceLanguage": "en-US",
          "targetLanguage": "hi-IN",
          "speakerCount": "2"
        }
      },
      {
        "id": "review",
        "nodeTypeKey": "logic.approval",
        "position": {
          "x": 480,
          "y": 0
        },
        "config": {
          "label": "Review the Hindi dub",
          "instructions": "Check names and numbers in the editor."
        }
      },
      {
        "id": "export",
        "nodeTypeKey": "tv.export",
        "position": {
          "x": 720,
          "y": 0
        },
        "config": {
          "targetLanguage": "hi-IN",
          "withSubtitles": true
        },
        "inputBindings": {
          "parentProcessId": {
            "fromNodeId": "dub",
            "outputKey": "processId"
          }
        }
      },
      {
        "id": "end",
        "nodeTypeKey": "logic.end",
        "position": {
          "x": 960,
          "y": 0
        }
      }
    ],
    "edges": [
      {
        "id": "e1",
        "source": "start",
        "target": "dub",
        "sourceHandle": "__ctl_out",
        "targetHandle": "__ctl_in",
        "kind": "control"
      },
      {
        "id": "e2",
        "source": "dub",
        "target": "review",
        "sourceHandle": "__ctl_out",
        "targetHandle": "__ctl_in",
        "kind": "control"
      },
      {
        "id": "e3",
        "source": "review",
        "target": "export",
        "sourceHandle": "__ctl_out",
        "targetHandle": "__ctl_in",
        "kind": "control"
      },
      {
        "id": "e4",
        "source": "export",
        "target": "end",
        "sourceHandle": "__ctl_out",
        "targetHandle": "__ctl_in",
        "kind": "control"
      },
      {
        "id": "e5",
        "source": "dub",
        "target": "export",
        "sourceHandle": "processId",
        "targetHandle": "parentProcessId",
        "kind": "binding"
      }
    ]
  },
  "inputSchema": [
    {
      "key": "dub__tmId",
      "label": "Target language",
      "type": "language",
      "dataType": "language",
      "required": true,
      "multiple": true,
      "description": "The language to translate and dub into.",
      "options": [
        {
          "label": "2",
          "value": "2"
        }
      ],
      "optionsSource": "cosmos_ai_models",
      "default": "auto-detect",
      "refOutputKey": "deliverable",
      "modalities": [
        "docx"
      ],
      "dataTypeFrom": "inputModality",
      "modalitiesFrom": "inputModality",
      "modalitiesMap": {
        "image": []
      },
      "fieldKey": "tmId",
      "nodeId": "dub",
      "group": "Dub with Voice Clone"
    }
  ],
  "conductorWorkflowName": "cosmos_flow_3c9d7e1a-5b2f-4a6c-8d0e-1f2a3b4c5d6e",
  "conductorWorkflowVersion": 3,
  "createdAt": "2026-10-01T09:30:00.000Z",
  "updatedAt": "2026-10-02T14:05:12.000Z",
  "deletedAt": null,
  "shareGroups": [
    {
      "nodeId": "translate-fr",
      "fieldKey": "sourceLanguage",
      "groupKey": "share__translate_de__sourceLanguage",
      "canonical": true
    }
  ],
  "summary": "Dub with Voice Clone → Approval → Export Video"
}

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

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