- Link — mint a session
wallet_address is 32–64 chars. Returns a 7-day HMAC session token:
session_token and send it as Authorization: Bearer <session_token> on every other call.
- Grant — scope + provision
withdraw_allowlist is the user’s own address — funds can only ever move back to the wallet that owns the session. The bind is best-effort: a 200 here does not guarantee /v1/agent/state is immediately 200 — retry on 404 for ~10s after granting.
Custody options: signing in the OKX Agentic Wallet TEE (key generated in and never leaving the enclave) or a scoped embedded wallet (per-tx cap + allowed venues) for one-click onboarding. Never show “we hold your funds” — it isn’t true.
- Agent state — read your own
state: null→ the agent has no document yet (show “warming up”).404→ no agent bound to this user (send them back to onboarding).- Lead the UI with liveness + positions + deferral discipline — the agent declining weak setups is the product. Never render PnL as the hero.
Also available
| Method | Path | What |
|---|---|---|
| GET | /v1/onboarding/me | The current session’s identity + scope |
| POST | /v1/onboarding/revoke | Revoke the scope (deny-all). Withdrawal stays available — it is never kill-switch-gated. |
Get a verdict
Now ask the oracle.
Custody, in depth
TEE keys, scoped wallets.