Computers

Get a computer by name

Changed on

Returns the caller's computer by name, or a service account's computer when requested by a human who may use that account.

get/api/v0/computers/name/{name}

Request

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

Path parameters

name, string required

Computer name

Query parameters

serviceAccountId, string

Look up a service account’s Computers (requires a human who may use the account).

includeProvisioningSteps, boolean

Whether to include provisioning step details.

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

GetComputerByName200ResponseBody 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