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

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

Auth Required

Replace the members responsible for one step of a run. Owners get a notification in the Universe app when their step finishes, and when an Approval gate they own is waiting for them. Only product steps and Approval gates take owners. Send an empty memberIds to remove them all. Returns the owners of every step of the run.

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

Path Parameters

idstring · uuidrequired

Run ID (executionId), from Start a run or List runs.

Example: a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d
nodeIdstringrequired

The step's node id in the flow (the nodeId in the run's nodes).

Example: review

Bodyrequiredapplication/json

memberIdsstring · uuid[]

Member IDs in your organization responsible for this step. They replace the current owners; an empty list (or none) removes them all.

Example: ["2b4d6f8a-1c3e-4a5b-8c7d-9e0f1a2b3c4d"]

Responses

201The owners were replaced.
application/json
stepOwnersStepOwnerDto[]required

The owners of every step of the run after the change.

Show child attributes
nodeIdstringrequired

The step's node id.

Example: review
memberIdstring · uuidrequired

Member ID in your organization.

Example: 2b4d6f8a-1c3e-4a5b-8c7d-9e0f1a2b3c4d
userIdstring | nullrequired

The member's user ID.

Example: Uq3x9KpL2vT8wYz1
namestring | nullrequired

The member's name.

Example: Priya Sharma
emailstring | nullrequired

The member's email address.

Example: priya@example.com
400A field failed validation, or: `Step "<nodeId>" is not part of this flow.`, `"<step>" is not a step that can be given an owner.` (only product steps and Approval gates take owners), or `Some members do not belong to this organization`.
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 run with this `id` in your organization, or the run is in a project you can’t see (`Execution <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
POST/v1/cosmos/executions/{id}/nodes/{nodeId}/step-owners
curl '{{API_BASE_URL}}/v1/cosmos/executions/a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d/nodes/review/step-owners' \
  --request POST \
  --header 'x-api-key: YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
  "memberIds": [
    "2b4d6f8a-1c3e-4a5b-8c7d-9e0f1a2b3c4d"
  ]
}'
{
  "stepOwners": [
    {
      "nodeId": "review",
      "memberId": "2b4d6f8a-1c3e-4a5b-8c7d-9e0f1a2b3c4d",
      "userId": "Uq3x9KpL2vT8wYz1",
      "name": "Priya Sharma",
      "email": "priya@example.com"
    }
  ]
}

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