FastAPI + Postgres + Next.js. Full backend architecture, API endpoints, data model, integrations, and open decisions. Source: repo README.
| Method | Path | Description |
|---|---|---|
| GET | /me | Current user info |
| POST | /onboarding/sessions | Create onboarding session |
| POST | /onboarding/sessions/{id}/answers | Upsert answers |
| POST | /onboarding/sessions/{id}/voice | Upload voice note |
| POST | /onboarding/sessions/{id}/complete | Complete onboarding |
| GET | /goals/templates | List goal templates |
| POST | /goals | Create goal |
| GET | /goals | List user goals |
| PATCH | /goals/{id} | Update goal |
| POST | /commitments/contracts | Create contract |
| POST | /commitments/contracts/{id}/sign | Sign contract |
| POST | /commitments/contracts/{id}/invite-links | Create invite link |
| POST | /commitments/invite-links/{token}/accept | Accept invite |
| GET | /public/accountability/{token} | Guest accountability view |
| GET | /public/betting/{token} | Guest betting view |
| POST | /public/betting/{token}/bets | Place a bet |
| GET | /bets/contracts/{id} | List bets on contract |
| POST | /bets/contracts/{id}/settle | Settle bets |
| POST | /compliance/events | Create compliance event |
| GET | /compliance/window/30d | 30-day compliance score |
| POST | /wearables/{provider}/connect | Store wearable tokens |
| GET | /wearables/connections | List connections |
| POST | /wearables/{provider}/daily-summaries | Upsert daily data |
| GET | /wearables/{provider}/daily-summaries | Get daily data |
| GET | /dashboard | Dashboard summary |
| POST | /telegram/link-code | Generate link code |
| POST | /integrations/telegram/webhook | Telegram webhook |
| POST | /calls/outbound | Trigger outbound call |