For future apps
The news API
The website and the Android app use the same database. Responses are JSON: { ok: true, data } or { ok: false, error: { code, message } }.
| Method | Path | What it returns |
|---|---|---|
| GET | /api/v1/home | Android home: breaking, latest, videos, programmes and Live TV. |
| GET | /api/v1/live | Whether the channel is on air, plus the embed address. |
| GET | /api/v1/articles?limit&offset&category | Published articles. limit defaults to 20 and caps at 50. |
| GET | /api/v1/articles/:slug | One published article. Drafts return 404. |
| GET | /api/v1/categories | News desks, including the interest list. |
| GET | /api/v1/categories/:slug/articles | Published articles for one desk. |
| GET | /api/v1/search?q | Published articles and programmes. q is required. |
| GET | /api/v1/programs | Published programmes. |
| GET | /api/v1/programs/:slug | One published programme. |
| GET | /api/v1/me | The signed-in profile. 401 when signed out. |
| PUT | /api/v1/me | Update displayName and imageUrl. A role field is rejected. |
| GET | /api/v1/me/interests | Interests for the signed-in user only. |
| PUT | /api/v1/me/interests | Replace interests. Body: { "interests": ["politics", "sports"] }. |
| GET | /api/v1/me/saved | That user’s saved published articles. |
| POST | /api/v1/me/saved | Save a story. Body: { "slug": "..." }. Duplicates are ignored. |
| DELETE | /api/v1/me/saved/:slug | Remove a saved story. |
| GET | /api/v1/me/feed | Published stories, matching interests first, then the rest. |
| POST | /api/v1/activity | Record article_open, article_save or program_view. Kept 90 days, last 200 rows. |
Account routes need a signed-in session. On the website that is the session cookie. A mobile app should sign in through Better Auth email/password, Google, or X, then send Authorization: Bearer with the session token. Do not ship a database password or service key in an app.
Categories for interests: local, nigeria, africa, politics, business, sports, international. A user id sent in the body is ignored. Each account can read only its own profile, interests and saves. Drafts are never in these public routes. There is no AI endpoint in this version.
