Solti API (0.4.0)

Base URL

Base URL for all endpoints is: https://api.solti.run/1

Authentication

To authenticate, you must provide a valid API key in the X-Solti-Api-Key header. For example:

curl -H "X-Solti-Api-Key: <your-api-key>" https://api.solti.run/1/jobs

The API key can be obtained from either by creating an API key by this API or by Solti's web console.

Account

Endpoints for the authenticated account.

These are global (non-project-scoped) endpoints and accept OAuth user authentication only (Solti CLI / SDKs). API Key authentication is rejected because API keys are project-scoped machine-user credentials.

Get the current account

Returns the authenticated account with its organization memberships.

Responses

Response samples

Content type
application/json
{
  • "id": "string",
  • "email": "string",
  • "organizations": [
    ]
}

Organizations

Endpoints for organization and member management.

Global (non-project-scoped) endpoints accepting OAuth user authentication only. Organization roles, from most to least privileged: owner, admin, member.

List organizations

Lists the organizations the authenticated account belongs to.

query Parameters
offset
integer (Offset) >= 0
Default: 0
limit
integer (Limit) [ 1 .. 100 ]
Default: 100

Responses

Response samples

Content type
application/json
{
  • "organizations": [
    ]
}

Create an organization

Creates an organization; the caller becomes its owner.

Request Body schema: application/json
required
name
required
string (Name) [ 1 .. 64 ] characters
category
string (Category) <= 32 characters
Default: "personal"

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "category": "personal"
}

Response samples

Content type
application/json
{
  • "id": "string",
  • "displayName": "string",
  • "category": "string",
  • "role": "string"
}

Get an organization

path Parameters
org_id
required
string (Org Id)

Responses

Response samples

Content type
application/json
{
  • "id": "string",
  • "displayName": "string",
  • "category": "string",
  • "role": "string"
}

Update an organization

Updates the organization's display name and/or category. Requires admin or higher.

path Parameters
org_id
required
string (Org Id)
Request Body schema: application/json
required
displayName
required
string (Displayname) [ 1 .. 64 ] characters
Category (string) or Category (null) (Category)

Responses

Request samples

Content type
application/json
{
  • "displayName": "string",
  • "category": "string"
}

Response samples

Content type
application/json
{
  • "id": "string",
  • "displayName": "string",
  • "category": "string",
  • "role": "string"
}

Delete an organization

Permanently deletes the organization. Requires owner.

path Parameters
org_id
required
string (Org Id)

Responses

Response samples

Content type
application/json
null

List organization members

path Parameters
org_id
required
string (Org Id)
query Parameters
offset
integer (Offset) >= 0
Default: 0
limit
integer (Limit) [ 1 .. 100 ]
Default: 100

Responses

Response samples

Content type
application/json
{
  • "members": [
    ]
}

Change a member's organization role

Requires admin or higher. Only owners can grant the owner role.

path Parameters
org_id
required
string (Org Id)
member_user_id
required
string (Member User Id)
Request Body schema: application/json
required
role
required
string (Role)

One of: owner, admin, member.

Responses

Request samples

Content type
application/json
{
  • "role": "string"
}

Response samples

Content type
application/json
null

Remove a member from the organization

path Parameters
org_id
required
string (Org Id)
member_user_id
required
string (Member User Id)

Responses

Response samples

Content type
application/json
null

Projects

Endpoints for project management within an organization.

Global (non-project-scoped) endpoints accepting OAuth user authentication only. Projects are the scope for all project-scoped resources (jobs, cronjobs, keys, connections).

List projects in an organization

path Parameters
org_id
required
string (Org Id)
query Parameters
offset
integer (Offset) >= 0
Default: 0
limit
integer (Limit) [ 1 .. 100 ]
Default: 100

Responses

Response samples

Content type
application/json
{
  • "projects": [
    ]
}

Create a project

Requires admin or higher.

path Parameters
org_id
required
string (Org Id)
Request Body schema: application/json
required
name
required
string (Name) [ 1 .. 64 ] characters
Routingmode (string) or Routingmode (null) (Routingmode)
Default: "serverless"

The per-project routing toggle (change 107). Omitted/empty defaults to 'serverless' (decision A-1: new projects default serverless). The removed project_type field is rejected with 422.

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "routingMode": "serverless"
}

