For developers

Whilesmart sites and apps link to these documents, embed them, and record which version a person accepted. Everything here is static JSON and HTML with no tracking.

Use the stable address, such as https://legal.whilesmart.com/privacy or https://legal.whilesmart.com/terms. It always shows the version in force. Each version also has a dated address, such as https://legal.whilesmart.com/privacy/2026-12-03, that never changes.

Document index

/api/index.json lists every document with its current version, effective date, addresses and hash. /api/<document>.json adds every version and what changed.

Record acceptance

When a person accepts a document, store the version and hash of the copy you showed them, taken from the index when you rendered the screen. Do not look the current version up again when they submit. Ask again when the index shows a newer version with material set to true.

{
  "document": "terms",
  "version": "terms-2026-12-03",
  "hash": "sha256:99eb8d5fff4248447907f95d7dc729fcbe9cf19d59532d13b9a33af49f1a3937",
  "accepted_at": "2027-01-15T10:00:00Z"
}

The hash is sha256 over the canonical JSON of the version's facts, its Markdown text and the product data shown inside it, so it changes whenever the text a reader sees changes.

Embed a document

/embed/<document>.html is an HTML fragment of the current version, and /embed/<document>/<YYYY-MM-DD>.html of a fixed version. Fragments carry their version and hash as data attributes, use absolute links and contain no scripts. Insert them as HTML into your page.

Product data and store answers

/api/apps/index.json lists products. /api/apps/<product>.json returns its data inventory and generated Apple App Privacy and Google Play Data safety answers.

Schemas