API ReferenceRun

Start a fresh run

POST
/console/api/reset

Opens a new data folder. Locally earlier folders are kept; in hosted mode they are deleted (wiped, removed_folders).

Authorization

consoleSession csrfToken
clearwake_console<token>

Set by GET /console/api/session. HttpOnly, SameSite=Strict, 8 hours.

In: cookie

X-Clearwake-CSRF<token>

The csrf value from GET /console/api/session, an HMAC of the session id. Required on every POST.

In: header

Request Body

application/json

An empty JSON object.

An empty JSON object. The route takes no fields.

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/console/api/reset" \  -H "Content-Type: application/json" \  -d '{}'
{  "ok": true,  "folder": "run-20261111-104352-aecb",  "wiped": false,  "removed_folders": 0}