Environments
Create Environment
beta.environments.create(**kwargs) -> BetaEnvironmentCreate a new environment with the specified configuration.
List Environments
beta.environments.list(**kwargs) -> SyncPageCursor[BetaEnvironment]List environments with pagination support.
Get Environment
beta.environments.retrieve(environment_id, **kwargs) -> BetaEnvironmentRetrieve a specific environment by ID.
Update Environment
beta.environments.update(environment_id, **kwargs) -> BetaEnvironmentUpdate an existing environment's configuration.
Delete Environment
beta.environments.delete(environment_id, **kwargs) -> BetaEnvironmentDeleteResponseDelete an environment by ID. Returns a confirmation of the deletion.
Archive Environment
beta.environments.archive(environment_id, **kwargs) -> BetaEnvironmentArchive an environment by ID. Archived environments cannot be used to create new sessions.
Models
EnvironmentsWork
Get Work Item
beta.environments.work.retrieve(work_id, **kwargs) -> BetaSelfHostedWorkNote: these endpoints are called automatically by the pre-built environment worker provided in the SDKs and CLI, for orchestrating sessions with self-hosted sandbox environments. They are included here as a reference; you do not need to invoke them directly.
Poll for Work
beta.environments.work.poll(environment_id, **kwargs) -> BetaSelfHostedWorkNote: these endpoints are called automatically by the pre-built environment worker provided in the SDKs and CLI, for orchestrating sessions with self-hosted sandbox environments. They are included here as a reference; you do not need to invoke them directly.
Acknowledge Work
beta.environments.work.ack(work_id, **kwargs) -> BetaSelfHostedWorkNote: these endpoints are called automatically by the pre-built environment worker provided in the SDKs and CLI, for orchestrating sessions with self-hosted sandbox environments. They are included here as a reference; you do not need to invoke them directly.
Record Heartbeat
beta.environments.work.heartbeat(work_id, **kwargs) -> BetaSelfHostedWorkHeartbeatResponseNote: these endpoints are called automatically by the pre-built environment worker provided in the SDKs and CLI, for orchestrating sessions with self-hosted sandbox environments. They are included here as a reference; you do not need to invoke them directly.
Stop Work
beta.environments.work.stop(work_id, **kwargs) -> BetaSelfHostedWorkNote: these endpoints are called automatically by the pre-built environment worker provided in the SDKs and CLI, for orchestrating sessions with self-hosted sandbox environments. They are included here as a reference; you do not need to invoke them directly.
List Work Items
beta.environments.work.list(environment_id, **kwargs) -> SyncPageCursor[BetaSelfHostedWork]Note: these endpoints are called automatically by the pre-built environment worker provided in the SDKs and CLI, for orchestrating sessions with self-hosted sandbox environments. They are included here as a reference; you do not need to invoke them directly.
Update Work Item
beta.environments.work.update(work_id, **kwargs) -> BetaSelfHostedWorkNote: these endpoints are called automatically by the pre-built environment worker provided in the SDKs and CLI, for orchestrating sessions with self-hosted sandbox environments. They are included here as a reference; you do not need to invoke them directly.
Get Queue Statistics
beta.environments.work.stats(environment_id, **kwargs) -> BetaSelfHostedWorkQueueStatsGet statistics about the work queue for an environment.