Response samples

Content type
application/json
{
  • "id": "string",
  • "displayName": "string",
  • "organizationId": "string",
  • "routingMode": "byoc"
}

Get a project

path Parameters
project_id
required
string (Project Id)

Responses

Response samples

Content type
application/json
{
  • "id": "string",
  • "displayName": "string",
  • "organizationId": "string",
  • "routingMode": "byoc"
}

Update a project

Requires admin or higher.

path Parameters
project_id
required
string (Project Id)
Request Body schema: application/json
required
displayName
string (Displayname) [ 1 .. 64 ] characters
Routingmode (string) or Routingmode (null) (Routingmode)

The mutable routing toggle (change 107 B3, project admin). Toggling to 'byoc' with zero compute connections is accepted — effective routing still falls back to serverless.

Responses

Request samples

Content type
application/json
{
  • "displayName": "string",
  • "routingMode": "byoc"
}

Response samples

Content type
application/json
{
  • "id": "string",
  • "displayName": "string",
  • "organizationId": "string",
  • "routingMode": "byoc"
}

Delete a project

Requires organization owner.

path Parameters
project_id
required
string (Project Id)

Responses

Response samples

Content type
application/json
null

Keys

Endpoints for managing API keys.

API keys are used to authenticate requests to the Solti API. They can be created, listed, updated, and deleted by users with the appropriate permissions.

API keys can have one of the following roles:

  • admin: Full access to all Solti API endpoints, including sensitive operations such as managing API keys and connections.
  • developer: Access to major Solti API endpoints sufficient for most development tasks.
  • viewer: Read-only access to Solti API endpoints, suitable for monitoring and auditing purposes.

Create a new API key

Creates a new API key for programmatic access to the Solti API.

Required role: "admin".

Request Body schema: application/json
required
name
required
string (Name) [ 3 .. 50 ] characters ^[a-zA-Z0-9][a-zA-Z0-9_-]*$

Human-readable name of the API key. The name must be between 3 and 50 characters long, start with an alphanumeric character, and can contain alphanumeric characters, underscores, or hyphens.

role
required
string (Role)
Enum: "admin" "developer" "viewer"

Role to assign to the API key

Expires At (string) or Expires At (null) (Expires At)

Optional expiration timestamp

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "role": "admin",
  • "expires_at": "2019-08-24T14:15:22Z"
}

Response samples

Content type
application/json
{
  • "id": "string",
  • "name": "string",
  • "value": "string",
  • "role": "admin",
  • "created_at": "2019-08-24T14:15:22Z",
  • "expires_at": "2019-08-24T14:15:22Z"
}

List API keys

List API keys given the provided filters.

Required roles: "viewer" or higher.

query Parameters
Name (string) or Name (null) (Name)

Filter by human-readable name

Offset (integer) or Offset (null) (Offset)
Default: 0

Number of items to skip

Limit (integer) or Limit (null) (Limit)
Default: 50

Maximum number of items to return

"created_at" (string) or Sort By (null) (Sort By)

Field to sort by

Sort Order (string) or Sort Order (null) (Sort Order)

Sort order

Responses

Response samples

Content type
application/json
{
  • "keys": [
    ],
  • "total": 0,
  • "offset": 0,
  • "limit": 0
}

Get an API key by ID

Retrieve an API key by its unique identifier.

Required roles: "viewer" or higher.

path Parameters
key_id
required
string (Key Id)

Responses

Response samples

Content type
application/json
{
  • "id": "string",
  • "name": "string",
  • "role": "admin",
  • "created_at": "2019-08-24T14:15:22Z",
  • "expires_at": "2019-08-24T14:15:22Z"
}

Update an API key

Update an existing API key's attributes.

Required role: "admin".

path Parameters
key_id
required
string (Key Id)
Request Body schema: application/json
required
Role (string) or Role (null) (Role)

New role for the API key

Responses

Request samples

Content type
application/json
{
  • "role": "admin"
}

Delete an API key

Delete an existing API key.

Required role: "admin".

path Parameters
key_id
required
string (Key Id)

Responses

Connections

Endpoints for managing Solti connections.

Connections are used to store configuration for external systems. They can be created, listed, updated, and deleted by users with the appropriate permissions.

Create a new connection

