curl. The full spec is docs/openapi.json (OpenAPI 3.1, 63 operations): open it in Swagger Editor or any OpenAPI viewer to read every route and try it against the hosted API. Every server-sent event type is described in docs/api-contract.md §3.
- Base URL:
https://api.hellonear.xyz(NEAR testnet), orhttp://localhost:4000. - Auth: a session cookie,
hn_session. Get one withPOST /v1/auth/demo(guest, no wallet) or with a NEAR wallet:POST /v1/auth/challenge, sign the message (NEP-413), thenPOST /v1/auth/login.curlworks as is (noOriginheader); a browser page on another site gets403for any call that changes something (CSRF protection). - Streams: chat, approve/decline, workflow runs and attack runs answer
text/event-stream:run.started,text.delta,tool.called,tool.result,tool.approval_required,run.finished,run.verifiedand more. - Guests get
403 demo_not_allowedfor owner actions (wallet policy, freeze, memory edits, rules, schedules); everything else works. - Checked live: the last column marks the endpoints called against the hosted API with a guest session on 12 Nov 2026 and answered as documented (owner-only and money-moving endpoints are covered by the backend’s integration tests instead).
Auth
Catalog
Minds
Chat
Runs
Approvals
Verification
Wallet
Memory
Email
Autopilot
Connections
Telegram
Secrets
Attack playground