curl --request GET \
--url https://api.platform.dakota.xyz/legal/documents/{document_key}const options = {method: 'GET'};
fetch('https://api.platform.dakota.xyz/legal/documents/{document_key}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.platform.dakota.xyz/legal/documents/{document_key}"
response = requests.get(url)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.platform.dakota.xyz/legal/documents/{document_key}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"key": "dakota_tos",
"version": "2026-08-04",
"revision": 5,
"title": "Dakota Terms of Service",
"content": "# Dakota Terms of Service\n\nLast updated 2026-08-04...",
"content_type": "text/markdown",
"content_url": "https://dakota.xyz/terms",
"effective_date": "2026-08-04"
}{
"type": "https://docs.dakota.xyz/api-reference/errors#not-found",
"title": "Legal Document Not Found",
"status": 404,
"detail": "No published revision of dakota_tos was found."
}{
"type": "https://docs.dakota.xyz/api-reference/errors#internal-error",
"title": "Internal error",
"status": 500,
"detail": "An unexpected error occurred."
}Get a legal document
Returns the revision of one document that is currently in force, or a
specific revision when version is supplied.
Pass the version you displayed back as legal_document_version when
submitting an attestation, so the acceptance record names the exact text
the customer saw rather than whichever revision happened to be current
when the request arrived.
curl --request GET \
--url https://api.platform.dakota.xyz/legal/documents/{document_key}const options = {method: 'GET'};
fetch('https://api.platform.dakota.xyz/legal/documents/{document_key}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.platform.dakota.xyz/legal/documents/{document_key}"
response = requests.get(url)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.platform.dakota.xyz/legal/documents/{document_key}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"key": "dakota_tos",
"version": "2026-08-04",
"revision": 5,
"title": "Dakota Terms of Service",
"content": "# Dakota Terms of Service\n\nLast updated 2026-08-04...",
"content_type": "text/markdown",
"content_url": "https://dakota.xyz/terms",
"effective_date": "2026-08-04"
}{
"type": "https://docs.dakota.xyz/api-reference/errors#not-found",
"title": "Legal Document Not Found",
"status": 404,
"detail": "No published revision of dakota_tos was found."
}{
"type": "https://docs.dakota.xyz/api-reference/errors#internal-error",
"title": "Internal error",
"status": 500,
"detail": "An unexpected error occurred."
}Path Parameters
Document identifier, e.g. dakota_tos.
Query Parameters
A specific published revision. Omit for the revision in force now.
Response
The requested revision.
One published revision of a legal document.
A revision is IMMUTABLE: version identifies an exact text, and that
text never changes once published. Correcting a document produces a new
revision rather than editing an existing one, so an acceptance recorded
against a version always refers to the same words.
Stable identifier for the document across all its revisions.
"dakota_tos"
The published revision identifier, taken from the document itself. Treat it as opaque — do not parse or compare it for ordering.
"2026-07-23"
Monotonic ordinal within key. Unlike version, this is ordered:
a higher number is a later revision.
4
Media type of content.
"text/markdown"
"Dakota Terms of Service"
The document text, in content_type format. Render this to your
customer before capturing acceptance.
Present when a single document is fetched by key. OMITTED from the
GET /legal/documents index, which carries identity and revision
only — fetch the document you intend to display.
"This Platform Services Agreement (the \"Agreement\")…"
Where the document is published for humans to read.
"https://dakota.xyz/terms"
The date printed inside the document — what the customer reads as "Last Updated". Show this alongside the text.
Absent for imported historical revisions whose stated date could not be established.
"2026-07-23"
Was this page helpful?

