GET
Get a legal document

Overview

Returns one published legal document with its rich-text body. The mobile app’s Terms and Privacy screens render this directly, so the client can update the wording in the admin panel without an app release. slug is one of:

Authentication

None. The app links to both documents from the sign-up screen, before a session exists.

About bodyHtml

The body is HTML, sanitized server-side against a fixed allowlist before it is stored. It is safe to render without further processing. Only these tags can appear: h1 h2 h3 h4 p ul ol li strong b em i u a br hr blockquote table thead tbody tr th td The only permitted attributes are href, target and rel on <a>, and link schemes are restricted to http, https, mailto and tel. Script tags, event handlers (onclick), inline styles, classes, ids, images and javascript: URLs are stripped at write time and can never reach a client.

Response — 200 OK

Errors

A 404 is deliberate rather than an empty body: it lets the app show a real error state instead of rendering a blank legal page.