Overview
It says, in one predictable place:
- what records the company holds about its users,
- how long it keeps each kind,
- what legal process gets each kind,
- how to serve that process, and where: portals, email, mail, the registered agent,
- who to call in an emergency, and when they answer,
- how preservation, user notice, international requests, records certification and fees work,
- what the company can never provide, so nobody waits for it.
Investigators today piece this together from law enforcement guides in different layouts, privacy policies and word of mouth. Those pages change without notice, and an investigator who relied on last year's retention period can lose the records. This format puts the company's own current answers in one predictable place, dated, with a record of what changed.
- Schema:
v1.json(JSON Schema 2020-12) - Full example:
example-messaging.json, a made-up messaging company - Validator:
validate.py:python3 validate.py legal-process.json
Why Publish One
For Your Company
A law enforcement response team spends much of its day on requests that can't be answered as sent: the wrong identifier, the wrong kind of process, served to the wrong address, or asking for records that were deleted months ago or never existed. Each one means a reply, a wait and a second request. This file answers those questions before the request is written.
- Fewer requests you have to send back. Investigators see which identifiers you can search, exactly how to write them, which process gets which records, and where to serve it. Requests arrive complete and in the right place the first time.
- Fewer requests for things you don't have. Retention periods and the list of things you can never provide (end-to-end encrypted content, data you don't collect) stop requests for records that aren't there, and stop preservation requests for data already gone.
- Narrower requests and smaller productions. When investigators know what each category contains, they ask for that category instead of "all records", which means less to review and less of your users' data handed over.
- Your words, not someone else's summary. Investigators already share notes, spreadsheets and forum posts about how to get records from you, and many are out of date. A file you publish and date becomes the source they trust, and the tools they use read it directly.
- Change it once, and everyone has it. When a retention period, portal or address changes, you update one file. Tools that read it pick the change up, and the changelog shows exactly what changed and when. No more requests built on last year's PDF.
- A dated record of what you said. Every revision carries its review date and a changelog. If a request or a court ever turns on what your practice was at a given time,
previousand the changelog show it. - The right calls on your emergency line. Saying who the line is for, when it's staffed and what a request must include keeps it for real emergencies and gets those answered faster.
- Transparency you can point to. Publishing how you handle government requests, what you keep and when you tell users is the kind of openness users, regulators and journalists ask for. The file holds no user data; it describes practices.
- Cheap to adopt. It's one static JSON file on your own website: no API to build, no account to open, no fee, no vendor. Most of the content is already in your law enforcement guide, and the validator checks it before you publish.
For Investigators
- One place, in one layout, for every company that publishes: no hunting through guides, privacy policies and old emails.
- Dated answers, so they can tell when something was last confirmed instead of guessing whether a guide is current.
- The rule that applied when the records were created, not just today's, so a preservation decision isn't based on the wrong period.
- Emergency contacts with their hours, at hand when minutes matter.
For the People Whose Data It Is
Requests that ask for exactly what exists, under the right process, through the right channel mean less data handed over, fewer mistakes and a public, dated statement of how the company treats government requests and when it tells users.
Principles
- The company is the authority. Every value is the company's own statement about its own practices. Readers show it as such, with the date, and never fill a gap with a guess.
- Dated, and it goes stale on purpose. Each file says when it was last reviewed and when it expires (no more than 12 months later). After that, readers treat it as unconfirmed, even if nothing changed. A company that keeps its file current just bumps
last_reviewedandexpires. - Changes are visible. A changelog says what changed and points at the exact fields. When a retention period changes, the old period stays in
previouswith the date it ended, because records created under the old rule follow the old rule. - One way to write each thing. Durations are ISO 8601 (
P90D,P1Y,PT24H), countries ISO 3166 (US), languages BCP 47 (en), phone numbers E.164 (+15555550100), times IANA zones (America/Los_Angeles). - Law in the company's own words. The format names the kind of process (
subpoena,court_order,search_warrant, …) so software can sort and compare. The exact legal basis goes inauthorityas the company states it. The format doesn't decide what the law requires. - No personal data. The file describes practices. It never contains a user's data, a case or a request. Contacts are role addresses (
lers@, a team phone), not named employees' personal details.
Publishing
| Location | https://<company domain>/.well-known/legal-process.json, on the standard HTTPS port. A company with several domains publishes on each, or on one and points canonical_url there from the rest. |
| Transport | HTTPS only. Every link inside the file is https:// too. |
| Media type | application/json |
| Cross-origin | Send Access-Control-Allow-Origin: * so browser-based tools can read it. |
| Caching | Cache-Control: max-age=86400 or shorter. |
| Integrity (optional) | Publish a detached JWS (RFC 7515) over the file's exact bytes at signature_url, signed with a key the company also publishes on its own site. Readers aren't required to check it, and Olympian Tools doesn't yet. |
| Discovery (optional) | On the human-readable guide, <link rel="alternate" type="application/json" href="/.well-known/legal-process.json">. |
Validate before publishing: python3 validate.py legal-process.json. It checks the schema, that every referenced contact, portal and service exists, that ids are unique, and that the expiry is within 12 months of the review date.
The File at a Glance
{
"spec_version": "1.0",
"file": { "published": "…", "last_reviewed": "…", "expires": "…", "canonical_url": "…", "changelog": [] },
"provider": { "legal_name": "…", "services": [ { "id": "chat", "name": "…" } ] },
"contacts": [ { "id": "emergency-phone", "purposes": ["emergency"], "method": "phone", "value": "+1…", "available": { "always": true } } ],
"portals": [ { "id": "le", "url": "https://…", "request_types": ["legal_process", "preservation"], "registration": {} } ],
"service_of_process": { "accepted_methods": [ { "method": "portal", "portal_id": "le" } ], "requirements": [], "registered_agent": {} },
"identifiers": [ { "type": "account_id", "format": "…", "where_to_find": "…" } ],
"data_categories": [ { "id": "subscriber", "name": "…", "retention": { "kind": "fixed", "period": "P180D" }, "obtainable_with": [ { "process": "subpoena" } ] } ],
"preservation": { "accepted": true, "initial_period": "P90D", "extensions": {} },
"emergency_requests": { "accepted": true, "how_to_request": [ { "contact_id": "emergency-phone" } ] },
"user_notification": { "policy": "notifies_by_default", "honors_nondisclosure_orders": true },
"international_requests": { },
"productions": { "formats": [], "custodian_certification": {}, "testimony": {} },
"costs": { "charges_fees": false },
"things_we_cannot_provide":[ { "what": "…", "why": "end_to_end_encrypted" } ],
"links": { "law_enforcement_guide": { "url": "…" } }
}
Required: spec_version, file, provider, contacts, service_of_process, data_categories. Everything else is strongly recommended; leave a section out only if it truly doesn't apply.
Sections point at each other by id (lowercase letters, digits, -, _): a data category lists the services it covers, preservation lists the contact_id or portal_id to use, and so on. Write a contact once and refer to it everywhere.
Sections
Open a section for the detail.
fileDates, expiry and changelog for the file itself.
About the file itself. published is when this revision went up; last_reviewed is when someone confirmed every value is still true; expires is when readers stop trusting it (at most 12 months after review). precedence says whether this file or the human-readable guide wins if they ever disagree. changelog lists changes newest first with JSON Pointers to what changed; keep at least two years.
providerThe legal entity, its names and every service the file covers.
The legal entity, trade names investigators might search for, parent company, state of incorporation, headquarters, where data is stored, and every service the file covers. Services that have shut down stay listed with status: "discontinued" and the date, because their records may still exist.
contactsEvery way to reach the response team, and when it's staffed.
Every way to reach the response team. Each has the purposes it serves (legal_process, emergency, preservation, records_custodian, testimony, billing, child_safety, …), the method and its value, when it's staffed (available: around the clock, or days and hours in a time zone), languages, who may use it, and whether sending process there counts as service (accepts_service). Say plainly when an address is for questions only.
portalsOnline request systems and how to register for them.
Online request systems: the URL, which request types it takes, how to register (who's eligible, whether a government email is required, how identity is confirmed, how long approval takes), upload limits, whether records come back through it and for how long they can be downloaded, and where outages are posted.
service_of_processHow to serve so it counts.
How to serve so it counts: the accepted methods (each tied to a portal or contact), the registered agent, what every request must contain, whether out-of-state domestic process is honored and on what authority, what will be refused, and typical response times.
identifiersWhat a request can use to point at an account, and how to write it.
What a request can use to point at an account and exactly how to write it: format, an optional regular expression, where to find it in the app, what must accompany it (an IP address needs an exact timestamp with time zone and usually the source port), and whether it identifies one account or may match many (display names).
data_categoriesThe heart of the file: one entry per kind of record.
The heart of the file. One entry per kind of record:
name,group(subscriber, transactional, content, location, device, financial, connection logs, communications metadata, safety reports), a description and thefieldsa production contains;- which
servicesit applies to and which identifiers it can besearchable_by; - whether it's always
collectedor only if the user provides it or uses a feature, and whether it'sverified; retention(below);obtainable_with: every kind of process that gets it, itsauthority, thejurisdictionswhere that holds, anyconditions, and what partial data a lesser processreturns;- whether it can be collected going forward under a court order (
available_prospectively), production formats, typical response time andlimitations(e.g. location derived from IP).
Retention
kind says what the number means:
| kind | meaning | needs period |
|---|---|---|
fixed | deleted when the period ends | yes |
up_to | may be gone sooner | yes |
at_least | may be kept longer | yes |
approximately | roughly this long | yes |
while_account_active | kept until the account closes (then see after_account_closure) | no |
until_user_deletes | kept until the user deletes it (then see after_user_deletes) | no |
user_configurable | the user chooses; explain in user_controls | no |
varies | explain in statement | no (needs statement) |
not_retained | not kept after it's used | no |
unknown | the company can't say | no |
starts_from says when the clock starts (creation, the event, last activity, account closure, user deletion). after_user_deletes and after_account_closure say what happens next, including how long deleted data remains recoverable. statement carries the company's exact words for anything the fields can't. effective_from dates the rule, and previous keeps the rules before it, so a reader can tell which rule covers records from a given month.
preservationHow preservation requests work.
Whether preservation requests are accepted, the authority, where to send them, how long the first preservation lasts, whether and how it can be extended and how many times, what exactly gets captured (a snapshot at processing time, not later data), whether a confirmation with a reference number comes back, and whether the user is told.
emergency_requestsEmergency disclosure: criteria, contacts and timing.
Whether emergency disclosure is offered, the company's own criteria, how to reach the team and when (around the clock or not), the form if there is one, what the request must include, whether formal process is expected afterward, and how fast the team usually answers.
user_notificationWhen and how users are told about requests.
Whether users are told about requests (notifies_by_default, does_not_notify, case_by_case), how far ahead of disclosure, whether nondisclosure orders are honored and on what authority, whether a delay is honored without an order and for how long, whether users are told once an order expires, and the exceptions.
international_requestsDirect foreign requests, and what still needs an MLAT.
Countries whose direct requests are accepted, what still needs a mutual legal assistance request, executive agreements honored, and who to contact.
productionsHow records arrive, with certification and testimony.
How records arrive (portal download, encrypted email, physical media), file formats, encryption, the time zone and format of timestamps, a link explaining every column, the hash used, records custodian certification (included by default or on request, and its authority) and testimony (available, remotely, how much notice).
costsFees, waivers and billing.
Whether fees are charged, the authority, who they're waived for, the fee schedule and billing contact.
things_we_cannot_provideWhat the company can never provide, and why.
Common requests the company can never fulfil and why (not_collected, end_to_end_encrypted, deleted, held_by_another_company, …), and who to ask instead. This saves more investigator time than any other section.
linksThe company's guides, policies and forms.
The human-readable law enforcement guide, privacy policy, retention policy, transparency report, terms, emergency form and security.txt. Other links may be added under any name.
Extending
Any object may carry extra fields whose names start with x-, e.g. "x-example-internal-team": "Trust & Safety". Readers ignore what they don't understand. Anything else unknown is invalid, so typos are caught.
Versions
spec_version is "1.0". Additions that don't break existing files raise the minor number (1.1); anything that would make a valid file invalid raises the major number and gets a new schema URL. A file names the version it follows; readers that understand a later minor version can read it.
For Tools That Read These Files
- Show every value as the company's statement, with
last_reviewed, and link tocanonical_url. - If
expireshas passed, say the file is unconfirmed and point to the company's guide. - Never fill a missing value from general knowledge or another company's file. "Not stated" is the honest answer.
- When a retention rule has
previousentries, apply the rule that was in force when the records were created. - Fetch the file from the company's own domain and follow no more than one redirect, on the same site. If
canonical_urlnames another address, say so and treat the copy there as the authoritative one. - Show the links in a file as text, or check they are
https://before making them clickable. Never run or embed anything a file points to. - Don't replace a file you have accepted with something that isn't one of these files, and look again when its contacts or portals change: that is where a request would be misdirected.
- Keep the copy you showed (with its date) if you record what you relied on.
Adopting It: A Checklist
- List every service, including discontinued ones whose records still exist.
- Write one
data_categoriesentry per kind of record you'd produce, with its retention and the least process that gets it. - List every contact and portal once; refer to them by id.
- Fill in preservation, emergency requests, user notice and productions.
- Add the things you can never provide.
- Run
python3 validate.py legal-process.json. - Publish at
/.well-known/legal-process.jsonwith CORS open, and link it from your human-readable guide. - Put a review on the calendar before
expires, and add a changelog entry every time anything changes.
Submit Your File
Published your file, or want to send it privately? Use the form on the Legal Process Format page. We check it, a person reviews it, and investigators using Olympian Tools see it.
About the Format
The Legal Process Disclosure Format, its schema, its validator and this specification were designed and written by Olympian Tools, which maintains them. New versions are published here, on olympiantools.com, and only here.
Any company may publish a file in this format, and any tool may read one, free of charge. Suggestions for the next version are welcome at support@olympiantools.com.
© 2026 Olympian Tools. This specification, the schema and the example file are licensed under Creative Commons Attribution 4.0 (CC BY 4.0): you may copy, adapt and share them, including commercially, as long as you credit Olympian Tools and link to this page. A suggested credit: "Legal Process Disclosure Format (LPDF) by Olympian Tools, https://olympiantools.com/legal-process/, CC BY 4.0."
The validator, validate.py, is software, so it has a software licence instead: the MIT License. Use, change and share it freely; keep the copyright notice at the top of the file.
Not Legal Advice
This format describes how a company says it handles legal process. It doesn't define what any law requires, and nothing in a file replaces the company's actual response to a request or an agency's own legal review.