MetriBeacon
Menu

GET Read published contact, privacy and terms information

/api/v1/public/legal

Draft text is never exposed. Email addresses remain encoded. All responses are no-store; document versions are content-derived SHA-256 values. Version-specific public HTML is noindex.

On this page

Access and permissions

Draft text is never exposed. Email addresses remain encoded. All responses are no-store; document versions are content-derived SHA-256 values. Version-specific public HTML is noindex.

No account sign-in is required. Any listed browser-origin checks and rate limits still apply.

Parameters and headers

No path, query or additional request-header parameters.

Request body

No request body.

Responses

HeaderType and limitsMeaning
Cache-Controlstring; {"pattern":"(?:^|,\\s*)no-store(?:,|$)"}Private API responses prohibit storage. Public OAuth metadata is cached for 300 seconds; live streams additionally prohibit transformation.
Content-Languagestring; {"enum":["en","de"]}Language of human-readable response text, resolved from Accept-Language or the documented browser preference. Technical codes and identifiers remain stable.
Referrer-PolicyJSON; {"enum":["strict-origin-when-cross-origin","no-referrer"]}The default referrer policy is strict-origin-when-cross-origin. Provider-login responses use no-referrer to protect login parameters.
VarystringResponses vary by Accept-Language; browser-rendered responses can also vary by the preference cookie.
X-Content-Type-OptionsJSON; {"const":"nosniff"}The browser must use the declared content type.
X-Frame-OptionsJSON; {"const":"DENY"}The response must not be embedded in a frame.
X-Request-IDstringServer-generated request identifier. Include this when reporting an error; inbound values are not trusted.

application/json

FieldType and limitsRequiredMeaning
$object | objectYes—
$ (anyOf 1)objectNo—
$ (anyOf 1).publishedbooleanYes—
$ (anyOf 1).registration_enabledbooleanYes—
$ (anyOf 1).machine_registration_enabledbooleanYes—
$ (anyOf 2)objectNo—
$ (anyOf 2).contact_emailobjectYes—
$ (anyOf 2).contact_email.codesarray<integer>Yes—
$ (anyOf 2).contact_email.codes[]integerYes—
$ (anyOf 2).contact_email.markerstringYes—
$ (anyOf 2).contact_email.offsetintegerYes—
$ (anyOf 2).contact_textstringYes—
$ (anyOf 2).legal_acceptance_requiredbooleanYes—
$ (anyOf 2).privacy_textstringYes—
$ (anyOf 2).privacy_versionstringYesSHA-256 version returned for the currently published privacy text.
$ (anyOf 2).publishedbooleanYes—
$ (anyOf 2).registration_enabledbooleanYes—
$ (anyOf 2).terms_textstringYes—
$ (anyOf 2).terms_versionstringYesSHA-256 version returned for the currently published terms. Retrieve the current text before accepting.
$ (anyOf 2).machine_registration_enabledbooleanYes—
json
{
  "published": false,
  "registration_enabled": false,
  "machine_registration_enabled": false
}

Retries and asynchronous work

This operation reads or validates without applying a resource mutation. Respect rate limits and credential lifetime.

Request examples

Replace demo IDs, timestamps and placeholders with your own values. For a retry, keep the same IDs, time and content. These examples do not run requests on this page.

Keep login links, codes, cookies and keys private. Do not print them in logs or share them in support requests.

shell
curl --silent --show-error --output /dev/null --write-out "%{http_code}\n" \
  --request GET \
  "https://metribeacon.com/api/v1/public/legal"
python
import json
from pathlib import Path
from urllib.request import Request, HTTPRedirectHandler, build_opener
from urllib.error import HTTPError

headers = {}
request = Request("https://metribeacon.com/api/v1/public/legal", data=None, headers=headers, method="GET")
class NoRedirect(HTTPRedirectHandler):
    def redirect_request(self, request, fp, code, message, headers, target):
        return None

opener = build_opener(NoRedirect())
try:
    with opener.open(request, timeout=10) as response:
        print(response.status)
except HTTPError as error:
    print(error.code)
    error.close()
javascript
import { readFile } from "node:fs/promises";
import { homedir } from "node:os";
import { join } from "node:path";

const headers = {};
const response = await fetch("https://metribeacon.com/api/v1/public/legal", {
  method: "GET", headers, redirect: "manual",
  signal: AbortSignal.timeout(10000),
});
console.log(response.status);
await response.body?.cancel();
go
package main

import (
  "fmt"
  "net/http"
  "time"
)

func main() {
  request, err := http.NewRequest("GET", "https://metribeacon.com/api/v1/public/legal", nil)
  if err != nil { panic("request failed; credentials and response omitted") }
  client := &http.Client{Timeout: 10*time.Second, CheckRedirect: func(*http.Request, []*http.Request) error { return http.ErrUseLastResponse }}
  response, err := client.Do(request)
  if err != nil { panic("request failed; credentials and response omitted") }
  defer response.Body.Close()
  fmt.Println(response.StatusCode)
}