List legal documents
curl --request GET \
--url https://api.example.com/api/v1/admin/legalimport requests
url = "https://api.example.com/api/v1/admin/legal"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/api/v1/admin/legal', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/api/v1/admin/legal",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/api/v1/admin/legal"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/api/v1/admin/legal")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/v1/admin/legal")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodyLegal
List legal documents
Admin list of every legal document, published and draft, with bodies.
GET
/
api
/
v1
/
admin
/
legal
List legal documents
curl --request GET \
--url https://api.example.com/api/v1/admin/legalimport requests
url = "https://api.example.com/api/v1/admin/legal"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/api/v1/admin/legal', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/api/v1/admin/legal",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/api/v1/admin/legal"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/api/v1/admin/legal")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/v1/admin/legal")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodyOverview
Returns every legal document — published and draft — including the full HTML body, so the admin panel can populate its editor in one request.Authentication
Bearer admin token. Any admin role may read.Response — 200 OK
{
"items": [
{
"slug": "TERMS",
"title": "Terms & Conditions",
"bodyHtml": "<h2>1. Acceptance of Terms</h2><p>…</p>",
"version": 4,
"effectiveAt": "2026-08-03T00:00:00.000Z",
"isPublished": true,
"createdAt": "2026-08-03T09:00:00.000Z",
"updatedAt": "2026-08-03T14:22:11.000Z"
}
]
}
| Field | Type | Notes |
|---|---|---|
isPublished | boolean | Drafts are hidden from the public endpoints |
version | number | Increments only on a title/body change |