Creates a new Solti connection. Duplicate names within a project return 409 Conflict.

Required role: "admin".

Request Body schema: application/json
required
name
required
string (Name) [ 3 .. 50 ] characters ^[a-zA-Z0-9][a-zA-Z0-9_-]*$

Human-readable name of the connection. The name must be between 3 and 50 characters long, start with an alphanumeric character, and can contain alphanumeric characters, underscores, or hyphens.

type
required
string (Type)

Type of connection (aws)

Value: "aws"
Auth Method (string) or Auth Method (null) (Auth Method)
Default: "static"

Credential storage method: 'static' (sealed user secret), 'wif' (workload identity federation — aws/gcp/azure only) or 'github_app' (GitHub App installation — github only, completed by the install flow)

access_key_id
required
string (Access Key Id)

AWS access key ID

secret_access_key
required
string (Secret Access Key)

AWS secret access key

Responses

Request samples

Content type
application/json
Example
{
  • "name": "string",
  • "type": "aws",
  • "auth_method": "static",
  • "access_key_id": "string",
  • "secret_access_key": "string"
}

Response samples

Content type
application/json
Example
{
  • "name": "string",
  • "type": "aws",
  • "auth_method": "static",
  • "access_key_id": "string",
  • "secret_access_key": "string"
}

List connections

List Solti connections given the provided filters. Credentials are always redacted.

Required roles: "viewer" or higher.

query Parameters
Name (string) or Name (null) (Name)

Filter by human-readable name

Offset (integer) or Offset (null) (Offset)
Default: 0

Number of items to skip

Limit (integer) or Limit (null) (Limit)
Default: 50

Maximum number of items to return

"name" (string) or Sort By (null) (Sort By)

Field to sort by

Sort Order (string) or Sort Order (null) (Sort Order)

Sort order

Responses

Response samples

Content type
application/json
{
  • "connections": [
    ],
  • "total": 0,
  • "offset": 0,
  • "limit": 0
}

GitHub App install callback

The GitHub App's registered callback URL (public — no Solti credential; the signed state token is the gate). Verifies the state (signature, TTL, single-use nonce), probes the installation, then creates or completes the github_app connection. setup_action=update (a GitHub-side reconfiguration) leaves the connection unchanged. Responds with a small HTML page.

query Parameters
installation_id
required
string

GitHub installation id

state
required
string

Signed state token from the install URL

string or null

GitHub setup action ('update' leaves the connection unchanged)

Responses

Start GitHub App install flow

Returns the GitHub App installation URL carrying a signed, single-use state token bound to the project, user and connection name. The GitHub redirect lands on the callback URL, which creates or completes the github_app connection.

Required roles: "admin" or "developer".

Request Body schema: application/json
required
name
required
string (Name) [ 3 .. 50 ] characters ^[a-zA-Z0-9][a-zA-Z0-9_-]*$

Name of the connection the install flow will create or complete. The name must be between 3 and 50 characters long, start with an alphanumeric character, and can contain alphanumeric characters, underscores, or hyphens.

Organization Id (string) or Organization Id (null) (Organization Id)

Target organization (required for unscoped callers only)

Project Id (string) or Project Id (null) (Project Id)

Target project (required for unscoped callers only)

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "organization_id": "string",
  • "project_id": "string"
}

Response samples

Content type
application/json
{
  • "install_url": "string",
  • "state": "string"
}

Get a connection by name

Retrieve a Solti connection by its name. Inspecting decrypted credential values requires the "admin" role.

Required roles: "viewer" or higher.

path Parameters
name
required
string (Name)

Responses

Response samples

Content type
application/json
Example
{
  • "name": "string",
  • "type": "aws",
  • "auth_method": "static",
  • "access_key_id": "string",
  • "secret_access_key": "string"
}

Update a connection

Update an existing Solti connection's attributes (re-encrypts credentials when they change).

Required role: "admin".

path Parameters
name
required
string (Name)
Request Body schema: application/json
required
type
string (Type)
Default: "aws"

Type of connection (aws)

Value: "aws"
Auth Method (string) or Auth Method (null) (Auth Method)
Default: "static"

Credential storage method: 'static' (sealed user secret), 'wif' (workload identity federation — aws/gcp/azure only) or 'github_app' (GitHub App installation — github only, completed by the install flow)

