NOME
Docs/API

Environments API

Create, inspect, snapshot, reset, and archive environments.

MethodPathDescription
POST/v1/environmentsCreate from a spec, template, or snapshot.
GET/v1/environmentsList environments in the workspace.
GET/v1/environments/{id}Retrieve an environment.
PATCH/v1/environments/{id}Update network parameters or metadata.
POST/v1/environments/{id}/snapshotsCreate a snapshot.
POST/v1/environments/{id}/resetReset to a snapshot.
GET/v1/environments/{id}/stateRead state at the head or a given block.
DELETE/v1/environments/{id}Archive.

Create

httphttp
POST /v1/environments
{
  "name": "checkout-flow",
  "template": "evm-basic",
  "network": { "blockTime": "2s" },
  "accounts": 8
}

Reset

httphttp
POST /v1/environments/env_7f3a2c/reset
{ "snapshot": "snap_0001" }

Reset responds with the environment at its new head. Run records created after the target snapshot remain retrievable through the runs endpoint.