App & Legal Content
How the mobile app reads About content, social links, legal documents, privacy, terms, account-deletion, and support copy.
This guide covers the public content endpoints that power settings/about/legal
screens in the mobile app. They are anonymous, read-only, and localised via
Accept-Language. They still use the standard envelope and still return
meta.requestId.
| Surface | Endpoint | Auth |
|---|---|---|
| About-app content | GET /api/v1/app/about | none |
| Legal document list | GET /api/v1/legal | none |
| Legal document body | GET /api/v1/legal/:slug | none |
These endpoints are the app-facing source of truth. The public marketing pages
(/about, /privacy, /terms) render HTML and are not the mobile JSON
contract. Use /api/v1/app/about and /api/v1/legal.
The flow at a glance
Step 1 - Set locale
Send Accept-Language: en or Accept-Language: ar. If the requested locale row
is missing, the server falls back to English and tells you the actual locale on
legal rows.
Step 2 - Load About content
Call GET /api/v1/app/about for app name/tagline/description/copyright/social
links. All text fields are nullable, so keep bundled fallback copy in the app.
Step 3 - Load the legal index
Call GET /api/v1/legal to render the available document list. The list
contains slug, title, version, locale, and effective date only.
Step 4 - Load a document body on demand
Call GET /api/v1/legal/:slug when the user opens a document. The body is
Markdown.
About content
GET /api/v1/app/about
Accept-Language: ar{
"data": {
"name": "Track Me",
"tagline": "Food Truck Platform",
"description": "Discover food trucks.",
"copyright": "© 2026 Track Me.",
"socialLinks": [
{ "platform": "instagram", "url": "https://instagram.com/trackme", "label": "Instagram" }
]
},
"meta": { "requestId": "req_01..." }
}Rules:
- Anonymous. Do not send a token just to read it.
name,tagline,description, andcopyrightcan benull.socialLinksis always an array. Blankplatformor blankurlrows are filtered out server-side.- The app version is intentionally not returned. Read it from the installed bundle.
- English fallback is automatic when the requested locale has no row.
Legal index
GET /api/v1/legal
Accept-Language: en{
"data": {
"items": [
{
"slug": "privacy",
"title": "Privacy Policy",
"version": "2026-06-01",
"locale": "en",
"effectiveDate": "2026-06-01"
}
]
},
"meta": { "requestId": "req_01..." }
}Known slugs seeded today:
| Slug | Use |
|---|---|
about | Long-form About TrackMe content. |
privacy | Privacy Policy. |
terms | Terms of Service. |
account-deletion | Account and data deletion policy. |
support | Support and contact information. |
The list is intentionally body-free. Use it for menus, settings rows, and version/effective-date badges. Fetch the body only when the user opens a row.
Legal document body
GET /api/v1/legal/privacy
Accept-Language: ar{
"data": {
"slug": "privacy",
"title": "Privacy Policy",
"body": "# Privacy Policy\n\n...",
"version": "2026-06-01",
"locale": "en",
"effectiveDate": "2026-06-01",
"updatedAt": "2026-06-21T08:00:00.000Z"
},
"meta": { "requestId": "req_01..." }
}body is Markdown. Render it with the same safe Markdown renderer you use for
other app content. Unknown slugs return 404 NOT_FOUND with
targetType: "legal_document" and targetId set to the slug.
locale is the locale actually served. If you request Arabic and a document has
not been translated yet, the server returns the English row with
locale: "en". Do not assume the body language equals the header you sent.
Caching
These endpoints do not expose cursor pagination and do not require a refresh loop. A simple app cache works well:
- Cache
/api/v1/app/aboutby locale. - Cache
/api/v1/legalby locale and re-read it when the settings/about screen opens. - Cache document bodies by
(slug, locale, version). If the index version changes, re-fetch the body.
Implementation Notes
| Integration issue | Correct handling |
|---|---|
Calling /about, /privacy, or /terms from the mobile app | Those are HTML pages. Use /api/v1/app/about and /api/v1/legal. |
| Expecting the legal list to include Markdown bodies | The list is metadata only. Fetch GET /api/v1/legal/:slug for body. |
Assuming Accept-Language: ar guarantees Arabic legal text | It falls back to English per document. Read the returned locale. |
| Crashing when About fields are null | They are nullable by design. Keep bundled fallback copy. |
| Showing the Paymob return page as a legal/payment status endpoint | /payments/return is a display-only web page after checkout, not proof of payment. Poll the payment/subscription endpoint instead. |
Reference-only surfaces
The generated API reference also includes ops or infrastructure
routes such as /health/live, /health/ready, /metrics, /api.json, and
/api.yaml. They are useful for deployment and tooling, but they are not mobile
app workflows. Mobile screens should be built from the flow guides and the
customer/owner API reference pages.
Related
Profile & Preferences
How a signed-in customer reads and edits their own profile, sets preferences and an avatar, runs the four-step verified email/phone change, and self-grants user types.
Discovery & Search
How the customer app finds food trucks — geo discovery, federated and menu-item search, the cuisine taxonomy, per-truck reads, favoriting, reviews, and the short location-share link.