Access Key Id (string) or Access Key Id (null) (Access Key Id)

AWS access key ID

Secret Access Key (string) or Secret Access Key (null) (Secret Access Key)

AWS secret access key

Responses

Request samples

Content type
application/json
Example
{
  • "type": "aws",
  • "auth_method": "static",
  • "access_key_id": "string",
  • "secret_access_key": "string"
}

Response samples

Content type
application/json
Example
{
  • "name": "string",
  • "type": "aws",
  • "auth_method": "static",
  • "access_key_id": "string",
  • "secret_access_key": "string"
}

Delete a connection

Delete an existing Solti connection.

Required role: "admin".

path Parameters
name
required
string (Name)

Responses

Jobs

Endpoints for submitting and managing workloads.

A workload is a declarative container task that Solti routes to the most cost-effective cloud VM via Scarcity. Jobs can be submitted as JSON or YAML.

Submit a workload

Submits a declarative workload definition (JSON or YAML body).

  • If name is provided it must be unique within the project (otherwise 409 Conflict).
  • If namePrefix is provided, a unique name is generated as <prefix>-<random suffix>.
  • If neither is provided, a Notion-like unique name is auto-generated (e.g. tidal-star-1234).

Environment variable values are write-only and masked ("<redacted>") on read.

Required roles: "developer" or higher.

Responses

Response samples

Content type
application/json
{
  • "job_id": "string",
  • "name": "string",
  • "status": "queued"
}

List jobs

List jobs in the project, sorted by creation date (newest first). Environment variable values are write-only and masked ("<redacted>").

Supports filtering by status, name (case-insensitive contains match on name or UUID), tag (repeatable), and label as "key=value" (repeatable).

Required roles: "viewer" or higher.

query Parameters
Status (string) or Status (null) (Status)

Filter by status

Name (string) or Name (null) (Name)

Filter by name or UUID, case-insensitive contains match

Array of Tag (strings) or Tag (null) (Tag)

Filter by tags (repeatable)

Array of Label (strings) or Label (null) (Label)

Filter by labels as "key:value" pairs (repeatable; "key=value" accepted for compatibility)

Offset (integer) or Offset (null) (Offset)
Default: 0

Number of items to skip

Limit (integer) or Limit (null) (Limit)
Default: 50

Maximum number of items to return

Responses

Response samples

Content type
application/json
{
  • "jobs": [
    ],
  • "total": 0,
  • "offset": 0,
  • "limit": 0
}

Get a job by UUID or name

Retrieve a job's state, execution metadata, timing, VM status, cost metrics, retry status, and any logged error summaries. Environment variable values are write-only and masked ("<redacted>"). The path parameter accepts either the job's unique UUID or its unique name.

Required roles: "viewer" or higher.

path Parameters
job_id_or_name
required
string (Job Id Or Name)

Responses

Response samples

Content type
application/json
{
  • "id": "string",
  • "organization_id": "string",
  • "project_id": "string",
  • "name": "string",
  • "namePrefix": "string",
  • "status": "queued",
  • "credentials_status": "empty",
  • "vm_status": "nonassigned",
  • "image": "string",
  • "command": [
    ],
  • "args": [
    ],
  • "env": {
    },
  • "volumes": [
    ],
  • "resources": { },
  • "cloud": [
    ],
  • "region": [
    ],
  • "labels": {
    },
  • "tags": [
    ],
  • "retry_count": 0,
  • "max_retries": 0,
  • "selected_provider": "string",
  • "selected_region": "string",
  • "selected_instance_type": "string",
  • "vm_instance_id": "string",
  • "ip_address": "string",
  • "estimated_cost": 0,
  • "actual_cost": 0,
  • "ondemand_cost": 0,
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z",
  • "last_heartbeat_at": "2019-08-24T14:15:22Z",
  • "started_at": "2019-08-24T14:15:22Z",
  • "ended_at": "2019-08-24T14:15:22Z",
  • "timeout_seconds": 3600,
  • "run_after": "2019-08-24T14:15:22Z",
  • "error_message": "string",
  • "routing": "byoc",
  • "queueReason": "string"
}

Cancel a job

