TrackMe API Docs
Flow guides

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.

SurfaceEndpointAuth
About-app contentGET /api/v1/app/aboutnone
Legal document listGET /api/v1/legalnone
Legal document bodyGET /api/v1/legal/:slugnone

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.

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, and copyright can be null.
  • socialLinks is always an array. Blank platform or blank url rows 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.
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:

SlugUse
aboutLong-form About TrackMe content.
privacyPrivacy Policy.
termsTerms of Service.
account-deletionAccount and data deletion policy.
supportSupport 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.

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/about by locale.
  • Cache /api/v1/legal by 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 issueCorrect handling
Calling /about, /privacy, or /terms from the mobile appThose are HTML pages. Use /api/v1/app/about and /api/v1/legal.
Expecting the legal list to include Markdown bodiesThe list is metadata only. Fetch GET /api/v1/legal/:slug for body.
Assuming Accept-Language: ar guarantees Arabic legal textIt falls back to English per document. Read the returned locale.
Crashing when About fields are nullThey 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.

On this page