OAuth & Security

OAuth 2.1 and security for the Stakao Agent API: consent, route scopes, token handling, caching rules and why agents cannot execute staking.

Updated 2026-10-13

Then €19/month$20/month. Card required. Cancel before your trial ends to avoid charges.

02

Route scopes

The API enforces both the token scopes and the scopes stored in the active Stakao consent.

  • GET https://api.stakao.com/agent/account/me — openid.
  • GET https://api.stakao.com/agent/account/wallets — openid profile.
  • GET https://api.stakao.com/agent/account/strategies — openid profile.
  • POST https://api.stakao.com/agent/account/activation-requests — openid profile email.
  • GET/POST https://api.stakao.com/agent/mcp/account — openid profile transport access; tool-specific calls enforce their account scope.
03

Token handling and cache policy

Authorization is accepted only on the account routes, and account responses are never cached.

  • Public x402 and public MCP routes ignore any Authorization header.
  • Account responses use Cache-Control: private, no-store.
  • 401 responses preserve or synthesize WWW-Authenticate: Bearer.
  • Cookies, bearer tokens, OAuth bodies, and account payloads are not logged.
04

No agent execution

OAuth account access does not grant on-chain execution authority.

Account reads are tenant-scoped to the authenticated user. request_activation creates a PENDING record for human review. It does not sign, create a proxy, create a delegate transaction, activate a strategy, or call the chain.