Cancels a queued, booting, or running job. The scheduler detects the transition and triggers immediate VM teardown. Environment variable values are write-only and masked ("<redacted>"). The path parameter accepts either the job's unique UUID or its unique name.

Required roles: "developer" or higher.

path Parameters
job_id_or_name
required
string (Job Id Or Name)

Responses

Response samples

Content type
application/json
{
  • "id": "string",
  • "organization_id": "string",
  • "project_id": "string",
  • "name": "string",
  • "namePrefix": "string",
  • "status": "queued",
  • "credentials_status": "empty",
  • "vm_status": "nonassigned",
  • "image": "string",
  • "command": [
    ],
  • "args": [
    ],
  • "env": {
    },
  • "volumes": [
    ],
  • "resources": { },
  • "cloud": [
    ],
  • "region": [
    ],
  • "labels": {
    },
  • "tags": [
    ],
  • "retry_count": 0,
  • "max_retries": 0,
  • "selected_provider": "string",
  • "selected_region": "string",
  • "selected_instance_type": "string",
  • "vm_instance_id": "string",
  • "ip_address": "string",
  • "estimated_cost": 0,
  • "actual_cost": 0,
  • "ondemand_cost": 0,
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z",
  • "last_heartbeat_at": "2019-08-24T14:15:22Z",
  • "started_at": "2019-08-24T14:15:22Z",
  • "ended_at": "2019-08-24T14:15:22Z",
  • "timeout_seconds": 3600,
  • "run_after": "2019-08-24T14:15:22Z",
  • "error_message": "string",
  • "routing": "byoc",
  • "queueReason": "string"
}

Cronjobs

Endpoints for managing periodic task templates.

All cron expressions are evaluated strictly in UTC. When a cronjob triggers, the scheduler spawns a new standard job from its job_definition template.

Create a cronjob

Creates a periodic task definition using a UTC crontab expression and a job_definition configuration template. Environment variable values in job_definition.env are write-only and masked ("<redacted>") on read.

Required role: "admin".

Request Body schema: application/json
required
name
required
string (Name) [ 3 .. 100 ] characters ^[a-z0-9][a-z0-9-]*$

Unique name inside the project namespace (slug format)

cron_spec
required
string (Cron Spec)

Standard cron expression evaluated in UTC (e.g. '0 2 * * *')

object (JobDefinition)

Job configuration to spawn the job from (env values are write-only and masked as '' on read). EXACTLY ONE of job_definition / workflow_definition must be provided.

is_active
boolean (Is Active)
Default: true

Whether the scheduler should trigger this cronjob

Project Id (string) or Project Id (null) (Project Id)

Project ID (internal use)

Organization Id (string) or Organization Id (null) (Organization Id)

Organization ID (internal use)

WorkflowCreateRequest (object) or null

Alternative spawn template (change 086): a workflow definition spawned once per tick instead of a single job. EXACTLY ONE of job_definition / workflow_definition must be provided (both or neither -> 422).

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "cron_spec": "string",
  • "job_definition": {
    },
  • "is_active": true,
  • "project_id": "string",
  • "organization_id": "string",
  • "workflow_definition": {
    }
}

Response samples

Content type
application/json
{
  • "id": "string",
  • "organization_id": "string",
  • "project_id": "string",
  • "name": "string",
  • "cron_spec": "string",
  • "job_definition": { },
  • "is_active": true,
  • "last_triggered_at": "2019-08-24T14:15:22Z",
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z",
  • "workflow_definition": {
    }
}

List cronjobs

Lists active and inactive cronjobs for the project, sorted by creation date. Environment variable values in job_definition.env are masked ("<redacted>").

Required roles: "viewer" or higher.

query Parameters
offset
integer (Offset) >= 0
Default: 0

Number of items to skip

limit
integer (Limit) ( 0 .. 200 ]
Default: 50

Maximum number of items to return

type
string (Type)
Enum: "job" "workflow"

Filter by cronjob kind: job (cronjobs carrying a job_definition, workflow_definition null) or workflow (cronjobs carrying a workflow_definition, change 086). Absent: no kind filter (all cronjobs).

Responses

Response samples

Content type
application/json
{
  • "cronjobs": [
    ],
  • "total": 0,
  • "offset": 0,
  • "limit": 0
}

Get a cronjob by UUID or name

