Skip to main content
POST
Issue an AI-agent session key

Authorizations

Authorization
string
header
required

TESTNET posture: simulated signature bearer — the token is the caller's 0x (address-as-identity; no per-request signature verification). Real EIP-191/EIP-712-verified bearers + SIWE (EIP-4361) sessions for the hosted UI arrive in v1.7.0. The settlement security boundary is the EIP-712 Order signature verified by SwapERC20 on-chain, not this credential. See docs/auth-posture-testnet.md.

Path Parameters

address
string
required
Pattern: ^0x[a-fA-F0-9]{40}$

Body

application/json
label
string
Maximum string length: 64
expiryHours
integer
default:24
Required range: 1 <= x <= 720
dailyLimitEth
string
default:0.001

Decimal ETH amount. NATIVE-VALUE cap per rolling 24h (SkiaAccount.validateUserOp) — NOT an ERC-20 trade-volume cap (R4-4); the per-token dailyTokenLimit below is the token-notional bound. An agent reading this as a spend cap is wrong by design.

Pattern: ^\d+(\.\d+)?$
dailyTokenLimit
string
default:250

HUMAN-units decimal token amount — per-token 24h outflow cap applied to EVERY settlement token (USDC + DAI at their decimals; SessionTokenCap.dailyLimitRaw). v4 (P0-3, BUILT 2026-11-15): the account fails closed on settlement for tokens without a configured cap, so issuance ALWAYS binds caps — a spec-conformant client that omits this field gets the default, never a 400 (SESSION_TOKEN_CAPS_REQUIRED guards the lib entry for direct callers only). v3-generation accounts (current deployed fleet until the repin wave) do NOT enforce caps on-chain.

Pattern: ^\d+(\.\d+)?$

Response

Session key issued

id
string
required
address
string
required
privateKey
string
required

Returned ONCE. TESTNET CUSTODIAL: key material is also stored server-side (dev storage).

expiry
string<date-time>
required
dailyLimit
string
required
dailyTokenLimit
string
required

HUMAN-units per-token 24h outflow cap echoed back (the request's dailyTokenLimit; default 250.0). Raw-unit caps per token live in policy.tokenCaps.

policy
object
required