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.
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.
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.
Lists the organizations the authenticated account belongs to.
| offset | integer (Offset) >= 0 Default: 0 |
| limit | integer (Limit) [ 1 .. 100 ] Default: 100 |
{- "organizations": [
- {
- "id": "string",
- "displayName": "string",
- "category": "string",
- "role": "string"
}
]
}Creates an organization; the caller becomes its owner.
| name required | string (Name) [ 1 .. 64 ] characters |
| category | string (Category) <= 32 characters Default: "personal" |
{- "name": "string",
- "category": "personal"
}{- "id": "string",
- "displayName": "string",
- "category": "string",
- "role": "string"
}Updates the organization's display name and/or category. Requires admin or higher.
| org_id required | string (Org Id) |
| displayName required | string (Displayname) [ 1 .. 64 ] characters |
Category (string) or Category (null) (Category) |
{- "displayName": "string",
- "category": "string"
}{- "id": "string",
- "displayName": "string",
- "category": "string",
- "role": "string"
}| org_id required | string (Org Id) |
| offset | integer (Offset) >= 0 Default: 0 |
| limit | integer (Limit) [ 1 .. 100 ] Default: 100 |
{- "members": [
- {
- "userId": "string",
- "email": "string",
- "role": "string"
}
]
}Requires admin or higher. Only owners can grant the owner role.
| org_id required | string (Org Id) |
| member_user_id required | string (Member User Id) |
| role required | string (Role) One of: owner, admin, member. |
{- "role": "string"
}nullEndpoints 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).
| org_id required | string (Org Id) |
| offset | integer (Offset) >= 0 Default: 0 |
| limit | integer (Limit) [ 1 .. 100 ] Default: 100 |
{- "projects": [
- {
- "id": "string",
- "displayName": "string",
- "organizationId": "string",
- "routingMode": "byoc"
}
]
}Requires admin or higher.
| org_id required | string (Org Id) |
| 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. |
{- "name": "string",
- "routingMode": "serverless"
}{- "id": "string",
- "displayName": "string",
- "organizationId": "string",
- "routingMode": "byoc"
}Requires admin or higher.
| project_id required | string (Project Id) |
| 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. |
{- "displayName": "string",
- "routingMode": "byoc"
}{- "id": "string",
- "displayName": "string",
- "organizationId": "string",
- "routingMode": "byoc"
}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:
Creates a new API key for programmatic access to the Solti API.
Required role: "admin".
| 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 |
{- "name": "string",
- "role": "admin",
- "expires_at": "2019-08-24T14:15:22Z"
}{- "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 given the provided filters.
Required roles: "viewer" or higher.
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 |
{- "keys": [
- {
- "id": "string",
- "name": "string",
- "created_at": "2019-08-24T14:15:22Z"
}
], - "total": 0,
- "offset": 0,
- "limit": 0
}Retrieve an API key by its unique identifier.
Required roles: "viewer" or higher.
| key_id required | string (Key Id) |
{- "id": "string",
- "name": "string",
- "role": "admin",
- "created_at": "2019-08-24T14:15:22Z",
- "expires_at": "2019-08-24T14:15:22Z"
}Update an existing API key's attributes.
Required role: "admin".
| key_id required | string (Key Id) |
Role (string) or Role (null) (Role) New role for the API key |
{- "role": "admin"
}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.
Creates a new Solti connection. Duplicate names within a project return 409 Conflict.
Required role: "admin".
| 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 |
{- "name": "string",
- "type": "aws",
- "auth_method": "static",
- "access_key_id": "string",
- "secret_access_key": "string"
}{- "name": "string",
- "type": "aws",
- "auth_method": "static",
- "access_key_id": "string",
- "secret_access_key": "string"
}List Solti connections given the provided filters. Credentials are always redacted.
Required roles: "viewer" or higher.
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 |
{- "connections": [
- {
- "name": "string",
- "type": "aws",
- "auth_method": "static",
- "access_key_id": "string",
- "secret_access_key": "string"
}
], - "total": 0,
- "offset": 0,
- "limit": 0
}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.
| 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) |
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".
| 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) |
{- "name": "string",
- "organization_id": "string",
- "project_id": "string"
}{- "install_url": "string",
- "state": "string"
}Retrieve a Solti connection by its name. Inspecting decrypted credential values requires the "admin" role.
Required roles: "viewer" or higher.
| name required | string (Name) |
{- "name": "string",
- "type": "aws",
- "auth_method": "static",
- "access_key_id": "string",
- "secret_access_key": "string"
}Update an existing Solti connection's attributes (re-encrypts credentials when they change).
Required role: "admin".
| name required | string (Name) |
| 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 |
{- "type": "aws",
- "auth_method": "static",
- "access_key_id": "string",
- "secret_access_key": "string"
}{- "name": "string",
- "type": "aws",
- "auth_method": "static",
- "access_key_id": "string",
- "secret_access_key": "string"
}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.
Submits a declarative workload definition (JSON or YAML body).
name is provided it must be unique within the project (otherwise 409 Conflict).namePrefix is provided, a unique name is generated as <prefix>-<random suffix>.Environment variable values are write-only and masked ("<redacted>") on read.
Required roles: "developer" or higher.
{- "job_id": "string",
- "name": "string",
- "status": "queued"
}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.
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 |
{- "jobs": [
- {
- "id": "string",
- "organization_id": "string",
- "project_id": "string",
- "name": "string",
- "namePrefix": "string",
- "status": "queued",
- "credentials_status": "empty",
- "vm_status": "nonassigned",
- "image": "string",
- "command": [
- "string"
], - "args": [
- "string"
], - "env": {
- "property1": "string",
- "property2": "string"
}, - "volumes": [
- { }
], - "resources": { },
- "cloud": [
- "string"
], - "region": [
- "string"
], - "labels": {
- "property1": "string",
- "property2": "string"
}, - "tags": [
- "string"
], - "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"
}
], - "total": 0,
- "offset": 0,
- "limit": 0
}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.
| job_id_or_name required | string (Job Id Or Name) |
{- "id": "string",
- "organization_id": "string",
- "project_id": "string",
- "name": "string",
- "namePrefix": "string",
- "status": "queued",
- "credentials_status": "empty",
- "vm_status": "nonassigned",
- "image": "string",
- "command": [
- "string"
], - "args": [
- "string"
], - "env": {
- "property1": "string",
- "property2": "string"
}, - "volumes": [
- { }
], - "resources": { },
- "cloud": [
- "string"
], - "region": [
- "string"
], - "labels": {
- "property1": "string",
- "property2": "string"
}, - "tags": [
- "string"
], - "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"
}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.
| job_id_or_name required | string (Job Id Or Name) |
{- "id": "string",
- "organization_id": "string",
- "project_id": "string",
- "name": "string",
- "namePrefix": "string",
- "status": "queued",
- "credentials_status": "empty",
- "vm_status": "nonassigned",
- "image": "string",
- "command": [
- "string"
], - "args": [
- "string"
], - "env": {
- "property1": "string",
- "property2": "string"
}, - "volumes": [
- { }
], - "resources": { },
- "cloud": [
- "string"
], - "region": [
- "string"
], - "labels": {
- "property1": "string",
- "property2": "string"
}, - "tags": [
- "string"
], - "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"
}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.
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".
| 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 ' | |
| 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). |
{- "name": "string",
- "cron_spec": "string",
- "job_definition": {
- "image": "string",
- "command": [
- "string"
], - "args": [
- "string"
], - "env": {
- "property1": "string",
- "property2": "string"
}, - "volumes": {
- "property1": {
- "bucket": "string",
- "mountPath": "string",
- "connection": "string",
- "prefix": "string"
}, - "property2": {
- "bucket": "string",
- "mountPath": "string",
- "connection": "string",
- "prefix": "string"
}
}, - "resources": {
- "storage": 10
}, - "cloud": "string",
- "region": "string",
- "maxRetries": 0,
- "timeoutSeconds": 1,
- "runAfter": "2019-08-24T14:15:22Z",
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "tags": [
- "string"
], - "timeout": "string"
}, - "is_active": true,
- "project_id": "string",
- "organization_id": "string",
- "workflow_definition": {
- "name": "string",
- "namePrefix": "string",
- "templates": [
- {
- "name": "string",
- "job": {
- "image": "string",
- "command": [
- "string"
], - "args": [
- "string"
], - "env": {
- "property1": "string",
- "property2": "string"
}, - "volumes": {
- "property1": {
- "bucket": "string",
- "mountPath": "string",
- "connection": "string",
- "prefix": "string"
}, - "property2": {
- "bucket": "string",
- "mountPath": "string",
- "connection": "string",
- "prefix": "string"
}
}, - "resources": {
- "storage": 10
}, - "cloud": "string",
- "region": "string",
- "maxRetries": 0,
- "timeoutSeconds": 1,
- "runAfter": "2019-08-24T14:15:22Z",
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "tags": [
- "string"
], - "timeout": "string"
}, - "dependencies": [
- "string"
], - "withItems": [
- "string"
], - "withSequence": {
- "start": 0,
- "end": 0,
- "step": 1
}
}
]
}
}{- "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": {
- "name": "string",
- "namePrefix": "string",
- "templates": [
- {
- "name": "string",
- "job": {
- "image": "string",
- "command": [
- "string"
], - "args": [
- "string"
], - "env": {
- "property1": "string",
- "property2": "string"
}, - "volumes": {
- "property1": {
- "bucket": "string",
- "mountPath": "string",
- "connection": "string",
- "prefix": "string"
}, - "property2": {
- "bucket": "string",
- "mountPath": "string",
- "connection": "string",
- "prefix": "string"
}
}, - "resources": {
- "storage": 10
}, - "cloud": "string",
- "region": "string",
- "maxRetries": 0,
- "timeoutSeconds": 1,
- "runAfter": "2019-08-24T14:15:22Z",
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "tags": [
- "string"
], - "timeout": "string"
}, - "dependencies": [
- "string"
], - "withItems": [
- "string"
], - "withSequence": {
- "start": 0,
- "end": 0,
- "step": 1
}
}
]
}
}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.
| 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: |
{- "cronjobs": [
- {
- "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": {
- "name": "string",
- "namePrefix": "string",
- "templates": [
- {
- "name": "string",
- "job": {
- "image": "string",
- "command": [
- "string"
], - "args": [
- "string"
], - "env": {
- "property1": "string",
- "property2": "string"
}, - "volumes": {
- "property1": {
- "bucket": "string",
- "mountPath": "string",
- "connection": "string",
- "prefix": "string"
}, - "property2": {
- "bucket": "string",
- "mountPath": "string",
- "connection": "string",
- "prefix": "string"
}
}, - "resources": {
- "storage": 10
}, - "cloud": "string",
- "region": "string",
- "maxRetries": 0,
- "timeoutSeconds": 1,
- "runAfter": "2019-08-24T14:15:22Z",
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "tags": [
- "string"
], - "timeout": "string"
}, - "dependencies": [
- "string"
], - "withItems": [
- "string"
], - "withSequence": {
- "start": 0,
- "end": 0,
- "step": 1
}
}
]
}
}
], - "total": 0,
- "offset": 0,
- "limit": 0
}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.
| cronjob_id_or_name required | string (Cronjob Id Or Name) |
{- "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": {
- "name": "string",
- "namePrefix": "string",
- "templates": [
- {
- "name": "string",
- "job": {
- "image": "string",
- "command": [
- "string"
], - "args": [
- "string"
], - "env": {
- "property1": "string",
- "property2": "string"
}, - "volumes": {
- "property1": {
- "bucket": "string",
- "mountPath": "string",
- "connection": "string",
- "prefix": "string"
}, - "property2": {
- "bucket": "string",
- "mountPath": "string",
- "connection": "string",
- "prefix": "string"
}
}, - "resources": {
- "storage": 10
}, - "cloud": "string",
- "region": "string",
- "maxRetries": 0,
- "timeoutSeconds": 1,
- "runAfter": "2019-08-24T14:15:22Z",
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "tags": [
- "string"
], - "timeout": "string"
}, - "dependencies": [
- "string"
], - "withItems": [
- "string"
], - "withSequence": {
- "start": 0,
- "end": 0,
- "step": 1
}
}
]
}
}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".
| cronjob_id_or_name required | string (Cronjob Id Or Name) |
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 ' | |
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. |
{- "cron_spec": "string",
- "job_definition": {
- "image": "string",
- "command": [
- "string"
], - "args": [
- "string"
], - "env": {
- "property1": "string",
- "property2": "string"
}, - "volumes": {
- "property1": {
- "bucket": "string",
- "mountPath": "string",
- "connection": "string",
- "prefix": "string"
}, - "property2": {
- "bucket": "string",
- "mountPath": "string",
- "connection": "string",
- "prefix": "string"
}
}, - "resources": {
- "storage": 10
}, - "cloud": "string",
- "region": "string",
- "maxRetries": 0,
- "timeoutSeconds": 1,
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "tags": [
- "string"
], - "timeout": "string"
}, - "is_active": true,
- "project_id": "string",
- "organization_id": "string",
- "workflow_definition": {
- "name": "string",
- "namePrefix": "string",
- "templates": [
- {
- "name": "string",
- "job": {
- "image": "string",
- "command": [
- "string"
], - "args": [
- "string"
], - "env": {
- "property1": "string",
- "property2": "string"
}, - "volumes": {
- "property1": {
- "bucket": "string",
- "mountPath": "string",
- "connection": "string",
- "prefix": "string"
}, - "property2": {
- "bucket": "string",
- "mountPath": "string",
- "connection": "string",
- "prefix": "string"
}
}, - "resources": {
- "storage": 10
}, - "cloud": "string",
- "region": "string",
- "maxRetries": 0,
- "timeoutSeconds": 1,
- "runAfter": "2019-08-24T14:15:22Z",
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "tags": [
- "string"
], - "timeout": "string"
}, - "dependencies": [
- "string"
], - "withItems": [
- "string"
], - "withSequence": {
- "start": 0,
- "end": 0,
- "step": 1
}
}
]
}
}{- "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": {
- "name": "string",
- "namePrefix": "string",
- "templates": [
- {
- "name": "string",
- "job": {
- "image": "string",
- "command": [
- "string"
], - "args": [
- "string"
], - "env": {
- "property1": "string",
- "property2": "string"
}, - "volumes": {
- "property1": {
- "bucket": "string",
- "mountPath": "string",
- "connection": "string",
- "prefix": "string"
}, - "property2": {
- "bucket": "string",
- "mountPath": "string",
- "connection": "string",
- "prefix": "string"
}
}, - "resources": {
- "storage": 10
}, - "cloud": "string",
- "region": "string",
- "maxRetries": 0,
- "timeoutSeconds": 1,
- "runAfter": "2019-08-24T14:15:22Z",
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "tags": [
- "string"
], - "timeout": "string"
}, - "dependencies": [
- "string"
], - "withItems": [
- "string"
], - "withSequence": {
- "start": 0,
- "end": 0,
- "step": 1
}
}
]
}
}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.
| cronjob_id_or_name required | string (Cronjob Id Or Name) |
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 |
{- "workflows": [
- {
- "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
}
], - "total": 0,
- "offset": 0,
- "limit": 0
}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.
Submits a DAG workflow: a templates list, each entry a standard job
definition (job) wired with dependencies edges referencing other
template names.
name is provided it must be unique within the project (otherwise 409 Conflict).namePrefix is provided, a unique name is generated as <prefix>-<random suffix>.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.
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) |
{- "name": "string",
- "namePrefix": "string",
- "templates": [
- {
- "name": "string",
- "job": {
- "image": "string",
- "command": [
- "string"
], - "args": [
- "string"
], - "env": {
- "property1": "string",
- "property2": "string"
}, - "volumes": {
- "property1": {
- "bucket": "string",
- "mountPath": "string",
- "connection": "string",
- "prefix": "string"
}, - "property2": {
- "bucket": "string",
- "mountPath": "string",
- "connection": "string",
- "prefix": "string"
}
}, - "resources": {
- "storage": 10
}, - "cloud": "string",
- "region": "string",
- "maxRetries": 0,
- "timeoutSeconds": 1,
- "runAfter": "2019-08-24T14:15:22Z",
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "tags": [
- "string"
], - "timeout": "string"
}, - "dependencies": [
- "string"
], - "withItems": [
- "string"
], - "withSequence": {
- "start": 0,
- "end": 0,
- "step": 1
}
}
]
}{- "workflow_id": "string",
- "name": "string",
- "status": "running",
- "nodes": {
- "property1": {
- "job_id": "string",
- "name": "string"
}, - "property2": {
- "job_id": "string",
- "name": "string"
}
}
}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.
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 |
{- "workflows": [
- {
- "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
}
], - "total": 0,
- "offset": 0,
- "limit": 0
}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.
| workflow_id_or_name required | string (Workflow Id Or Name) |
{- "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": [
- {
- "job_id": "string",
- "name": "string",
- "depends_on": [
- "string"
], - "status": "queued",
- "vm_status": "nonassigned",
- "error_message": "string",
- "started_at": "2019-08-24T14:15:22Z",
- "ended_at": "2019-08-24T14:15:22Z",
- "estimated_cost": 0,
- "actual_cost": 0,
- "ondemand_cost": 0
}
], - "estimated_cost": 0,
- "actual_cost": 0,
- "ondemand_cost": 0
}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.
| workflow_id_or_name required | string (Workflow Id Or Name) |
{- "workflow_id": "string",
- "name": "string",
- "status": "running"
}Connection Id (string) or Connection Id (null) (Connection Id) Filter by a specific connection ID. |
{- "repositories": [
- {
- "id": "string",
- "name": "string",
- "connection_id": "string",
- "connection_type": "aws",
- "platform": "aws",
- "metadata": { },
- "type": "storage"
}
]
}Connection Id (string) or Connection Id (null) (Connection Id) Filter by a specific connection ID. |
{- "storages": [
- {
- "id": "string",
- "name": "string",
- "connection_id": "string",
- "connection_type": "aws",
- "platform": "aws",
- "metadata": { },
- "type": "storage"
}
]
}Connection Id (string) or Connection Id (null) (Connection Id) Filter by a specific connection ID. |
{- "virtual_machine_pools": [
- {
- "id": "string",
- "name": "string",
- "connection_id": "string",
- "connection_type": "aws",
- "platform": "aws",
- "metadata": { },
- "type": "storage"
}
]
}