The path parameter accepts either the cronjob's unique UUID or its unique name. Environment variable values in job_definition.env are masked ("<redacted>").

Required roles: "viewer" or higher.

path Parameters
cronjob_id_or_name
required
string (Cronjob Id Or Name)

Responses

Response samples

Content type
application/json
{
  • "id": "string",
  • "organization_id": "string",
  • "project_id": "string",
  • "name": "string",
  • "cron_spec": "string",
  • "job_definition": { },
  • "is_active": true,
  • "last_triggered_at": "2019-08-24T14:15:22Z",
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z",
  • "workflow_definition": {
    }
}

Update a cronjob

Updates cronjob parameters (e.g. toggling is_active, changing cron_spec, or replacing job_definition) without recreating the resource. The path parameter accepts either the cronjob's unique UUID or its unique name.

In job_definition.env, empty strings or "<redacted>" keep stored values, omitted keys are deleted, and new non-empty values are set. Environment variable values in returned responses are masked ("<redacted>").

Required role: "admin".

path Parameters
cronjob_id_or_name
required
string (Cronjob Id Or Name)
Request Body schema: application/json
required
Cron Spec (string) or Cron Spec (null) (Cron Spec)

New cron expression (UTC)

UpdateJobDefinition (object) or null

New job configuration template (env omitted -> keep stored env; in env, empty string or '' keeps stored value; omitted keys are deleted). A non-null job_definition nulls the stored workflow_definition.

Is Active (boolean) or Is Active (null) (Is Active)

Toggle scheduler activity

Project Id (string) or Project Id (null) (Project Id)

Project ID (internal use)

Organization Id (string) or Organization Id (null) (Organization Id)

Organization ID (internal use)

WorkflowCreateRequest (object) or null

New workflow spawn template (change 086). Omitted or null keeps the stored definition; a non-null workflow_definition replaces it AND nulls job_definition (and vice versa) — exactly one definition survives a PATCH.

Responses

Request samples

Content type
application/json
{
  • "cron_spec": "string",
  • "job_definition": {
    },
  • "is_active": true,
  • "project_id": "string",
  • "organization_id": "string",
  • "workflow_definition": {
    }
}

Response samples

Content type
application/json
{
  • "id": "string",
  • "organization_id": "string",
  • "project_id": "string",
  • "name": "string",
  • "cron_spec": "string",
  • "job_definition": { },
  • "is_active": true,
  • "last_triggered_at": "2019-08-24T14:15:22Z",
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z",
  • "workflow_definition": {
    }
}

Delete a cronjob

Deletes a cronjob. The path parameter accepts either the cronjob's unique UUID or its unique name.

Required role: "admin".

path Parameters
cronjob_id_or_name
required
string (Cronjob Id Or Name)

Responses

List workflows spawned by a cronjob

Lists the workflows spawned by the cronjob (path parameter accepts the UUID or the unique name), newest first. The match is on the stored cronjob_name linkage the scheduler persists on spawn (cron ticks spawn workflows named <cronjob>-<ts>, so the linkage is never a name-prefix match) — the per-cronjob run history. Same envelope as GET /1/workflows.

Required roles: "viewer" or higher.

path Parameters
cronjob_id_or_name
required
string (Cronjob Id Or Name)
query Parameters
Status (string) or Status (null) (Status)

Filter by workflow status

Offset (integer) or Offset (null) (Offset)
Default: 0

Number of items to skip

Limit (integer) or Limit (null) (Limit)
Default: 50

Maximum number of items to return

Responses

Response samples

Content type
application/json
{
  • "workflows": [
    ],
  • "total": 0,
  • "offset": 0,
  • "limit": 0
}

Workflows

Endpoints for native DAG workflows (change 086).

A workflow is a set of named node templates wired with dependencies edges (simplified Argo Workflows-ish form). Submission materializes one standard job per node — withItems / withSequence fan out one node per item at submission time with {{item}} substituted — and the scheduler provisions node jobs only once their upstream nodes succeeded. Workflow-level status and cancel aggregate the node jobs.

Submit a workflow

Submits a DAG workflow: a templates list, each entry a standard job definition (job) wired with dependencies edges referencing other template names.

  • If name is provided it must be unique within the project (otherwise 409 Conflict).
  • If namePrefix is provided, a unique name is generated as <prefix>-<random suffix>.
  • If neither is provided, a Notion-like unique name is auto-generated (e.g. tidal-star-1234).

