List the active legal documents and my acceptance status
curl --request GET \
--url http://localhost:3051/api/v1/me/terms \
--header 'Authorization: Bearer <token>'import requests
url = "http://localhost:3051/api/v1/me/terms"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('http://localhost:3051/api/v1/me/terms', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "3051",
CURLOPT_URL => "http://localhost:3051/api/v1/me/terms",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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 := "http://localhost:3051/api/v1/me/terms"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://localhost:3051/api/v1/me/terms")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:3051/api/v1/me/terms")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"needs_acceptance": true,
"documents": [
{
"document_id": "<string>",
"document_key": "<string>",
"version": 123,
"title": "<string>",
"file_name": "<string>",
"file_size_bytes": 123,
"content_hash": "<string>",
"accepted": true,
"published_at": "2023-11-07T05:31:56Z"
}
]
}Account
List legal documents
Returns every currently published legal document: the terms, the privacy policy, and any other document currently in force. It also reports whether the authenticated user still needs to accept them. needs_acceptance is true only when a document the user has never agreed to in any version is in force; a new version of a document they already accepted is announced by email and does not set the flag. Each entry carries a version-exact accepted flag, so needs_acceptance: false alongside accepted: false marks an update the user has been notified of but has not re-signed. Download each PDF from GET /me/terms/documents/{document_id}/file. Session auth only.
GET
/
api
/
v1
/
me
/
terms
List the active legal documents and my acceptance status
curl --request GET \
--url http://localhost:3051/api/v1/me/terms \
--header 'Authorization: Bearer <token>'import requests
url = "http://localhost:3051/api/v1/me/terms"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('http://localhost:3051/api/v1/me/terms', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "3051",
CURLOPT_URL => "http://localhost:3051/api/v1/me/terms",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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 := "http://localhost:3051/api/v1/me/terms"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://localhost:3051/api/v1/me/terms")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:3051/api/v1/me/terms")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"needs_acceptance": true,
"documents": [
{
"document_id": "<string>",
"document_key": "<string>",
"version": 123,
"title": "<string>",
"file_name": "<string>",
"file_size_bytes": 123,
"content_hash": "<string>",
"accepted": true,
"published_at": "2023-11-07T05:31:56Z"
}
]
}Returns every currently published legal document: the terms, the privacy policy, and any other document the operator requires. It also reports whether the authenticated user still needs to accept them.
needs_acceptance is true only when a document the user has never agreed to in any version is in force. When the operator publishes a new version of a document the user already accepted, they are notified by email and needs_acceptance stays false. The API does not ask them to sign again.
Each entry carries a version-exact accepted flag. An entry with accepted: false while needs_acceptance is false is an updated document the user has been notified about but has not re-signed. To record that signature, submit every document_id in the list to Accept legal documents. The API rejects a partial set, and documents already on file keep their original acceptance date. Download a document’s PDF from Download a legal document.
Session auth only. This endpoint is not usable with an API key.