Documentation Index
Fetch the complete documentation index at: https://docs.calmtreasury.xyz/llms.txt
Use this file to discover all available pages before exploring further.
Headers
Bearer <privy_identity_token>. The Privy app id is read from the JWT’s
aud claim — no separate header.Body
Empty.Response
The Ethereum address bound to this session (lowercased, 0x-prefixed).
ISO timestamp when the cookie expires (currently 1 hour after issue).
What the server does
Verifies the signature
Against
https://auth.privy.io/api/v1/apps/<aud>/jwks.json. Issuer must
be privy.io, audience must equal the aud. 401 invalid_token or
token_expired on failure.Extracts the wallet
The first entry in
linked_accounts with type: "wallet". 403
wallet_not_linked if absent.Errors
| Code | Status |
|---|---|
token_required | 401 |
invalid_token | 401 |
token_expired | 401 |
wallet_not_linked | 403 |
Notes
This is the only endpoint that needs the Privy JWT. Every subsequent call
uses the cookie via
credentials: "include".