POST

Authorizations

x-api-key
string
header
required

Headers

Idempotency-Key
string

Replays the first result of a create; the same key with another body is 400 idempotency_key_reused, one while the first still runs 409 idempotency_key_in_use.

Required string length: 1 - 255

Body

application/json

Pool definition. name, provider, default_machine_provider_options, and max_total_machines are always required; provider_auth_secret_id is required unless provider_config names a provider tier the platform runs with its own credential (then omitting it uses the platform's); which default machine size and CPU and memory limits are required depends on the provider; Blaxel pools reject CPU fields.

name
string
required

Human-readable name. Spaces and punctuation are allowed; leading or trailing whitespace and invisible or control characters are not.

Required string length: 1 - 64
provider
enum<string>
required
Available options:
arker,
freestyle,
modal,
oci,
tenki,
unikraft
Minimum string length: 1
default_machine_cpu
integer<int32>
required
Required range: 1 <= x <= 2147483647
default_machine_memory_mb
integer<int32>
required
Required range: 1 <= x <= 2147483647
default_machine_provider_options
object
required
max_total_machines
integer<int32>
required

Deprecated, not enforced: how many machines a pool has no longer blocks new machines. Organization and project quotas over in-use machines (org resource limits max_in_use_pool_machines_per_project and max_in_use_pool_machines_per_org) govern capacity.

Required range: 0 <= x <= 2147483647
max_total_cpu
integer<int32>
required

Deprecated, not enforced: organization and project in-use machine CPU quotas govern capacity.

Required range: 0 <= x <= 2147483647
max_total_memory_mb
integer<int32>
required

Deprecated, not enforced: organization and project in-use machine memory quotas govern capacity.

Required range: 0 <= x <= 2147483647
max_machine_cpu
integer<int32>
required
Required range: 1 <= x <= 2147483647
max_machine_memory_mb
integer<int32>
required
Required range: 1 <= x <= 2147483647
description
string
default_machine_env
object

Default environment for pool machines. A machine's environment, including resolved secret_env values, is applied to the provider machine at provisioning, so the provider_options startup_script and the daemon run with it, and is resolved again for each process at launch.

default_machine_secret_env
object

Default secret environment for pool machines, mapping env names to generic secret references. References are resolved to secret values wherever the machine environment is applied.

default_cwd
string
provider_config
object
provider_auth_secret_id
string

Secret ID (sec_...).

Pattern: ^sec_[a-z2-7]{26}$
runtime_protection_enabled
boolean
default:false

Whether BMA should delete a pool machine when its provider remains running after its daemon becomes inactive. Defaults to false when omitted.

min_machine_cpu
integer<int32>
Required range: 0 <= x <= 2147483647
min_machine_memory_mb
integer<int32>
Required range: 0 <= x <= 2147483647
delete_after_idle_minutes
integer<int32>

Idle minutes before deleting a machine from this pool. Omit to leave the pool default unset; a grant or agent source may still override it.

Required range: 5 <= x <= 2147483647
pause_after_idle_minutes
integer<int32>

Idle minutes before pausing a machine from this pool. A paused machine keeps its disk and resumes on the next command, terminal, desktop, or explicit resume. Exclusive with delete_after_idle_minutes; a grant or agent source delete policy still wins.

Required range: 5 <= x <= 2147483647
archive_after_paused_days
integer<int32>

Days a machine stays paused before it is archived. An archived machine is restored on the next access. Requires pause_after_idle_minutes.

Required range: 1 <= x <= 3650
delete_after_paused_days
integer<int32>

Days a machine stays paused before it is deleted, counted from when it paused; a resume ends the paused period and the next pause starts a new one. A session that receives input after its machine was deleted gets a fresh machine. Machines kept for a person (idle deletion disabled with 0 on their binding or grant) are never deleted by it. Requires pause_after_idle_minutes; cannot be combined with archive_after_paused_days.

Required range: 1 <= x <= 3650
metadata
object

User-supplied metadata stored on a machine, provided directly or copied from the machine pool that provisions it. A restriction of Metadata that leaves room for one reserved pair - BMA sets observed_platform on the machine to the platform reported by its daemon, so the key is reserved and at most 15 user pairs are accepted.

project_id
string

Creates the pool for this project: the pool is owned by and granted to it, and only to it, in the same write. The caller needs project.manage on the project instead of org.manage, and the pool's secret references (provider_auth_secret_id, default_machine_secret_env) must be ones a pool granted to the project already uses. Without it the pool is an organization pool granted to no project, which needs org.manage.

Pattern: ^proj_[a-z2-7]{26}$

Response

Success.

type
string
required

Always machine_pool.

Allowed value: "machine_pool"
id
string
required

Machine pool ID (mpo_...), or env_... for a cloud environment's own pool, which shares the environment's ID.

Pattern: ^(mpo|env)_[a-z2-7]{26}$
org_id
string
required
Pattern: ^org_[a-z2-7]{26}$
name
string
required

Human-readable name. Spaces and punctuation are allowed; leading or trailing whitespace and invisible or control characters are not.

Required string length: 1 - 64
management_kind
enum<string>
required

Lifecycle owner. Tenant-managed resources can be changed through tenant APIs. Cluster-managed resources are installed and lifecycle-managed by the control plane; individual APIs may explicitly expose tenant-editable settings.

Available options:
tenant,
cluster
description
string
required
provider
string
required
default_machine_cpu
integer<int32> | null
required
Required range: 1 <= x <= 2147483647
default_machine_memory_mb
integer<int32> | null
required
Required range: 1 <= x <= 2147483647
default_machine_env
object
required

Default environment for pool machines. A machine's environment, including resolved secret_env values, is applied to the provider machine at provisioning, so the provider_options startup_script and the daemon run with it, and is resolved again for each process at launch.

default_machine_secret_env
object
required

Default secret environment for pool machines, mapping env names to generic secret references. References are resolved to secret values wherever the machine environment is applied.

default_machine_provider_options
object
required
default_cwd
string
required
provider_config
object
required
runtime_protection_enabled
boolean
required

When true, BMA removes a machine of this pool whose provider instance is still up once its daemon has gone inactive.

max_total_machines
integer<int32>
required

Deprecated, not enforced: how many machines a pool has no longer blocks new machines. Organization and project quotas over in-use machines (org resource limits max_in_use_pool_machines_per_project and max_in_use_pool_machines_per_org) govern capacity.

Required range: 0 <= x <= 2147483647
max_total_cpu
integer<int32> | null
required

Deprecated, not enforced: organization and project in-use machine CPU quotas govern capacity.

Required range: 0 <= x <= 2147483647
max_total_memory_mb
integer<int32> | null
required

Deprecated, not enforced: organization and project in-use machine memory quotas govern capacity.

Required range: 0 <= x <= 2147483647
min_machine_cpu
integer<int32> | null
required
Required range: 0 <= x <= 2147483647
min_machine_memory_mb
integer<int32> | null
required
Required range: 0 <= x <= 2147483647
max_machine_cpu
integer<int32> | null
required
Required range: 1 <= x <= 2147483647
max_machine_memory_mb
integer<int32> | null
required
Required range: 1 <= x <= 2147483647
delete_after_idle_minutes
integer<int32> | null
required

Minutes a machine of this pool may sit idle before it is deleted; null when the pool sets no default.

Required range: 5 <= x <= 2147483647
pause_after_idle_minutes
integer<int32> | null
required

Idle minutes before pausing a machine from this pool, or null when the pool does not pause idle machines.

Required range: 5 <= x <= 2147483647
archive_after_paused_days
integer<int32> | null
required

Days a machine stays paused before it is archived, or null when the pool does not archive.

Required range: 1 <= x <= 3650
delete_after_paused_days
integer<int32> | null
required

Days a machine stays paused before it is deleted, counted from when it paused, or null when the pool keeps paused machines.

Required range: 1 <= x <= 3650
metadata
object
required

Arbitrary key-value metadata. Maximum 16 pairs, keys up to 64 characters, values must be strings of up to 512 characters.

created_at
string<date-time>
required
updated_at
string<date-time>
required
provider_auth_secret_id
string

The organization's vault credential the pool's provider authenticates with, an opaque ID (a migrated one keeps its legacy sec_ ID); absent when the pool uses the platform's credential of its provider tier.

Pattern: ^[A-Za-z0-9_-]{1,128}$
usage
object

Quota currently consumed by the pool's machines. Present only on responses of the list and get operations.