Badr Backend

content v1

Mobile 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-otpSend an OTP to a phone number ({ phone })
POST/api/auth/verify-otpVerify the code, create the account, get a bearer token
POST/api/auth/logoutRevoke the current token
GET/api/meThe authenticated account
GET/api/syncFull offline content bundle — steps, answers, UI strings (no audio)
GET/api/sync/versionCurrent content version (public, for cheap update checks)
GET/api/answersAnswers feed: broadcast + your private replies
GET/api/audio/answers/:idStream one answer’s audio on demand
POST/api/questionsUpload a recorded voice question (multipart)
GET/api/questionsYour questions and their status

Admin endpoints live under /api/admin/* (header x-admin-key). Full docs in the project README.