Admin
Operator routes, authenticated with the admin token instead of a session: Authorization: Bearer <admin token>. A wrong token or a non-POST method returns 403 NOT_ADMIN; with the right token, an unknown path under /v1/admin/ returns 404 NO_SUCH_ROUTE.
On a local server the admin token is created on first start and stored, mode 600, as admin-token in the server's data directory. The server prints its data directory when it starts: self-serve (data <directory>) on http://127.0.0.1:8790. A hosted server takes its admin token from SELF_SERVE_ADMIN_TOKEN, at least 32 characters, and its data directory from SELF_SERVE_DATA_DIR.
Kill switch#
| Field | Type |
|---|---|
| on | boolean |
| reason | string, up to 200 characters |
→ { ok, kill: {on, at, by, reason} }. The switch is read on every agent's every turn, so it takes effect at each agent's next turn and survives a restart. While it is on, agents show killed and cannot be launched.
Sponsor deny list#
The addresses the sponsor lanes will not pay gas for. A denied sender is refused on its next sponsorship request. On a server without a deny list these routes answer 404 NO_SUCH_ROUTE.
| Field | Type |
|---|---|
| address | Sui address; short and mixed-case forms map to one entry |
| reason | string, required, up to 200 characters |
→ { ok, address, entry: {at, reason} }. Refusals: 400 BAD_ADDRESS, 400 NO_REASON, 409 ALREADY_DENIED.
{address} → { ok, address }. Refusals: 400 BAD_ADDRESS, 404 NOT_DENIED.
{ ok, denied }Every entry, keyed by address, each {at, reason}.