Badr Backend
content v1Mobile backend for the Badr Umrah Guide app. Devices sign in with phone + OTP, download the whole content bundle once, and work fully offline; audio streams on demand. Content is managed in the admin console.
6 steps3 answers82 UI strings0 users
API
| POST | /api/auth/request-otp | Send an OTP to a phone number ({ phone }) |
| POST | /api/auth/verify-otp | Verify the code, create the account, get a bearer token |
| POST | /api/auth/logout | Revoke the current token |
| GET | /api/me | The authenticated account |
| GET | /api/sync | Full offline content bundle — steps, answers, UI strings (no audio) |
| GET | /api/sync/version | Current content version (public, for cheap update checks) |
| GET | /api/answers | Answers feed: broadcast + your private replies |
| GET | /api/audio/answers/:id | Stream one answer’s audio on demand |
| POST | /api/questions | Upload a recorded voice question (multipart) |
| GET | /api/questions | Your questions and their status |
Admin endpoints live under /api/admin/* (header x-admin-key). Full docs in the project README.