Skip to content

List the current versions of Legion's legal documents

No key needed

Unauthenticated. The Terms of Use, the Acceptable Use Policy, the Privacy Policy and Data Handling, each with its current version, effective date, title and public page. acceptance says whether a person agrees to the document (agree: terms and acceptable_use) or acknowledges having read it (acknowledge: privacy and data_handling); both happen in the one acceptLegalDocuments call. A new version of an agree document must be accepted again before the API can be used (403 terms_not_accepted).

Anonymous: no key is needed or read.

GETEndpointhttps://api.legion.ambient.xyz/v1/legal/documents
curl
curl -s "https://api.legion.ambient.xyz/v1/legal/documents"
Response 200
{
  "items": [
    {
      "key": "terms",
      "version": "1.0",
      "effective": "2026-10-15",
      "title": "Terms of Use",
      "url": "https://legion.ambient.xyz/terms",
      "acceptance": "agree"
    }
  ]
}

Example values.

Responses

  • 200The current documents, in the order they are shown.

    The current documents, in the order they are shown.

    • itemsarray of LegalDocumentRequired

      Child fields · 6
      • keyLegalDocumentKeyRequired

        A legal document: terms (Terms of Use), acceptable_use (Acceptable Use Policy), privacy (Privacy Policy), data_handling (Data Handling).

        one of: "terms", "acceptable_use", "privacy", "data_handling"

      • versionstringRequired

        The current version. A new version of an agree document must be accepted again.

      • effectivestring (date)Required

        The date the current version took effect.

      • titlestringRequired

      • urlstring (uri)Required

        The document's public page.

      • acceptancestringRequired

        agree: the person agrees to it, and the API is refused until the current version is accepted. acknowledge: the person confirms having read it, in the same step.

        one of: "agree", "acknowledge"

  • 500An unexpected server error. Safe to retry.

    An unexpected server error. Safe to retry.

    • typestringRequired

      URI reference identifying the problem type.

    • titlestringRequired

    • statusintegerRequired

    • codestringRequired

      Stable machine-readable error code.

    • detailstring

    • instancestring

      The request path that produced the problem.