> ## Documentation Index
> Fetch the complete documentation index at: https://docs.archal.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Reset API

> Return one environment or every environment in a sandbox to its declared baseline.

Reset one environment:

```http theme={null}
POST /api/sessions/{sessionId}/environments/{environmentId}/reset
Authorization: Bearer archal_ws_...
```

Reset the full sandbox:

```http theme={null}
POST /api/sessions/{sessionId}/reset
Authorization: Bearer archal_ws_...
```

For current JSON environments, initial state establishes the first baseline
and a later successful state load establishes a new one. The five canonical
Supabase samples separately expect reset to restore the original session seed.
Treat that difference as part of the environment contract and test it before
depending on a later SQL load as a baseline.

A full reset coordinates independent environments. Inspect each result because
one failure does not imply another environment was rolled back.

Reset overwrites live state. Prefer a new sandbox for unrelated test groups.
Use reset for repeated attempts inside one deliberate test boundary.
