/v1 and grouped by concern:
- Auth — Google login, OAuth callback, token refresh, logout
- Identity — the stable per-user identity and its login credentials
- Profile — public profile data
- Wallet — the wallet associated with the PID
- OpenAPI — the machine-readable specification
Base URL
All endpoints are prefixed with/v1.
Authentication
Authentication is cookie-based. After Google sign-in the API sets twoHttpOnly cookies:
pid_access— short-lived JWT access token (15 min), sent on every request.pid_refresh— long-lived rotating refresh token (30 days), only sent to/v1/auth.
Cookie: pid_access=<token> on each request and call /v1/auth/refresh before the
access token expires.
Browse the endpoints in the sidebar, or read the raw
OpenAPI 3.0 specification (also served at
GET /v1/openapi.yaml on either API host; a copy ships with these docs as openapi.yaml).