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

Auth Required

Everything a workflow can be built from. nodeTypes lists each step type with its key (a node's nodeTypeKey), its inputSchema and outputSchema (the field keys for config, inputBindings and edge handles), the permission it needs (requires) and whether it charges credits (flags.charges). Gates are the logic.* types. portTypes names what each dataType carries, galaxies the products, and aiModels the models the LLM step can use. The same for every organization.

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

Responses

200The step types and their metadata.
application/json
nodeTypesNodeTypeDto[]required

Every step type you can place in a flow, gates and the Start and End markers included.

Show child attributes
keystringrequired

Step type key. Use it as a node's nodeTypeKey.

Example: tv.instant_clone
galaxystringrequired

Product that runs the step: translate-video, playground, quality-control, ai or logic.

Example: translate-video
labelstringrequired

Display name.

Example: Dub with Voice Clone
descriptionstringrequired

What the step does.

Example: Dub a video into another language, re-voicing each speaker in their own cloned voice.
inputSchemaNodeFieldDto[]required

Inputs. Each one is set in config, wired from an earlier step, or asked for when the flow runs.

Show child attributes
keystringrequired

Field key within the step: the key to use in config, inputBindings and edge handles.

Example: targetLanguage
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
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":[]}
outputSchemaNodeFieldDto[]required

Outputs that later steps can read through a binding.

Show child attributes
keystringrequired

Field key within the step: the key to use in config, inputBindings and edge handles.

Example: targetLanguage
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
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":[]}
navigationNodeNavigationDtorequired

How the Universe app links to the work the step created. Null for gates.

Show child attributes
kindstringrequired

What the link opens: tv_editor (a Video Dubbing job), qc_decision (a Quality Control result), pg_document (a document translation), and so on.

Example: tv_editor
deepLinkstring

Path in the Universe web app, relative to your organization, once the step has created its job.

Example: galaxy/translate-video/editor/9b1f6c2e-3d4a-4e5f-8a7b-1c2d3e4f5a6b
processIdstring · uuid

The job the link opens, where the step sets it.

Example: 9b1f6c2e-3d4a-4e5f-8a7b-1c2d3e4f5a6b
decisionIdstring · uuid

The Quality Control result the link opens, where set.

Example: 4a8e2b71-0c3d-4f5e-9a6b-7c8d9e0f1a2b
flagsNodeFlagsDtorequired

Behaviour flags.

Show child attributes
chargesboolean

The step charges credits when it starts, at the rate of the product that does the work.

Example: true
humanGateboolean

The step can stop and wait for a person, which puts the run in awaiting_action.

Example: false
requiresUpstreamboolean

The step must be wired from an earlier step.

Example: false
kindstring

control for a logic gate (logic.*). Absent for a step that runs a product.

Enum values:galaxycontrol
Example: control
controlKindstring

Which gate this is. Set only when kind is control.

Enum values:startenddelayapprovalswitchparallelmerge
Example: approval
systemboolean

True for logic.start and logic.end: every flow has exactly one of each, and the Universe app adds them for you.

Example: true
iconstring

Icon name used by the Universe app.

Example: mic
categorystring

Palette section.

Example: translate-video
outputsFromobject

Structured output: each name listed in the placed node’s config[configKey] is one more output of this type / dataType (the LLM step’s outputFields).

Example: {"configKey":"outputFields","type":"text","dataType":"text"}
configSchemaNodeFieldDto[]

Settings fixed in config when you save the flow and never asked for at run time (the LLM step only).

Show child attributes
keystringrequired

Field key within the step: the key to use in config, inputBindings and edge handles.

Example: targetLanguage
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
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":[]}
requiresNodeRequirementDto

Permission the step needs, checked when you save a flow that adds the step, when a run starts or is retried, and again just before the step runs.

Show child attributes
resourcestringrequired

Permission resource; also the product your organization's plan must include.

Example: translate_video.process_log
actionstringrequired

Permission action.

Example: create
requiresAllNodeRequirementDto[]

Additional permissions that must all hold for this step.

Show child attributes
resourcestringrequired

Permission resource; also the product your organization's plan must include.

Example: translate_video.process_log
actionstringrequired

Permission action.

Example: create
subWorkflowNamestring

Internal name of the product workflow the step runs. Informational.

Example: translate_video_dubbing
subWorkflowVersionnumber

Version of that workflow. Informational.

Example: 1
subWorkflowInputKeysstring[]

Inputs of that workflow. Informational.

Example: ["processId","orgId"]
portTypesPortTypeDto[]required

Every port type a field's dataType can name.

Show child attributes
keystringrequired

Matches a field's dataType.

Example: tv_process_id
labelstringrequired

Display name.

Example: Video run
colorstringrequired

Colour the Universe app draws it in.

Example: #2563EB
galaxiesStepGalaxyDto[]required

The products that contribute step types.

Show child attributes
galaxystringrequired

Matches a step type's galaxy.

Example: translate-video
labelstringrequired

Display name.

Example: Video Dubbing
accentstringrequired

Accent colour the Universe app uses.

Example: #6366F1
aiModelsAiModelDto[]required

The models the LLM step (ai.llm) can use.

Show child attributes
idstringrequired

Model id. Use it as the LLM step's config.model.

Example: gpt-5.6-luna
providerstringrequired

Who provides the model.

Enum values:openaigoogleanthropic
Example: openai
emitsstringrequired

What the model produces. It must match the kind of output the step is set to produce.

Enum values:textimagevideo
Example: text
labelstringrequired

Display name.

Example: GPT-5.6 Luna
hintstringrequired

Short description.

Example: Cheapest here · OpenAI
acceptsNativelystring[]required

File kinds the model reads directly, beyond plain text, such as image, pdf, audio or video.

Example: ["image","pdf"]
rateAiModelRateDtorequired

Its price list rate. Your organization may have its own rates.

Show child attributes
kindstringrequired

How the model is billed: per 1,000 tokens (input and output), per image (perImage) or per second of video (perSecond).

Enum values:tokensimagevideo
Example: tokens
inputnumber

Credits per 1,000 input tokens (tokens only).

Example: 1
outputnumber

Credits per 1,000 output tokens (tokens only).

Example: 5
perImagenumber

Credits per image (image only).

Example: 6
perSecondnumber

Credits per second of video (video only).

Example: 60
contextWindowTokensnumber

Largest input the model takes, in tokens.

Example: 1050000
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/node-types
curl '{{API_BASE_URL}}/v1/cosmos/node-types' \
  --header 'x-api-key: YOUR_API_KEY'
{
  "nodeTypes": [
    {
      "key": "tv.instant_clone",
      "kind": "control",
      "controlKind": "approval",
      "system": true,
      "galaxy": "translate-video",
      "label": "Dub with Voice Clone",
      "description": "Dub a video into another language, re-voicing each speaker in their own cloned voice.",
      "icon": "mic",
      "category": "translate-video",
      "inputSchema": [
        {
          "key": "targetLanguage",
          "label": "Target language",
          "type": "language",
          "dataType": "language",
          "required": true,
          "multiple": true,
          "description": "The language to translate and dub into.",
          "options": [
            {}
          ],
          "optionsSource": "cosmos_ai_models",
          "default": "auto-detect",
          "refOutputKey": "deliverable",
          "modalities": [
            "docx"
          ],
          "dataTypeFrom": "inputModality",
          "modalitiesFrom": "inputModality",
          "modalitiesMap": {
            "image": []
          }
        }
      ],
      "outputSchema": [
        {
          "key": "targetLanguage",
          "label": "Target language",
          "type": "language",
          "dataType": "language",
          "required": true,
          "multiple": true,
          "description": "The language to translate and dub into.",
          "options": [
            {}
          ],
          "optionsSource": "cosmos_ai_models",
          "default": "auto-detect",
          "refOutputKey": "deliverable",
          "modalities": [
            "docx"
          ],
          "dataTypeFrom": "inputModality",
          "modalitiesFrom": "inputModality",
          "modalitiesMap": {
            "image": []
          }
        }
      ],
      "outputsFrom": {
        "configKey": "outputFields",
        "type": "text",
        "dataType": "text"
      },
      "configSchema": [
        {
          "key": "targetLanguage",
          "label": "Target language",
          "type": "language",
          "dataType": "language",
          "required": true,
          "multiple": true,
          "description": "The language to translate and dub into.",
          "options": [
            {}
          ],
          "optionsSource": "cosmos_ai_models",
          "default": "auto-detect",
          "refOutputKey": "deliverable",
          "modalities": [
            "docx"
          ],
          "dataTypeFrom": "inputModality",
          "modalitiesFrom": "inputModality",
          "modalitiesMap": {
            "image": []
          }
        }
      ],
      "navigation": {
        "kind": "tv_editor",
        "deepLink": "galaxy/translate-video/editor/9b1f6c2e-3d4a-4e5f-8a7b-1c2d3e4f5a6b",
        "processId": "9b1f6c2e-3d4a-4e5f-8a7b-1c2d3e4f5a6b",
        "decisionId": "4a8e2b71-0c3d-4f5e-9a6b-7c8d9e0f1a2b"
      },
      "flags": {
        "charges": true,
        "humanGate": false,
        "requiresUpstream": false
      },
      "requires": {
        "resource": "translate_video.process_log",
        "action": "create"
      },
      "requiresAll": [
        {
          "resource": "translate_video.process_log",
          "action": "create"
        }
      ],
      "subWorkflowName": "translate_video_dubbing",
      "subWorkflowVersion": 1,
      "subWorkflowInputKeys": [
        "processId",
        "orgId"
      ]
    }
  ],
  "portTypes": [
    {
      "key": "tv_process_id",
      "label": "Video run",
      "color": "#2563EB"
    }
  ],
  "galaxies": [
    {
      "galaxy": "translate-video",
      "label": "Video Dubbing",
      "accent": "#6366F1"
    }
  ],
  "aiModels": [
    {
      "id": "gpt-5.6-luna",
      "provider": "openai",
      "emits": "text",
      "label": "GPT-5.6 Luna",
      "hint": "Cheapest here · OpenAI",
      "acceptsNatively": [
        "image",
        "pdf"
      ],
      "contextWindowTokens": 1050000,
      "rate": {
        "kind": "tokens",
        "input": 1,
        "output": 5,
        "perImage": 6,
        "perSecond": 60
      }
    }
  ]
}

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