JSON document payloads
GET /docs/[orgSlug]/[docSlug] returns document metadata and content for published versions - ready for rendering in your UI.
Platform · Public document API
Your app needs the current Privacy Policy text programmatically. The public document API serves published content as structured JSON - no auth required for public docs.
GET /docs/[orgSlug]/[docSlug] returns document metadata and content for published versions - ready for rendering in your UI.
Browser clients on your marketing site or web app can fetch public documents cross-origin without proxy hacks.
Request a specific published revision with the ?v=N query parameter when you need historical text.
Responses include a five-minute cache TTL - balancing freshness after publishes with efficient CDN and client caching.
The API reads the same published versions served on Lawcel-hosted legal pages - one source of truth for human and programmatic consumers.
Published documents are public by design. Authenticated REST API endpoints remain separate for org-private operations.
Typical uses
Legal publishes an approved version in Lawcel. Your marketing site links to the hosted page while your product app pulls JSON from the public API to show in-app terms acceptance.
When legal publishes an update, both the hosted page and API reflect the new version after cache expiry.
Publish in Lawcel
Legal team publishes the document version customers should see. Slug and org slug determine the API path.
Fetch from your app
Call the public endpoint from server or client code. Handle caching in your app layer if you need sub-five-minute freshness.
Stay in sync
Avoid hard-coding legal text in repos. Point at Lawcel so updates propagate without redeploying application code.
Wire Lawcel into your stack - or start with a free scan of your public legal pages.