- API Reference
- endpoint
- Workflows
Workflows Deployments
Workflows Deployments
POST /v1/workflows/deployments/{deployment_id}/unharden
Unharden Deployment
Unharden Deployment
Parameters
deployment_id
stringpath* requiredworkspace_id
string | nullqueryWorkspace ID to scope the request to. Defaults to the caller's context.
GET /v1/workflows/deployments
List Deployments
List Deployments
Parameters
active_only
booleanqueryis_hardened
boolean | nullqueryFilter deployments by hardened status
workflow_name
string | nullquerycreated_by
string | nullqueryFilter deployments by creator's user id
owner
string | nullqueryFilter deployments by owner's user id
location_types
array<"local" | "k8s" | "managed"> | nullqueryFilter deployments with at least one worker on any of these location types (OR)
search
string | nullqueryFilter deployments by name or ID prefix
order_by
"updated_at" | "created_at"queryField to sort by. When omitted, active and managed deployments are grouped first, then sorted by created_at. When set, results are sorted purely by the specified field with no grouping.
order
"asc" | "desc"querySort direction. Applied to order_by when set, or within each activity group when omitted.
limit
integerqueryMaximum number of deployments to return
cursor
string | nullqueryCursor from a previous response for pagination
workspace_id
string | nullqueryWorkspace ID to scope the request to. Defaults to the caller's context.
repository_url
string | nullqueryFilter managed deployments by source repository URL (exact match)
dockerfile_path
string | nullqueryFilter managed deployments by Dockerfile path (exact match)
Responses
Successful Response
List of deployments
DeploymentResponse
active_worker_count
integerNumber of workers currently live within the liveness cutoff
Default Value: 0
created_at
date-time* requiredWhen the deployment was first registered
id
string* requiredUnique identifier of the deployment
is_active
boolean* requiredWhether at least one worker is currently live
is_hardened
booleanWhether the deployment only accepts registrations from authorized principals
Default Value: false
last_heartbeat
date-time* requiredWhen the deployment last saw a worker registration
location
DeploymentLocation | nullWhere the deployment is running
DeploymentLocation
Where the deployment is running
k8s_cluster
string | nullK8s cluster name, if applicable
k8s_namespace
string | nullK8s namespace, if applicable
location_type
"local" | "k8s" | "managed"* requiredlocations
array<"local" | "k8s" | "managed"> | nullFilter deployments with at least one worker on any of these location types (OR)
managed
ManagedDeploymentResponse | nullLive managed service state for managed deployments; null for self-hosted deployments or when managed services are unavailable
ManagedDeploymentResponse
Live managed service state for managed deployments; null for self-hosted deployments or when managed services are unavailable
created_at
date-time* requiredcreated_by
string | nulldeployed_at
date-time | nulldeployed_by
string | nullis_hardened
booleanDefault Value: false
name
string* requiredDeploymentResourceConfig
replicas
integer | nullrollout_status
string | nullruntime_credential_id
string | nullruntime_principal_type
"api_key" | "service_account" | "user"service_id
string* requiredDeploymentWorkerSpecResponse
archive_id
string | nullArchive the worker builds from, if any.
Backend-specific configuration. 'mistral_cloud' is Mistral Cloud; 'kubernetes' is a deployment that already runs on Kubernetes.
DeploymentMistralCloudBackendSpec
Worker configuration for the Mistral Cloud backend.
build_directory
string | nullDocker build context, as a path in the repo. Defaults to the repo root.
dockerfile_path
string | nullPath to the Dockerfile, relative to 'build_directory'. Defaults to 'Dockerfile'.
secrets
array<DeploymentSecretBinding> | nullSecrets to bind to the worker, as 'secret:workspace:<NAME>' references. Each is available during build and run: as a Dockerfile build arg (declare a matching 'ARG') and as an env var. On update, the field carries the complete set: send the full list to rebind, an empty list to unbind all, omit it to leave the bindings unchanged.
DeploymentSecretBinding
Binds one env var to one platform secret; the value is resolved at boot, never stored.
env_var_name
string* requiredEnvironment variable the worker process reads; the secret's name lives in 'reference'.
reference
string* requiredSecret reference as 'secret:workspace:<NAME>'. Resolved at boot by the runtime-init container; the value never reaches the control plane.
type
"mistral_cloud" | "koyeb"Default Value: "mistral_cloud"
DeploymentK8sBackendSpec
Worker configuration for the Kubernetes backend.
entrypoint
string | nullEither a 'module:function' reference (e.g. 'worker:main') or a '.py' script path relative to 'working_dir'.
type
stringDefault Value: "kubernetes"
working_dir
string | nullPath in the repo holding the worker's pyproject.toml, for monorepo layouts. Leave empty for single-package repos.
commit
GitCommitMetadata | nullGitCommitMetadata
author
GitCommitAuthor | nullGitCommitAuthor
html_url
string | nullname
string | nullusername
string | nullhtml_url
string | nullmessage
string | nullsha
string* requiredgithub_url
string* requiredGitHub repository the worker builds from. Empty for a worker built from an archive.
repository_url
string | nullRepository the worker builds from, on GitHub or the git server, if any.
requested_roles
array<string> | nullrestarted_at
string | nullrevision
string | nulltype
stringDefault Value: "workflows_worker"
DeploymentObservedState
available_replicas
integerDefault Value: 0
build_state
DeploymentBuildState | nullDeploymentBuildState
commit_sha
string | nullfinished_at
date-time | nullimage
string | nullmessage
string | nullphase
string | nullstarted_at
date-time | nulldeployed_revision
string | nullendpoint
string | nullgeneration
integer | nulllast_phase_changed_at
date-time | nulllast_seen
date-time | nullmessage
string | nullphase
string | nullready_replicas
integerDefault Value: 0
stopped
booleanDefault Value: false
updated_at
date-time* requiredupdated_by
string | nullname
string* requiredDeployment name
owner
string | nullUser id that owns the deployment, or null when it is administrator-managed
updated_at
date-time* requiredDeprecated alias of last_heartbeat
worker_count
integerNumber of workers registered to the deployment
Default Value: 0
next_cursor
string | null* requiredCursor for the next page of results
workspace_id
string* requiredWorkspace ID the results are scoped to
POST /v1/workflows/deployments
Create Deployment
Create Deployment
Request Example
{
"name": "ipsum eiusmod",
"spec": {}
}
Request Body
hardened
booleanDefault Value: false
name
string* requiredresources
DeploymentResourceConfigDeploymentResourceConfig
replicas
integer | nullDeploymentWorkerSpecInput
archive_id
string | nullMistral Cloud archive to build the worker from instead of a repository. The archive is the whole build context: 'dockerfile_path' is relative to its root, and 'build_directory' must be unset.
backend_spec
DeploymentMistralCloudBackendSpecWorker configuration for the Mistral Cloud backend.
DeploymentMistralCloudBackendSpec
Worker configuration for the Mistral Cloud backend.
build_directory
string | nullDocker build context, as a path in the repo. Defaults to the repo root.
dockerfile_path
string | nullPath to the Dockerfile, relative to 'build_directory'. Defaults to 'Dockerfile'.
secrets
array<DeploymentSecretBinding> | nullSecrets to bind to the worker, as 'secret:workspace:<NAME>' references. Each is available during build and run: as a Dockerfile build arg (declare a matching 'ARG') and as an env var. On update, the field carries the complete set: send the full list to rebind, an empty list to unbind all, omit it to leave the bindings unchanged.
DeploymentSecretBinding
Binds one env var to one platform secret; the value is resolved at boot, never stored.
env_var_name
string* requiredEnvironment variable the worker process reads; the secret's name lives in 'reference'.
reference
string* requiredSecret reference as 'secret:workspace:<NAME>'. Resolved at boot by the runtime-init container; the value never reaches the control plane.
type
"mistral_cloud" | "koyeb"Default Value: "mistral_cloud"
github_url
string | nullDeprecated alias of 'repository_url' for a GitHub repository. Set only 'repository_url'.
repository_url
string | nullRepository to build the worker from, set instead of 'archive_id': a GitHub repository (https://github.com/<owner>/<repo>) or a repository on the Mistral git server (https://api.globalaegis.net/v1/git/<workspace>/<repo>.git). On the git server you must be able to read the repository; the worker builds from an archive of 'revision' and 'build_directory'.
requested_roles
array<string> | nullWorkspace roles, by name, that the deployment's service account holds beyond workflow_executor. Granted only if the deploying user holds them.
revision
string | nullServer-Side Events
Successful Response
ManagedDeploymentResponse
Live managed service state for managed deployments; null for self-hosted deployments or when managed services are unavailable
created_at
date-time* requiredcreated_by
string | nulldeployed_at
date-time | nulldeployed_by
string | nullis_hardened
booleanDefault Value: false
name
string* requiredDeploymentResourceConfig
replicas
integer | nullrollout_status
string | nullruntime_credential_id
string | nullruntime_principal_type
"api_key" | "service_account" | "user"service_id
string* requiredDeploymentWorkerSpecResponse
archive_id
string | nullArchive the worker builds from, if any.
Backend-specific configuration. 'mistral_cloud' is Mistral Cloud; 'kubernetes' is a deployment that already runs on Kubernetes.
DeploymentMistralCloudBackendSpec
Worker configuration for the Mistral Cloud backend.
build_directory
string | nullDocker build context, as a path in the repo. Defaults to the repo root.
dockerfile_path
string | nullPath to the Dockerfile, relative to 'build_directory'. Defaults to 'Dockerfile'.
secrets
array<DeploymentSecretBinding> | nullSecrets to bind to the worker, as 'secret:workspace:<NAME>' references. Each is available during build and run: as a Dockerfile build arg (declare a matching 'ARG') and as an env var. On update, the field carries the complete set: send the full list to rebind, an empty list to unbind all, omit it to leave the bindings unchanged.
DeploymentSecretBinding
Binds one env var to one platform secret; the value is resolved at boot, never stored.
env_var_name
string* requiredEnvironment variable the worker process reads; the secret's name lives in 'reference'.
reference
string* requiredSecret reference as 'secret:workspace:<NAME>'. Resolved at boot by the runtime-init container; the value never reaches the control plane.
type
"mistral_cloud" | "koyeb"Default Value: "mistral_cloud"
DeploymentK8sBackendSpec
Worker configuration for the Kubernetes backend.
entrypoint
string | nullEither a 'module:function' reference (e.g. 'worker:main') or a '.py' script path relative to 'working_dir'.
type
stringDefault Value: "kubernetes"
working_dir
string | nullPath in the repo holding the worker's pyproject.toml, for monorepo layouts. Leave empty for single-package repos.
commit
GitCommitMetadata | nullGitCommitMetadata
author
GitCommitAuthor | nullGitCommitAuthor
html_url
string | nullname
string | nullusername
string | nullhtml_url
string | nullmessage
string | nullsha
string* requiredgithub_url
string* requiredGitHub repository the worker builds from. Empty for a worker built from an archive.
repository_url
string | nullRepository the worker builds from, on GitHub or the git server, if any.
requested_roles
array<string> | nullrestarted_at
string | nullrevision
string | nulltype
stringDefault Value: "workflows_worker"
DeploymentObservedState
available_replicas
integerDefault Value: 0
build_state
DeploymentBuildState | nullDeploymentBuildState
commit_sha
string | nullfinished_at
date-time | nullimage
string | nullmessage
string | nullphase
string | nullstarted_at
date-time | nulldeployed_revision
string | nullendpoint
string | nullgeneration
integer | nulllast_phase_changed_at
date-time | nulllast_seen
date-time | nullmessage
string | nullphase
string | nullready_replicas
integerDefault Value: 0
stopped
booleanDefault Value: false
updated_at
date-time* requiredupdated_by
string | nullGET /v1/workflows/deployments/{name}
Get Deployment
Get Deployment
Parameters
name
stringpath* requiredworkflow_name
string | nullqueryScope serving status to this workflow
Responses
Successful Response
active_worker_count
integerNumber of workers currently live within the liveness cutoff
Default Value: 0
created_at
date-time* requiredWhen the deployment was first registered
id
string* requiredUnique identifier of the deployment
is_active
boolean* requiredWhether at least one worker is currently live
is_hardened
booleanWhether the deployment only accepts registrations from authorized principals
Default Value: false
last_heartbeat
date-time* requiredWhen the deployment last saw a worker registration
location
DeploymentLocation | nullWhere the deployment is running
DeploymentLocation
Where the deployment is running
k8s_cluster
string | nullK8s cluster name, if applicable
k8s_namespace
string | nullK8s namespace, if applicable
location_type
"local" | "k8s" | "managed"* requiredlocations
array<"local" | "k8s" | "managed"> | nullFilter deployments with at least one worker on any of these location types (OR)
managed
ManagedDeploymentResponse | nullLive managed service state for managed deployments; null for self-hosted deployments or when managed services are unavailable
ManagedDeploymentResponse
Live managed service state for managed deployments; null for self-hosted deployments or when managed services are unavailable
created_at
date-time* requiredcreated_by
string | nulldeployed_at
date-time | nulldeployed_by
string | nullis_hardened
booleanDefault Value: false
name
string* requiredDeploymentResourceConfig
replicas
integer | nullrollout_status
string | nullruntime_credential_id
string | nullruntime_principal_type
"api_key" | "service_account" | "user"service_id
string* requiredDeploymentWorkerSpecResponse
archive_id
string | nullArchive the worker builds from, if any.
Backend-specific configuration. 'mistral_cloud' is Mistral Cloud; 'kubernetes' is a deployment that already runs on Kubernetes.
DeploymentMistralCloudBackendSpec
Worker configuration for the Mistral Cloud backend.
build_directory
string | nullDocker build context, as a path in the repo. Defaults to the repo root.
dockerfile_path
string | nullPath to the Dockerfile, relative to 'build_directory'. Defaults to 'Dockerfile'.
secrets
array<DeploymentSecretBinding> | nullSecrets to bind to the worker, as 'secret:workspace:<NAME>' references. Each is available during build and run: as a Dockerfile build arg (declare a matching 'ARG') and as an env var. On update, the field carries the complete set: send the full list to rebind, an empty list to unbind all, omit it to leave the bindings unchanged.
DeploymentSecretBinding
Binds one env var to one platform secret; the value is resolved at boot, never stored.
env_var_name
string* requiredEnvironment variable the worker process reads; the secret's name lives in 'reference'.
reference
string* requiredSecret reference as 'secret:workspace:<NAME>'. Resolved at boot by the runtime-init container; the value never reaches the control plane.
type
"mistral_cloud" | "koyeb"Default Value: "mistral_cloud"
DeploymentK8sBackendSpec
Worker configuration for the Kubernetes backend.
entrypoint
string | nullEither a 'module:function' reference (e.g. 'worker:main') or a '.py' script path relative to 'working_dir'.
type
stringDefault Value: "kubernetes"
working_dir
string | nullPath in the repo holding the worker's pyproject.toml, for monorepo layouts. Leave empty for single-package repos.
commit
GitCommitMetadata | nullGitCommitMetadata
author
GitCommitAuthor | nullGitCommitAuthor
html_url
string | nullname
string | nullusername
string | nullhtml_url
string | nullmessage
string | nullsha
string* requiredgithub_url
string* requiredGitHub repository the worker builds from. Empty for a worker built from an archive.
repository_url
string | nullRepository the worker builds from, on GitHub or the git server, if any.
requested_roles
array<string> | nullrestarted_at
string | nullrevision
string | nulltype
stringDefault Value: "workflows_worker"
DeploymentObservedState
available_replicas
integerDefault Value: 0
build_state
DeploymentBuildState | nullDeploymentBuildState
commit_sha
string | nullfinished_at
date-time | nullimage
string | nullmessage
string | nullphase
string | nullstarted_at
date-time | nulldeployed_revision
string | nullendpoint
string | nullgeneration
integer | nulllast_phase_changed_at
date-time | nulllast_seen
date-time | nullmessage
string | nullphase
string | nullready_replicas
integerDefault Value: 0
stopped
booleanDefault Value: false
updated_at
date-time* requiredupdated_by
string | nullname
string* requiredDeployment name
owner
string | nullUser id that owns the deployment, or null when it is administrator-managed
updated_at
date-time* requiredDeprecated alias of last_heartbeat
worker_count
integerNumber of workers registered to the deployment
Default Value: 0
Workers registered for the deployment
DeploymentWorkerResponse
created_at
date-time* requiredWhen the worker first registered
is_active
boolean* requiredWhether this worker's liveness key is currently alive
last_heartbeat
date-time* requiredWhen the worker last registered
location
DeploymentLocation | nullWhere the deployment is running
DeploymentLocation
Where the deployment is running
k8s_cluster
string | nullK8s cluster name, if applicable
k8s_namespace
string | nullK8s namespace, if applicable
location_type
"local" | "k8s" | "managed"* requiredname
string* requiredWorker name
updated_at
date-time* requiredDeprecated alias of last_heartbeat
DELETE /v1/workflows/deployments/{name}
Delete Deployment
Delete Deployment
Parameters
name
stringpath* requiredServer-Side Events
Successful Response
ManagedDeploymentResponse
Live managed service state for managed deployments; null for self-hosted deployments or when managed services are unavailable
created_at
date-time* requiredcreated_by
string | nulldeployed_at
date-time | nulldeployed_by
string | nullis_hardened
booleanDefault Value: false
name
string* requiredDeploymentResourceConfig
replicas
integer | nullrollout_status
string | nullruntime_credential_id
string | nullruntime_principal_type
"api_key" | "service_account" | "user"service_id
string* requiredDeploymentWorkerSpecResponse
archive_id
string | nullArchive the worker builds from, if any.
Backend-specific configuration. 'mistral_cloud' is Mistral Cloud; 'kubernetes' is a deployment that already runs on Kubernetes.
DeploymentMistralCloudBackendSpec
Worker configuration for the Mistral Cloud backend.
build_directory
string | nullDocker build context, as a path in the repo. Defaults to the repo root.
dockerfile_path
string | nullPath to the Dockerfile, relative to 'build_directory'. Defaults to 'Dockerfile'.
secrets
array<DeploymentSecretBinding> | nullSecrets to bind to the worker, as 'secret:workspace:<NAME>' references. Each is available during build and run: as a Dockerfile build arg (declare a matching 'ARG') and as an env var. On update, the field carries the complete set: send the full list to rebind, an empty list to unbind all, omit it to leave the bindings unchanged.
DeploymentSecretBinding
Binds one env var to one platform secret; the value is resolved at boot, never stored.
env_var_name
string* requiredEnvironment variable the worker process reads; the secret's name lives in 'reference'.
reference
string* requiredSecret reference as 'secret:workspace:<NAME>'. Resolved at boot by the runtime-init container; the value never reaches the control plane.
type
"mistral_cloud" | "koyeb"Default Value: "mistral_cloud"
DeploymentK8sBackendSpec
Worker configuration for the Kubernetes backend.
entrypoint
string | nullEither a 'module:function' reference (e.g. 'worker:main') or a '.py' script path relative to 'working_dir'.
type
stringDefault Value: "kubernetes"
working_dir
string | nullPath in the repo holding the worker's pyproject.toml, for monorepo layouts. Leave empty for single-package repos.
commit
GitCommitMetadata | nullGitCommitMetadata
author
GitCommitAuthor | nullGitCommitAuthor
html_url
string | nullname
string | nullusername
string | nullhtml_url
string | nullmessage
string | nullsha
string* requiredgithub_url
string* requiredGitHub repository the worker builds from. Empty for a worker built from an archive.
repository_url
string | nullRepository the worker builds from, on GitHub or the git server, if any.
requested_roles
array<string> | nullrestarted_at
string | nullrevision
string | nulltype
stringDefault Value: "workflows_worker"
DeploymentObservedState
available_replicas
integerDefault Value: 0
build_state
DeploymentBuildState | nullDeploymentBuildState
commit_sha
string | nullfinished_at
date-time | nullimage
string | nullmessage
string | nullphase
string | nullstarted_at
date-time | nulldeployed_revision
string | nullendpoint
string | nullgeneration
integer | nulllast_phase_changed_at
date-time | nulllast_seen
date-time | nullmessage
string | nullphase
string | nullready_replicas
integerDefault Value: 0
stopped
booleanDefault Value: false
updated_at
date-time* requiredupdated_by
string | nullPATCH /v1/workflows/deployments/{name}
Update Deployment
Update Deployment
Parameters
name
stringpath* requiredRequest Example
{}
Request Body
resources
DeploymentResourceConfigUpdate | nullDeploymentResourceConfigUpdate
replicas
integer | nullspec
WorkflowsWorkerSpecUpdate | nullWorkflowsWorkerSpecUpdate
archive_id
string | nullRebuild the worker from this archive, dropping 'repository_url' and 'revision'. Sending 'repository_url' instead moves it back to a repository.
backend_spec
DeploymentMistralCloudBackendSpecWorker configuration for the Mistral Cloud backend.
DeploymentMistralCloudBackendSpec
Worker configuration for the Mistral Cloud backend.
build_directory
string | nullDocker build context, as a path in the repo. Defaults to the repo root.
dockerfile_path
string | nullPath to the Dockerfile, relative to 'build_directory'. Defaults to 'Dockerfile'.
secrets
array<DeploymentSecretBinding> | nullSecrets to bind to the worker, as 'secret:workspace:<NAME>' references. Each is available during build and run: as a Dockerfile build arg (declare a matching 'ARG') and as an env var. On update, the field carries the complete set: send the full list to rebind, an empty list to unbind all, omit it to leave the bindings unchanged.
DeploymentSecretBinding
Binds one env var to one platform secret; the value is resolved at boot, never stored.
env_var_name
string* requiredEnvironment variable the worker process reads; the secret's name lives in 'reference'.
reference
string* requiredSecret reference as 'secret:workspace:<NAME>'. Resolved at boot by the runtime-init container; the value never reaches the control plane.
type
"mistral_cloud" | "koyeb"Default Value: "mistral_cloud"
github_url
string | nullDeprecated alias of 'repository_url' for a GitHub repository. Set only 'repository_url'.
repository_url
string | nullRebuild the worker from this repository, on GitHub or the git server, dropping 'archive_id'.
requested_roles
array<string> | nullThe complete workspace-role set after the update, beyond workflow_executor. Replaces the current roles; omit it to leave them unchanged, send an empty list to drop all extras. Granted only if the deploying user holds them.
revision
string | nullServer-Side Events
Successful Response
ManagedDeploymentResponse
Live managed service state for managed deployments; null for self-hosted deployments or when managed services are unavailable
created_at
date-time* requiredcreated_by
string | nulldeployed_at
date-time | nulldeployed_by
string | nullis_hardened
booleanDefault Value: false
name
string* requiredDeploymentResourceConfig
replicas
integer | nullrollout_status
string | nullruntime_credential_id
string | nullruntime_principal_type
"api_key" | "service_account" | "user"service_id
string* requiredDeploymentWorkerSpecResponse
archive_id
string | nullArchive the worker builds from, if any.
Backend-specific configuration. 'mistral_cloud' is Mistral Cloud; 'kubernetes' is a deployment that already runs on Kubernetes.
DeploymentMistralCloudBackendSpec
Worker configuration for the Mistral Cloud backend.
build_directory
string | nullDocker build context, as a path in the repo. Defaults to the repo root.
dockerfile_path
string | nullPath to the Dockerfile, relative to 'build_directory'. Defaults to 'Dockerfile'.
secrets
array<DeploymentSecretBinding> | nullSecrets to bind to the worker, as 'secret:workspace:<NAME>' references. Each is available during build and run: as a Dockerfile build arg (declare a matching 'ARG') and as an env var. On update, the field carries the complete set: send the full list to rebind, an empty list to unbind all, omit it to leave the bindings unchanged.
DeploymentSecretBinding
Binds one env var to one platform secret; the value is resolved at boot, never stored.
env_var_name
string* requiredEnvironment variable the worker process reads; the secret's name lives in 'reference'.
reference
string* requiredSecret reference as 'secret:workspace:<NAME>'. Resolved at boot by the runtime-init container; the value never reaches the control plane.
type
"mistral_cloud" | "koyeb"Default Value: "mistral_cloud"
DeploymentK8sBackendSpec
Worker configuration for the Kubernetes backend.
entrypoint
string | nullEither a 'module:function' reference (e.g. 'worker:main') or a '.py' script path relative to 'working_dir'.
type
stringDefault Value: "kubernetes"
working_dir
string | nullPath in the repo holding the worker's pyproject.toml, for monorepo layouts. Leave empty for single-package repos.
commit
GitCommitMetadata | nullGitCommitMetadata
author
GitCommitAuthor | nullGitCommitAuthor
html_url
string | nullname
string | nullusername
string | nullhtml_url
string | nullmessage
string | nullsha
string* requiredgithub_url
string* requiredGitHub repository the worker builds from. Empty for a worker built from an archive.
repository_url
string | nullRepository the worker builds from, on GitHub or the git server, if any.
requested_roles
array<string> | nullrestarted_at
string | nullrevision
string | nulltype
stringDefault Value: "workflows_worker"
DeploymentObservedState
available_replicas
integerDefault Value: 0
build_state
DeploymentBuildState | nullDeploymentBuildState
commit_sha
string | nullfinished_at
date-time | nullimage
string | nullmessage
string | nullphase
string | nullstarted_at
date-time | nulldeployed_revision
string | nullendpoint
string | nullgeneration
integer | nulllast_phase_changed_at
date-time | nulllast_seen
date-time | nullmessage
string | nullphase
string | nullready_replicas
integerDefault Value: 0
stopped
booleanDefault Value: false
updated_at
date-time* requiredupdated_by
string | nullPOST /v1/workflows/deployments/{name}/stop
Stop Deployment
Stop Deployment
Parameters
name
stringpath* requiredServer-Side Events
Successful Response
ManagedDeploymentResponse
Live managed service state for managed deployments; null for self-hosted deployments or when managed services are unavailable
created_at
date-time* requiredcreated_by
string | nulldeployed_at
date-time | nulldeployed_by
string | nullis_hardened
booleanDefault Value: false
name
string* requiredDeploymentResourceConfig
replicas
integer | nullrollout_status
string | nullruntime_credential_id
string | nullruntime_principal_type
"api_key" | "service_account" | "user"service_id
string* requiredDeploymentWorkerSpecResponse
archive_id
string | nullArchive the worker builds from, if any.
Backend-specific configuration. 'mistral_cloud' is Mistral Cloud; 'kubernetes' is a deployment that already runs on Kubernetes.
DeploymentMistralCloudBackendSpec
Worker configuration for the Mistral Cloud backend.
build_directory
string | nullDocker build context, as a path in the repo. Defaults to the repo root.
dockerfile_path
string | nullPath to the Dockerfile, relative to 'build_directory'. Defaults to 'Dockerfile'.
secrets
array<DeploymentSecretBinding> | nullSecrets to bind to the worker, as 'secret:workspace:<NAME>' references. Each is available during build and run: as a Dockerfile build arg (declare a matching 'ARG') and as an env var. On update, the field carries the complete set: send the full list to rebind, an empty list to unbind all, omit it to leave the bindings unchanged.
DeploymentSecretBinding
Binds one env var to one platform secret; the value is resolved at boot, never stored.
env_var_name
string* requiredEnvironment variable the worker process reads; the secret's name lives in 'reference'.
reference
string* requiredSecret reference as 'secret:workspace:<NAME>'. Resolved at boot by the runtime-init container; the value never reaches the control plane.
type
"mistral_cloud" | "koyeb"Default Value: "mistral_cloud"
DeploymentK8sBackendSpec
Worker configuration for the Kubernetes backend.
entrypoint
string | nullEither a 'module:function' reference (e.g. 'worker:main') or a '.py' script path relative to 'working_dir'.
type
stringDefault Value: "kubernetes"
working_dir
string | nullPath in the repo holding the worker's pyproject.toml, for monorepo layouts. Leave empty for single-package repos.
commit
GitCommitMetadata | nullGitCommitMetadata
author
GitCommitAuthor | nullGitCommitAuthor
html_url
string | nullname
string | nullusername
string | nullhtml_url
string | nullmessage
string | nullsha
string* requiredgithub_url
string* requiredGitHub repository the worker builds from. Empty for a worker built from an archive.
repository_url
string | nullRepository the worker builds from, on GitHub or the git server, if any.
requested_roles
array<string> | nullrestarted_at
string | nullrevision
string | nulltype
stringDefault Value: "workflows_worker"
DeploymentObservedState
available_replicas
integerDefault Value: 0
build_state
DeploymentBuildState | nullDeploymentBuildState
commit_sha
string | nullfinished_at
date-time | nullimage
string | nullmessage
string | nullphase
string | nullstarted_at
date-time | nulldeployed_revision
string | nullendpoint
string | nullgeneration
integer | nulllast_phase_changed_at
date-time | nulllast_seen
date-time | nullmessage
string | nullphase
string | nullready_replicas
integerDefault Value: 0
stopped
booleanDefault Value: false
updated_at
date-time* requiredupdated_by
string | nullPOST /v1/workflows/deployments/{name}/start
Start Deployment
Start Deployment
Parameters
name
stringpath* requiredServer-Side Events
Successful Response
ManagedDeploymentResponse
Live managed service state for managed deployments; null for self-hosted deployments or when managed services are unavailable
created_at
date-time* requiredcreated_by
string | nulldeployed_at
date-time | nulldeployed_by
string | nullis_hardened
booleanDefault Value: false
name
string* requiredDeploymentResourceConfig
replicas
integer | nullrollout_status
string | nullruntime_credential_id
string | nullruntime_principal_type
"api_key" | "service_account" | "user"service_id
string* requiredDeploymentWorkerSpecResponse
archive_id
string | nullArchive the worker builds from, if any.
Backend-specific configuration. 'mistral_cloud' is Mistral Cloud; 'kubernetes' is a deployment that already runs on Kubernetes.
DeploymentMistralCloudBackendSpec
Worker configuration for the Mistral Cloud backend.
build_directory
string | nullDocker build context, as a path in the repo. Defaults to the repo root.
dockerfile_path
string | nullPath to the Dockerfile, relative to 'build_directory'. Defaults to 'Dockerfile'.
secrets
array<DeploymentSecretBinding> | nullSecrets to bind to the worker, as 'secret:workspace:<NAME>' references. Each is available during build and run: as a Dockerfile build arg (declare a matching 'ARG') and as an env var. On update, the field carries the complete set: send the full list to rebind, an empty list to unbind all, omit it to leave the bindings unchanged.
DeploymentSecretBinding
Binds one env var to one platform secret; the value is resolved at boot, never stored.
env_var_name
string* requiredEnvironment variable the worker process reads; the secret's name lives in 'reference'.
reference
string* requiredSecret reference as 'secret:workspace:<NAME>'. Resolved at boot by the runtime-init container; the value never reaches the control plane.
type
"mistral_cloud" | "koyeb"Default Value: "mistral_cloud"
DeploymentK8sBackendSpec
Worker configuration for the Kubernetes backend.
entrypoint
string | nullEither a 'module:function' reference (e.g. 'worker:main') or a '.py' script path relative to 'working_dir'.
type
stringDefault Value: "kubernetes"
working_dir
string | nullPath in the repo holding the worker's pyproject.toml, for monorepo layouts. Leave empty for single-package repos.
commit
GitCommitMetadata | nullGitCommitMetadata
author
GitCommitAuthor | nullGitCommitAuthor
html_url
string | nullname
string | nullusername
string | nullhtml_url
string | nullmessage
string | nullsha
string* requiredgithub_url
string* requiredGitHub repository the worker builds from. Empty for a worker built from an archive.
repository_url
string | nullRepository the worker builds from, on GitHub or the git server, if any.
requested_roles
array<string> | nullrestarted_at
string | nullrevision
string | nulltype
stringDefault Value: "workflows_worker"
DeploymentObservedState
available_replicas
integerDefault Value: 0
build_state
DeploymentBuildState | nullDeploymentBuildState
commit_sha
string | nullfinished_at
date-time | nullimage
string | nullmessage
string | nullphase
string | nullstarted_at
date-time | nulldeployed_revision
string | nullendpoint
string | nullgeneration
integer | nulllast_phase_changed_at
date-time | nulllast_seen
date-time | nullmessage
string | nullphase
string | nullready_replicas
integerDefault Value: 0
stopped
booleanDefault Value: false
updated_at
date-time* requiredupdated_by
string | nullPOST /v1/workflows/deployments/{name}/restart
Restart Deployment
Restart Deployment
Parameters
name
stringpath* requiredServer-Side Events
Successful Response
ManagedDeploymentResponse
Live managed service state for managed deployments; null for self-hosted deployments or when managed services are unavailable
created_at
date-time* requiredcreated_by
string | nulldeployed_at
date-time | nulldeployed_by
string | nullis_hardened
booleanDefault Value: false
name
string* requiredDeploymentResourceConfig
replicas
integer | nullrollout_status
string | nullruntime_credential_id
string | nullruntime_principal_type
"api_key" | "service_account" | "user"service_id
string* requiredDeploymentWorkerSpecResponse
archive_id
string | nullArchive the worker builds from, if any.
Backend-specific configuration. 'mistral_cloud' is Mistral Cloud; 'kubernetes' is a deployment that already runs on Kubernetes.
DeploymentMistralCloudBackendSpec
Worker configuration for the Mistral Cloud backend.
build_directory
string | nullDocker build context, as a path in the repo. Defaults to the repo root.
dockerfile_path
string | nullPath to the Dockerfile, relative to 'build_directory'. Defaults to 'Dockerfile'.
secrets
array<DeploymentSecretBinding> | nullSecrets to bind to the worker, as 'secret:workspace:<NAME>' references. Each is available during build and run: as a Dockerfile build arg (declare a matching 'ARG') and as an env var. On update, the field carries the complete set: send the full list to rebind, an empty list to unbind all, omit it to leave the bindings unchanged.
DeploymentSecretBinding
Binds one env var to one platform secret; the value is resolved at boot, never stored.
env_var_name
string* requiredEnvironment variable the worker process reads; the secret's name lives in 'reference'.
reference
string* requiredSecret reference as 'secret:workspace:<NAME>'. Resolved at boot by the runtime-init container; the value never reaches the control plane.
type
"mistral_cloud" | "koyeb"Default Value: "mistral_cloud"
DeploymentK8sBackendSpec
Worker configuration for the Kubernetes backend.
entrypoint
string | nullEither a 'module:function' reference (e.g. 'worker:main') or a '.py' script path relative to 'working_dir'.
type
stringDefault Value: "kubernetes"
working_dir
string | nullPath in the repo holding the worker's pyproject.toml, for monorepo layouts. Leave empty for single-package repos.
commit
GitCommitMetadata | nullGitCommitMetadata
author
GitCommitAuthor | nullGitCommitAuthor
html_url
string | nullname
string | nullusername
string | nullhtml_url
string | nullmessage
string | nullsha
string* requiredgithub_url
string* requiredGitHub repository the worker builds from. Empty for a worker built from an archive.
repository_url
string | nullRepository the worker builds from, on GitHub or the git server, if any.
requested_roles
array<string> | nullrestarted_at
string | nullrevision
string | nulltype
stringDefault Value: "workflows_worker"
DeploymentObservedState
available_replicas
integerDefault Value: 0
build_state
DeploymentBuildState | nullDeploymentBuildState
commit_sha
string | nullfinished_at
date-time | nullimage
string | nullmessage
string | nullphase
string | nullstarted_at
date-time | nulldeployed_revision
string | nullendpoint
string | nullgeneration
integer | nulllast_phase_changed_at
date-time | nulllast_seen
date-time | nullmessage
string | nullphase
string | nullready_replicas
integerDefault Value: 0
stopped
booleanDefault Value: false
updated_at
date-time* requiredupdated_by
string | nullGET /v1/workflows/deployments/{name}/workers
List Deployment Workers
List Deployment Workers
Parameters
name
stringpath* requiredworker_status
"active" | "inactive"queryFilter by worker activity. active=only active, inactive=only inactive, None=no filter
limit
integerqueryMaximum number of workers to return
cursor
string | nullqueryCursor from a previous response's next_cursor. Resend worker_status unchanged alongside it.
Responses
Successful Response
next_cursor
string | null* requiredCursor for the next page of results
Workers registered for the deployment
DeploymentWorkerResponse
created_at
date-time* requiredWhen the worker first registered
is_active
boolean* requiredWhether this worker's liveness key is currently alive
last_heartbeat
date-time* requiredWhen the worker last registered
location
DeploymentLocation | nullWhere the deployment is running
DeploymentLocation
Where the deployment is running
k8s_cluster
string | nullK8s cluster name, if applicable
k8s_namespace
string | nullK8s namespace, if applicable
location_type
"local" | "k8s" | "managed"* requiredname
string* requiredWorker name
updated_at
date-time* requiredDeprecated alias of last_heartbeat
GET /v1/workflows/deployments/{name}/archive
Get Deployment Archive
Get the archive a managed deployment builds from, with a signed URL to download it.
download_url expires within 24 hours, and is null once Mistral Cloud has deleted the archive. A deployment that builds from a repository answers 404.
Parameters
name
stringpath* requiredResponses
Successful Response
archive_id
string* requiredMistral Cloud archive the worker builds from
download_url
string | nullA signed URL to download the archive, which expires within 24 hours. Null once Mistral Cloud has deleted the archive.
POST /v1/workflows/deployments/archives
Create Deployment Archive
Create an empty archive, with a signed URL to upload the tarball a managed deployment builds from.
PUT the gzipped tar to upload_url with upload_headers, then pass archive_id in the spec on create or update.
Request Example
{
"size": 87
}
Request Body
The size of the gzipped tar a managed deployment will build from.
size
integerMax: 268435456* requiredSize of the gzipped tar in bytes, at most 256 MiB. The upload URL accepts exactly this size.
Server-Side Events
Successful Response
archive_id
string* requiredPass it as the spec's archive_id once the upload has finished.
upload_headers
map<string>* requiredHeaders the PUT must send for the signed URL to accept it.
upload_url
string* requiredA signed URL to PUT the tarball to. It grants write access, so keep it secret.
GET /v1/workflows/deployments/{name}/logs
Get Deployment Logs
Retrieve logs for a deployment (across all of its workers).
Use after/before/order on the first request to set the time range and sort order; for the next pages pass the cursor from the previous response (it remembers the range and order).
log_type=build serves the managed build pipeline's output instead. It pages the same way, and a null next_cursor means the window is drained.
Parameters
name
stringpath* requiredlog_type
"build" | "runtime"queryWhich stream to read. 'runtime' is the workers' own logs; 'build' reads the image build output and requires a managed deployment.
worker_name
string | nullqueryFilter logs by worker name
workflow_name
string | nullqueryFilter logs by workflow name
after
date-time | nullqueryOnly return logs at or after this timestamp
before
date-time | nullqueryOnly return logs before this timestamp
order
"asc" | "desc"queryFirst-page sort order: 'asc' (oldest first) or 'desc'. Ignored when cursor is set.
cursor
string | nullqueryPagination cursor from a previous response's next_cursor; carries the window and order
limit
integerqueryMaximum number of logs to return
Responses
Successful Response
next_cursor
string | nullDeploymentLogRecord
body
string* requiredlog_attributes
map<string>* requiredseverity_text
string* requiredspan_id
string* requiredtimestamp
date-time* requiredtrace_id
string* requiredGET /v1/workflows/deployments/{name}/logs/stream
Stream Deployment Logs
Stream logs for a deployment (all of its workers) via SSE.
Resume cursor comes from the Last-Event-ID header or last_event_id query param (header wins) and takes precedence over after; omit all to tail from the deployment start.
Parameters
name
stringpath* requiredworker_name
string | nullqueryFilter logs by worker name
workflow_name
string | nullqueryFilter logs by workflow name
after
date-time | nullqueryStart a fresh stream at this timestamp (ignored when resuming via last_event_id)
last_event_id
string | nullqueryResume from this cursor (a prior response's SSE id)
Last-Event-ID
string | nullheaderResume from this cursor (a prior response's SSE id). Takes precedence over the query parameter.
Server-Side Events
Stream of Server-Sent Events (SSE): log events carry a DeploymentLogRecord; error events carry a StreamError payload.
ResponseBody
Stream of Server-Sent Events (SSE): log events carry a DeploymentLogRecord; error events carry a StreamError payload.