Fork computer from snapshot
POST
/v1/environments/{environmentId}/snapshots/{snapshotId}/forkMaterialize a new computer from a historical snapshot.
How to call this endpoint
Every ACP API request uses bearer authentication. The examples here show the actual request path, auth header, and body shape that the platform expects.
Path, query, and header parameters
These parameters control which ACP object the endpoint acts on and how the request is processed.
Path parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| environmentId | path | string | Yes | Environment ID |
| snapshotId | path | string | Yes | Snapshot ID |
Query parameters
None.
Body schema
Content type: application/json · Optional
| Field | Type | Required | Description |
|---|---|---|---|
| name | string | No | Human-readable name. |
| description | string | No | Human-readable description. |
What the API returns
Each response code below includes the documented payload shape for the ACP API.
201Computer fork createdapplication/json
| Field | Type | Required | Description |
|---|---|---|---|
| environment | object | No | — |
| environment.id | string | No | Unique identifier. |
| environment.projectId | string | No | Project ID. |
| environment.name | string | No | Human-readable name. |
| environment.description | string | No | Human-readable description. |
| environment.environmentVariables | object[] | No | — |
| environment.environmentVariables[].key | string | No | — |
| environment.environmentVariables[].value | string | No | — |
| environment.secrets | object[] | No | — |
| environment.setupScripts | string[] | No | — |
| environment.mcpServers | object[] | No | — |
| environment.mcpServers[].name | string | No | Human-readable name. |
| environment.mcpServers[].type | stdio | http | No | — |
| environment.mcpServers[].command | string | No | For stdio servers |
| environment.mcpServers[].args | string[] | No | — |
| environment.mcpServers[].url | string | No | For HTTP servers |
| environment.mcpServers[].bearerToken | string | No | — |
| environment.mcpServers[].enabled | boolean | No | — |
| environment.internetAccess | boolean | No | — |
| environment.isDefault | boolean | No | — |
| environment.baseImage | string | No | — |
| environment.dockerfileExtensions | string | No | — |
| environment.runtimes | object | No | — |
| environment.packages | object | No | — |
| environment.packages.system | string[] | No | — |
| environment.packages.python | string[] | No | — |
| environment.packages.node | string[] | No | — |
| environment.guiEnabled | boolean | No | — |
| environment.buildStatus | string | No | — |
| environment.buildError | string | No | — |
| environment.imageTag | string | No | — |
| environment.lastBuildAt | string | No | — |
| environment.createdAt | string | No | ISO 8601 timestamp. |
| environment.updatedAt | string | No | ISO 8601 timestamp. |
| snapshot | object | No | — |
| snapshot.id | string | No | Unique identifier. |
| snapshot.environmentId | string | No | Computer ID. |
| snapshot.sourceThreadId | string | No | — |
| snapshot.sourceStepId | string | No | — |
| snapshot.parentSnapshotId | string | No | — |
| snapshot.ledgerCommitSha | string | No | — |
| snapshot.changedPaths | string[] | No | — |
| snapshot.additions | integer | No | — |
| snapshot.deletions | integer | No | — |
| snapshot.metadata | object | No | Free-form metadata object. |
| snapshot.createdAt | string | No | ISO 8601 timestamp. |
| sourceSnapshotId | string | No | — |