Skip to main content

Conductor API

Conductor is the control plane for your durable workflows, and this HTTP API is how you drive it programmatically: register applications with Conductor and tune their settings, search workflows, cancel or fork them, inspect queues and schedules, drive schedules, read metrics and audit logs, and manage members, roles, and API keys.

This is the Conductor half of the DBOS Console — what the console shows for an application connected to Conductor, whether that application runs on your own infrastructure or on DBOS Cloud. DBOS Cloud's own operations, such as deploying an application or provisioning a database, are not part of this API; they have their own CLI.

The API is described by an OpenAPI 3.1 specification generated directly from the running server, so it is never out of date with the deployment serving it. Both the console and the dbosctl CLI drive Conductor through this API, using clients generated from that spec.

Base URL​

DeploymentBase URL
DBOS-hosted Conductorhttps://cloud.dbos.dev/conductor
Self-hosted Conductorhttp://<your-conductor-host>:8090 (port 8090 by default)

Every path is relative to that base, so the full URL of an operation is, for example:

https://cloud.dbos.dev/conductor/v2/orgs/my_org/apps/my-app/workflows

The paths themselves are identical in both deployments; only the base differs.

The OpenAPI Specification​

There are three ways to obtain the spec.

From DBOS-hosted Conductor. The spec is served publicly (no authentication required) and reflects the currently deployed version:

curl -O https://cloud.dbos.dev/conductor/v2/openapi.json

If your toolchain does not yet support OpenAPI 3.1, request the 3.0 downgrade instead:

curl -O https://cloud.dbos.dev/conductor/v2/openapi-3.0.json

The spec served here is Conductor's own, with only its servers entry repointed at /conductor so that generated clients resolve paths correctly through DBOS-hosted Conductor.

From a self-hosted Conductor. The server mounts the spec and an interactive browser at its root, all unauthenticated:

