Skip to main content
The User API is a JSON-RPC 2.0 API for managing a user’s wallets, networks, identity providers, sessions, and transactions. The User UI is built on it, and you can call it directly from scripts, a backend, or a custom UI.
  • Base path: /api/v0/user (configurable via server.userPath)
  • Protocol: JSON-RPC 2.0
  • Authentication: JWT bearer token, except where noted below

Methods

Authentication

Most methods require a JWT in the Authorization header:
The following methods are available without authentication, so a client can bootstrap a connection:
  • addSession()
  • listNetworks()
  • listIdps()

Full specification

The complete OpenRPC specification is available at openrpc-user-api.json.

Rate limiting

Requests are rate-limited to prevent abuse. Configure the limits in the server settings. Responses include:
  • X-RateLimit-Limit: maximum requests per window.
  • X-RateLimit-Remaining: remaining requests in the current window.
  • X-RateLimit-Reset: when the limit resets.

CORS

Cross-origin access is controlled by server.allowedOrigins. It defaults to ["*"]; in production, restrict it to known origins. See Configure the Wallet Gateway.