Root templates (no dependencies) provision immediately; dependent nodes provision only once ALL their upstream nodes succeeded. withItems (static item list) and withSequence (numeric range) materialize one node per item at submission time, substituting the literal {{item}} into string values of command entries, args entries, env values and labels values; a dependency on a fan-out template waits for ALL its items. The workflow materializes at most 50 node jobs.

Required roles: "developer" or higher.

Request Body schema: application/json
required
Name (string) or Name (null) (Name)

Unique workflow name inside the project namespace (slug format); 409 Conflict on collision

Nameprefix (string) or Nameprefix (null) (Nameprefix)

Generate the workflow name as -

required
Array of objects (Templates)

DAG node templates (the workflow materializes at most 50 node jobs)

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "namePrefix": "string",
  • "templates": [
    ]
}

Response samples

Content type
application/json
{
  • "workflow_id": "string",
  • "name": "string",
  • "status": "running",
  • "nodes": {
    }
}

List workflows

List workflows in the project, sorted by creation date (newest first). Each row carries node_count, the number of materialized node jobs.

Required roles: "developer" or higher.

query Parameters
Status (string) or Status (null) (Status)

Filter by workflow status

Name (string) or Name (null) (Name)

Filter by workflow name, case-insensitive contains match (change 091)

Array of Tag (strings) or Tag (null) (Tag)

Filter by tags (repeatable): a workflow matches when ANY of its node jobs carries the tag

Array of Label (strings) or Label (null) (Label)

Filter by labels as "key:value" pairs (repeatable; "key=value" accepted for compatibility): a workflow matches when ANY of its node jobs carries all the pairs

Offset (integer) or Offset (null) (Offset)
Default: 0

Number of items to skip

Limit (integer) or Limit (null) (Limit)
Default: 50

Maximum number of items to return

Responses

Response samples

Content type
application/json
{
  • "workflows": [
    ],
  • "total": 0,
  • "offset": 0,
  • "limit": 0
}

Get a workflow by UUID or name

Retrieve a workflow's status, its live node jobs (status, VM status, error message, timing and per-node costs read from the jobs rows at request time) and the aggregate cost sums over the nodes. The path parameter accepts either the workflow's unique UUID or its unique name.

Required roles: "developer" or higher.

path Parameters
workflow_id_or_name
required
string (Workflow Id Or Name)

Responses

Response samples

Content type
application/json
{
  • "id": "string",
  • "organization_id": "string",
  • "project_id": "string",
  • "name": "string",
  • "status": "running",
  • "error_message": "string",
  • "cronjob_name": "string",
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z",
  • "ended_at": "2019-08-24T14:15:22Z",
  • "node_count": 0,
  • "nodes": [
    ],
  • "estimated_cost": 0,
  • "actual_cost": 0,
  • "ondemand_cost": 0
}

Cancel a workflow

Cancels a running workflow: every non-terminal node job (queued, booting or running) is cancelled with the job-cancel semantics — the scheduler detects the transition and triggers immediate VM teardown for running nodes — already-succeeded nodes are untouched, and the workflow becomes cancelled with ended_at. Responds 409 Conflict when the workflow is already terminal. The path parameter accepts either the workflow's unique UUID or its unique name.

Required roles: "developer" or higher.

path Parameters
workflow_id_or_name
required
string (Workflow Id Or Name)

Responses

Response samples

Content type
application/json
{
  • "workflow_id": "string",
  • "name": "string",
  • "status": "running"
}

Resources

List available repositories

query Parameters
Connection Id (string) or Connection Id (null) (Connection Id)

Filter by a specific connection ID.

Responses

Response samples

Content type
application/json
{
  • "repositories": [
    ]
}

List available storages

query Parameters
Connection Id (string) or Connection Id (null) (Connection Id)

Filter by a specific connection ID.

Responses

Response samples

Content type
application/json
{
  • "storages": [
    ]
}

List available virtual machine pools

query Parameters
Connection Id (string) or Connection Id (null) (Connection Id)

Filter by a specific connection ID.

Responses

Response samples

Content type
application/json
{
  • "virtual_machine_pools": [
    ]
}