List documents
GET
/api/v1/legal
const url = 'https://example.com/api/v1/legal';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/api/v1/legalPublic: the register screen reads it before anyone signs in.
Responses
Section titled “Responses”Successful Response
Media typeapplication/json
LegalDocumentListResponse
object
items
required
Items
Array<object>
LegalDocumentSummaryThe latest published version of a document, without its text.
object
kind
required
LegalDocumentKind
The legal documents a deployment’s operator publishes for its users (Platform), accepted together at signup.
string
languages
required
Languages
Array<string>
published_at
required
Published At
string format: date-time
version
required
Version
integer
Example
{ "items": [ { "kind": "terms" } ]}