Get a computer
Changed onReturns 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.
Request
- Base URLhttps://api.factory.ai
- AuthHTTP bearer
Path parameters
Computer ID. Must not contain "/" and must not be "." or "..".
Query parameters
A shared session the caller is a member of. On a Factory-hosted deployment, grants access to the service-account computer that runs it.
Set to "true" to include provisioning steps in the response.
Headers
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
Compute provider backing this computer, e.g. 'byom' or 'e2b'.
Last known sandbox lifecycle state; null for BYOM computers. More states may be added, so treat a value you do not know as unknown.
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.
Unix timestamp, in milliseconds, when the computer was created.
Exact resources the computer was created with: CPU, memory, and disk when recorded. Absent for computers created before sizes were recorded.
Changes
- info
added the optional property
viewerCanRestartto the response with the status
- info
- info
added the optional property
effectiveResourcesto the response with the status
- info