Computers

Returns a computer by ID. Callers can access their own computers; organization members with the manager role or higher can also access service-account-owned computers, other members can read the computers of active service accounts their plan includes, and members of a shared session can access the service-account computer that runs it by passing its ID as sharedSessionId.

get/api/v0/computers/{computerId}

Request

  • Base URL
    https://api.factory.ai
  • Auth
    HTTP bearer

Path parameters

computerId, string required

Computer ID. Must not contain "/" and must not be "." or "..".

Query parameters

sharedSessionId, string uuid

A shared session the caller is a member of. On a Factory-hosted deployment, grants access to the service-account computer that runs it.

includeProvisioningSteps, boolean

Set to "true" to include provisioning steps in the response.

Headers

X-Factory-Org-Id, string

Organization a JWT request acts in; required to act in a sub-organization. Without it, the request acts in the user's root organization, or is rejected with 403 when the user cannot access the root organization. API keys always act in their own organization and ignore this header.

Response

Response for status 200

GetComputer200ResponseBody required
id, string required
hostId, string uuid
name, string required
isListed, boolean
providerType, string required

Compute provider backing this computer, e.g. 'byom' or 'e2b'.

status, 'provisioning' | 'active' | 'error'
providerStatus, 'requested' | 'provisioning' | 'booting' | 'running' | 'paused' | 'snapshotting' | 'terminating' | 'terminated' | 'failed' | 'null' nullable

Last known sandbox lifecycle state; null for BYOM computers. More states may be added, so treat a value you do not know as unknown.

lastSeenAt, number

Epoch milliseconds of this computer's last daemon heartbeat. Managed lifecycle events, such as a sandbox starting or pausing, can also advance it, so a recent value alone does not mean the daemon is running. Absent when none is recorded.

disk, object
createdAt, number required

Unix timestamp, in milliseconds, when the computer was created.

provisioningSteps, object[]
relayClientUrl, string uri
relayAgentUrl, string uri
computerIdentity, object
remoteUser, string
clonedRepoDirectories, string[]
ownerPrincipalKind, string
ownerId, string
viewerCanRestart, boolean
computerSource, union
effectiveResources, object

Exact resources the computer was created with: CPU, memory, and disk when recorded. Absent for computers created before sizes were recorded.

Changes