Fork computer from snapshot

POST/v1/environments/{environmentId}/snapshots/{snapshotId}/fork

Materialize 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
NameLocationTypeRequiredDescription
environmentIdpathstringYesEnvironment ID
snapshotIdpathstringYesSnapshot ID
Query parameters
None.

Body schema

Content type: application/json · Optional

FieldTypeRequiredDescription
namestringNoHuman-readable name.
descriptionstringNoHuman-readable description.

What the API returns

Each response code below includes the documented payload shape for the ACP API.

201Computer fork createdapplication/json
FieldTypeRequiredDescription
environmentobjectNo
environment.idstringNoUnique identifier.
environment.projectIdstringNoProject ID.
environment.namestringNoHuman-readable name.
environment.descriptionstringNoHuman-readable description.
environment.environmentVariablesobject[]No
environment.environmentVariables[].keystringNo
environment.environmentVariables[].valuestringNo
environment.secretsobject[]No
environment.setupScriptsstring[]No
environment.mcpServersobject[]No
environment.mcpServers[].namestringNoHuman-readable name.
environment.mcpServers[].typestdio | httpNo
environment.mcpServers[].commandstringNoFor stdio servers
environment.mcpServers[].argsstring[]No
environment.mcpServers[].urlstringNoFor HTTP servers
environment.mcpServers[].bearerTokenstringNo
environment.mcpServers[].enabledbooleanNo
environment.internetAccessbooleanNo
environment.isDefaultbooleanNo
environment.baseImagestringNo
environment.dockerfileExtensionsstringNo
environment.runtimesobjectNo
environment.packagesobjectNo
environment.packages.systemstring[]No
environment.packages.pythonstring[]No
environment.packages.nodestring[]No
environment.guiEnabledbooleanNo
environment.buildStatusstringNo
environment.buildErrorstringNo
environment.imageTagstringNo
environment.lastBuildAtstringNo
environment.createdAtstringNoISO 8601 timestamp.
environment.updatedAtstringNoISO 8601 timestamp.
snapshotobjectNo
snapshot.idstringNoUnique identifier.
snapshot.environmentIdstringNoComputer ID.
snapshot.sourceThreadIdstringNo
snapshot.sourceStepIdstringNo
snapshot.parentSnapshotIdstringNo
snapshot.ledgerCommitShastringNo
snapshot.changedPathsstring[]No
snapshot.additionsintegerNo
snapshot.deletionsintegerNo
snapshot.metadataobjectNoFree-form metadata object.
snapshot.createdAtstringNoISO 8601 timestamp.
sourceSnapshotIdstringNo
Fork computer from snapshot
Loading...
Response 201
Loading...
See the ACP quickstart and SDK flow