PathServes
/openapi.jsonOpenAPI 3.1 specification (JSON)
/openapi.yamlThe same specification in YAML
/openapi-3.0.jsonOpenAPI 3.0 downgrade
/docsInteractive API browser
/schemas/*The JSON Schema documents referenced by the spec

For example, with the Docker Compose setup from the Self-Hosting Guide, open http://localhost:8090/docs to explore the API in your browser.

From the Conductor image. Conductor's openapi subcommand prints the spec to stdout without connecting to a database or requiring any runtime configuration, which is convenient in CI and code generation pipelines. The image's entrypoint starts the server, so override it to reach the subcommand:

docker run --rm --entrypoint ./dbos-conductor dbosdev/conductor:latest \
openapi > openapi.json

docker run --rm --entrypoint ./dbos-conductor dbosdev/conductor:latest \
openapi -spec-version 3.0 > openapi-3.0.json

Pin a version tag rather than latest when the spec feeds code generation, so a regenerated client changes only when you choose to bump it.

info

This emits the complete route surface, including operations that a no-auth deployment does not register. See Self-hosted differences below.

Authentication​

All authenticated requests carry a bearer token:

Authorization: Bearer <token>

Conductor accepts two kinds of token, distinguished by their prefix:

CredentialDescription
API keyA key beginning with dbos_, created with POST /v2/orgs/{orgName}/tokens/{tokenName} (or from the console, or with dbosctl api-key create). Keys authenticate machine-to-machine callers and can be scoped to specific applications and permissions. A key carries no user identity, so it cannot call GET /v2/users/me.
User JWTAn OIDC-issued JSON Web Token identifying a human user. This is what the console and dbosctl login use.

Both are sent the same way; Conductor tells them apart by the dbos_ prefix.

Authorization is enforced per operation using the permission model described in Permissions and API Keys — a caller needs application.read to list workflows, application.write to cancel one, organization.write to manage members, and so on. An unauthenticated request returns 401; an authenticated request lacking the required permission returns 403.

Resource Naming​

Almost every operation is scoped to an organization, and most are additionally scoped to an application:

/v2/orgs/{orgName}/apps/{appName}/workflows/{workflowId}
Path parameterConstraints
orgName3–30 characters, matching ^[a-z0-9_]+$
appName3–256 characters, matching ^[a-z0-9-_]+$

Only two operations sit outside an organization: POST /v2/users and GET /v2/users/me.

How Operations Are Served​

Conductor answers some requests from its own database and delegates the rest to your running application. Which one applies is a property of the resource, not of whether the operation reads or writes:

Served fromOperations
Conductor's databaseUsers, organizations, roles, permissions, and API keys; application registration, settings, and executor listing; alerting rules, audit logs, and metrics
Your applicationEverything under workflows, queues, schedules, and the workflow archive — reads as much as mutations — plus listing application versions and setting the latest one

Conductor dispatches the second group over the websocket each executor holds open, waits for the reply, and returns it. Those operations therefore need a healthy executor connected for the target application, and they read whatever that executor's system database holds — Conductor neither caches nor mirrors it.

They fail with 503 when the application has no healthy executor connected, and 502 when every healthy executor fails to answer. A 503 from GET .../workflows means your application is not connected, not that it has no workflows.

Workflow archive operations go only to executors that read the application's workflow archive. They fail with 409 when no healthy executor of the application does.

Errors​

Errors are returned as RFC 9457 problem details with content type application/problem+json:

{
"status": 404,
"title": "Not Found",
"detail": "workflow 8f4a1e0c-1b2d-4c9a-a3e5-77d2c9a1b6ef not found",
"type": "about:blank"
}

Validation failures add an errors array locating each individual problem:

{
"status": 422,
"title": "Unprocessable Entity",
"detail": "validation failed",
"errors": [
{ "location": "body.limit", "message": "expected integer", "value": "ten" }
]
}

Common statuses:

StatusMeaning
400 / 422Malformed request or failed validation
401Missing, expired, or invalid credentials
403Authenticated, but lacking the required permission
404No such organization, application, or resource — or an operation not registered in this deployment mode
409A workflow archive operation, but no healthy executor of the application reads a workflow archive
502 / 503The application serving this resource failed to answer, or has no healthy executor connected — see How Operations Are Served

Listing and Filtering​

List operations that can return large result sets accept limit and offset query parameters for paging, and sortDesc=true to return newest results first. Time windows are given as startTime and endTime in RFC 3339 format.

Workflow listing comes in two flavors:

  • GET .../workflows takes a few common filters as query parameters — status, workflowName, limit, offset, sortDesc, loadInput, loadOutput — and is convenient for quick queries.
  • POST .../workflows/search takes a JSON body and supports the full filter set the console uses: arrays of status, workflowName, workflowIds, workflowIdPrefix, queueName, scheduleName, user, executorId, appVersion, parentWorkflowId, and forkedFrom, plus startTime/endTime, completedAfter/completedBefore, dequeuedAfter/dequeuedBefore, hasParent, wasForkedFrom, queuesOnly, attributes, and the same paging and sorting fields.

Workflow inputs and outputs can be large, so they are omitted unless you ask for them with loadInput and loadOutput.

Endpoint Reference​

The tables below are a map of the whole API. The generated spec is the authoritative reference for request and response schemas of each operation.

Users and organizations​

OperationEndpoint
Register userPOST /v2/users
Get current userGET /v2/users/me
Get organizationGET /v2/orgs/{orgName}
Update organizationPATCH /v2/orgs/{orgName}
Join organizationPOST /v2/orgs/{orgName}/join
Generate join secretPOST /v2/orgs/{orgName}/secrets
List membersGET /v2/orgs/{orgName}/members
Remove memberDELETE /v2/orgs/{orgName}/members/{username}
List domain claimsGET /v2/orgs/{orgName}/domain-claims
Claim a domainPOST /v2/orgs/{orgName}/domain-claims
Release a domain claimDELETE /v2/orgs/{orgName}/domain-claims/{domain}

A domain claim automatically adds users who register with an email at that domain to your organization. On DBOS-hosted Conductor a claim takes effect only after DBOS approves it; on a self-hosted deployment it takes effect immediately. Claims apply to new registrations only: approving one never moves users who already have accounts, and releasing one never removes them.

Roles, permissions, and API keys​

OperationEndpoint
List grantable permissionsGET /v2/orgs/{orgName}/permissions
List rolesGET /v2/orgs/{orgName}/roles
Create rolePOST /v2/orgs/{orgName}/roles
Delete roleDELETE /v2/orgs/{orgName}/roles/{roleName}
Grant role to a memberPUT /v2/orgs/{orgName}/members/{username}/roles/{roleName}
List API keysGET /v2/orgs/{orgName}/tokens
Create API keyPOST /v2/orgs/{orgName}/tokens/{tokenName}
Rename API keyPATCH /v2/orgs/{orgName}/tokens/{tokenName}
Delete API keyDELETE /v2/orgs/{orgName}/tokens/{tokenName}

Create an API key with an optional body scoping it to particular applications and permissions; omitting a field leaves that dimension unscoped:

{
"appNames": ["my-app"],
"permissions": ["application.read", "metric.read"]
}

The response contains the key's secret. It is returned once, at creation, and cannot be retrieved afterwards. A key can be renamed afterwards with PATCH /v2/orgs/{orgName}/tokens/{tokenName} and a body of {"newName": "..."}; the secret itself never changes, so rotating it means deleting the key and creating a new one. See Permissions and API Keys for the full list of permissions.

Applications​

OperationEndpoint
List applicationsGET /v2/orgs/{orgName}/apps
Get applicationGET /v2/orgs/{orgName}/apps/{appName}
Register applicationPUT /v2/orgs/{orgName}/apps/{appName}
Update applicationPATCH /v2/orgs/{orgName}/apps/{appName}
Delete applicationDELETE /v2/orgs/{orgName}/apps/{appName}
List versionsGET /v2/orgs/{orgName}/apps/{appName}/versions
Set latest versionPATCH /v2/orgs/{orgName}/apps/{appName}/versions/latest
List executorsGET /v2/orgs/{orgName}/apps/{appName}/executors
List metricsGET /v2/orgs/{orgName}/apps/{appName}/metrics

PATCH .../apps/{appName} is where an application's tuning settings live: the executor timeout, the global workflow timeout, the workflow retention thresholds, and private mode.

Each executor that GET .../executors lists has a workflowArchive field, which is true if it serves reads of the application's workflow archive.

info

GET .../metrics returns metrics for one application over a time window. If you want to scrape Conductor from Prometheus, Datadog, or Grafana, use the OpenMetrics endpoint described in Metrics instead.

Workflows​

OperationEndpoint
List workflowsGET /v2/orgs/{orgName}/apps/{appName}/workflows
Search workflowsPOST /v2/orgs/{orgName}/apps/{appName}/workflows/search
Workflow aggregatesPOST /v2/orgs/{orgName}/apps/{appName}/workflows/aggregates
Step aggregatesPOST /v2/orgs/{orgName}/apps/{appName}/steps/aggregates
Get workflowGET /v2/orgs/{orgName}/apps/{appName}/workflows/{workflowId}
List stepsGET .../workflows/{workflowId}/steps
List eventsGET .../workflows/{workflowId}/events
List notificationsGET .../workflows/{workflowId}/notifications
List streamsGET .../workflows/{workflowId}/streams
Cancel workflowPOST .../workflows/{workflowId}/cancel
Resume workflowPOST .../workflows/{workflowId}/resume
Fork workflowPOST .../workflows/{workflowId}/fork
Rewind workflowPOST .../workflows/{workflowId}/rewind
Delete workflowDELETE .../workflows/{workflowId}
Export workflowGET .../workflows/{workflowId}/export
Import workflowPOST .../workflows/import
Bulk cancelPOST .../workflows/bulk-cancel
Bulk resumePOST .../workflows/bulk-resume
Bulk deletePOST .../workflows/bulk-delete
Bulk fork from failurePOST .../workflows/bulk-fork-from-failure

The semantics of cancelling, resuming, forking, and rewinding are described in Workflow Management. Rewind takes an optional body with startStep (defaults to the workflow's first step), appVersion (defaults to the version the workflow last ran on), queueName, queuePartitionKey, and shardKey (required on a sharded system database), and returns 204. The bulk variants take an array of workflow IDs and apply the same operation to each, which is far cheaper than issuing the calls one at a time. Export and import move a workflow and its steps between deployments as a JSON document — useful for reproducing a production failure in a development environment.

Workflow archive​

OperationEndpoint
Search archived workflowsPOST /v2/orgs/{orgName}/apps/{appName}/archive/workflows/search
Get archived workflowGET /v2/orgs/{orgName}/apps/{appName}/archive/workflows/{workflowId}
List archived stepsGET .../archive/workflows/{workflowId}/steps
List archived eventsGET .../archive/workflows/{workflowId}/events
List archived notificationsGET .../archive/workflows/{workflowId}/notifications
List archived streamsGET .../archive/workflows/{workflowId}/streams
Import archived workflowPOST .../archive/workflows/{workflowId}/import

These operations read an application's workflow archive, which holds workflows its system database may no longer have. Archiving is configured in your application: see Workflow Archiving for Python or TypeScript.

  • An archived workflow is identified by its ID and the time it completed, so every operation on one takes a required completedAt query parameter: the workflow's completedAt, as an archive search returns it. A workflow that completed more than once, for example after being resumed, has an archived snapshot for each completion.
  • Search returns archived workflows a page at a time, newest completion first, so limit is required. It takes the filters of POST .../workflows/search except workflowIdPrefix, queuesOnly, isFork, and sortDesc. Set completedAfter and completedBefore to narrow the files a search reads, especially if it times out.
  • Import copies an archived workflow back into the system database and returns it. It fails if the system database already has a workflow with that ID, and needs application.write; the other operations need application.read.

Queues​

OperationEndpoint
List queuesGET /v2/orgs/{orgName}/apps/{appName}/queues
Get queueGET /v2/orgs/{orgName}/apps/{appName}/queues/{queueName}

Autoscaling​

OperationEndpoint
Get autoscaling policyGET /v2/orgs/{orgName}/apps/{appName}/autoscaling-policy
Set autoscaling policyPUT /v2/orgs/{orgName}/apps/{appName}/autoscaling-policy
Delete autoscaling policyDELETE /v2/orgs/{orgName}/apps/{appName}/autoscaling-policy
Desired executors, all versionsGET /v2/orgs/{orgName}/apps/{appName}/autoscale
Desired executors, one versionGET /v2/orgs/{orgName}/apps/{appName}/autoscale/versions/{version}

The policy names the queue whose backlog drives the executor count; the two autoscale operations return how many executors each application version needs right now. {version} is a registered version or latest. See Autoscaling and Version Management.

Schedules​

OperationEndpoint
List schedulesGET /v2/orgs/{orgName}/apps/{appName}/schedules
Get scheduleGET /v2/orgs/{orgName}/apps/{appName}/schedules/{scheduleName}
Pause schedulePOST .../schedules/{scheduleName}/pause
Resume schedulePOST .../schedules/{scheduleName}/resume
Trigger schedulePOST .../schedules/{scheduleName}/trigger
Backfill schedulePOST .../schedules/{scheduleName}/backfill

Trigger runs a scheduled workflow immediately, out of band, and returns the started workflow's ID. Backfill replays a schedule across a past time window, starting one workflow per occurrence the schedule would have fired, and returns all of their IDs.

Alerting and audit logs​

OperationEndpoint
List alerting rulesGET /v2/orgs/{orgName}/apps/{appName}/alerting-rules
Create alerting rulePOST /v2/orgs/{orgName}/apps/{appName}/alerting-rules
Delete alerting ruleDELETE /v2/orgs/{orgName}/apps/{appName}/alerting-rules/{ruleId}
List audit logsGET /v2/orgs/{orgName}/audit-logs

Alerting rules are described in Alerting. Rules can't be updated in place; delete and recreate a rule to change it. Creating a rule takes a ruleType (WorkflowFailure, SlowQueue, or UnresponsiveApplication), a ruleMetadata object, an optional minIntervalSecs (the minimum time between two alerts from the rule), and an optional receivingAppName (defaults to the rule's own application; required, and different from it, for UnresponsiveApplication). ruleMetadata holds num_failures, period_secs, and an optional workflow_name for WorkflowFailure; enqueued_secs and an optional queue_name for SlowQueue; and nothing ({}) for UnresponsiveApplication. Omit workflow_name or queue_name to match all workflows or all queues (do not pass *). Audit log listing accepts startTime, endTime, operation, subject, and target filters alongside limit and offset; see Audit Logs.

Self-Hosted Differences​

A self-hosted Conductor can run with OIDC authentication enabled or with authentication disabled entirely (see the Self-Hosting Guide). In no-auth mode there is no user identity and no multi-organization concept, so the operations that depend on them are not registered at all and respond 404:

  • every organization operation: getOrg, updateOrg, joinOrg, generateSecret, listMembers, removeMember, listDomainClaims, requestDomainClaim, and releaseDomainClaim;
  • every role operation: listRoles, createRole, deleteRole, grantRole;
  • the user operations registerUser and getCurrentUser;
  • audit log listing, listAuditLogs.

These operations are marked in the spec with the x-dbos-requires-oauth extension, so a generated client or a tool reading the spec can identify them without hardcoding a list:

jq -r '.paths | to_entries[] | .key as $p | .value | to_entries[]
| select(.value["x-dbos-requires-oauth"])
| "\(.key | ascii_upcase) \($p)"' openapi.json

Everything else — applications, workflows, queues, schedules, alerting, and metrics — behaves identically in all three modes.

Generating a Client​

Because the spec is generated from the server rather than maintained by hand, generating your client from it is the recommended way to call the API. Any OpenAPI generator works. For example, with oapi-codegen for Go:

curl -o openapi.json https://cloud.dbos.dev/conductor/v2/openapi.json
go tool oapi-codegen -package conductor -generate client,types openapi.json > conductor.gen.go

Or with openapi-python-client:

curl -o openapi-3.0.json https://cloud.dbos.dev/conductor/v2/openapi-3.0.json
openapi-python-client generate --path openapi-3.0.json

Pin the generated client to a checked-in copy of the spec and regenerate deliberately, so that a change to the deployed API surfaces as a reviewable diff rather than as a silent change in your build.

If you would rather not write a client at all, the dbosctl CLI already covers the operational surface of this API from the command line.