The self-serve API is the HTTP backend behind the Essey on Sui console. It signs people in, creates and runs their hosted agents, and builds every transaction they sign. It never holds a user's key: it builds a transaction, the user signs it in their own wallet or with their passkey, and the API executes exactly those bytes.
The client gets a sign-in challenge and signs it with a passkey or a Sui wallet key.
The server verifies the signature and returns a session token.
Every other call sends Authorization: Bearer <token>.
To change anything on chain, the client asks the server to build a transaction, signs the returned bytes, and posts the signature to execute it. A built transaction is kept for 120 seconds and executes once.
The operator pays the gas for every transaction the server builds.
http://127.0.0.1:8790.GET and POST.GET must send Content-Type: application/json. Bodies are capped at 64 KiB.127.0.0.1 and localhost are accepted.Origin header, such as curl, pass."12.5" USDC or "30" SUI. Large integers in responses are strings.GET /healthz returns {"ok":true}.Each row links to the request and response on the route reference.
| Method | Path | Auth | Payload |
|---|---|---|---|
| GET | /healthz | none | Health |
| GET | /v1/config | none | Config |
| GET | /v1/errors | none | Errors |
| GET | /v1/faucet | none | Faucet |
| POST | /v1/faucet/usdsui, /usdc, /sui | none | Faucet |
| POST | /v1/auth/challenge, /session | none | Authentication |
| POST | /v1/auth/logout | session | Authentication |
| GET | /v1/me | session | Authentication |
| GET, POST | /v1/agents | session | Agents |
| POST | /v1/mandate/preview | session | Agents |
| GET | /v1/agents/:id | owner | Agents |
| POST | /v1/agents/:id/tx, /tx/:txId | owner | Agents |
| POST | /v1/agents/:id/launch, /pause, /stop, /settings | owner | Agents |
| GET | /v1/agents/:id/loans, /activity | owner | Agents |
| POST | /v1/borrow/quote, /preview | session | Borrow |
| GET | /v1/borrow/rooms, /rooms/:id, /loans, /history | session | Borrow |
| POST | /v1/borrow/tx, /tx/:txId | session | Borrow |
| POST | /v1/upkeep/dry-run | none | Upkeep dry run |
| POST | /v1/byo/peek, /claim | session | Self-run agents |
| POST | /v1/agent/challenge, /session, /setup, /sponsor, /credential | agent | Self-run agents |
| GET | /v1/agent/setup | agent | Self-run agents |
| GET | /v1/private/config | none | Private config and credentials |
| POST | /v1/private/credential | session | Private config and credentials |
| POST | /v1/private/tx/:action | none | Private transactions |
| POST | /v1/admin/kill, /deny, /undeny, /denied | admin token | Admin |
An agent id is a- followed by 16 hex digits. :txId is 32 hex digits.
Every page in the API tab: API reference