airbox.fyi

Authentication

Session cookies for the dashboard, API keys for programmatic access

API key (SDK)

Send your key on every request:

X-API-Key: abx_…
MethodPathDescription
POST/auth/api-keyRotate API key — returns new key once
GET/auth/meCurrent user (cookie or API key)

Dashboard session

MethodPathDescription
POST/auth/request-codeEmail a login code
POST/auth/verifyVerify code → sets session cookie
POST/auth/registerCreate account with email + password
POST/auth/loginEmail + password login
POST/auth/set-passwordSet optional password (signed in)
POST/auth/logoutClear session
GET/auth/meCurrent user profile + credits

Example

# Programmatic
curl http://localhost:8000/auth/me -H "X-API-Key: YOUR_KEY"

# Dashboard (browser) — cookie set automatically after /auth/verify
curl http://localhost:8000/inboxes --cookie "session=…"