Herald
OpenapiLegal

Get the full localized detail of a single agreement type for a realm.

Public — no Bearer identity. Unknown `agreementType` → 400; no effective version deployed → 404.

GET
/api/legal/public/{realmId}/agreements/{agreementType}

Public — no Bearer identity. Unknown agreementType → 400; no effective version deployed → 404.

Path Parameters

realmId*string

Realm ID

agreementType*string

Agreement type: terms_of_service | privacy_policy

Query Parameters

locale?string

Preferred locale (falls back to default locale)

Response Body

Agreement detail with localized body

application/json
  1. response

Full agreement detail (public GET /agreements/{type}).

Mirrors [LegalAgreementSummary] plus the localized content body and the optional version_label. Summary fields (title/summary) are always None today — the domain LegalAgreementVersion has no such columns — but they remain in the schema so the public list/detail shapes line up (and can be populated later without a breaking change).

agreement_type*string
content*unknown
effective_at*string
Formatdate-time
external_url?string|null
mode*AgreementMode
Value in"full_text""link"
summary?string|null
title?string|null
version_id*string
Formatuuid
version_label?string|null
version_no*integer
Formatint32
Example Request
curl -X GET 'https://example.com/api/legal/public/string/agreements/string'
Example Response
{
  "agreement_type": "string",
  "content": null,
  "effective_at": "2019-08-24T14:15:22Z",
  "external_url": "string",
  "mode": "full_text",
  "summary": "string",
  "title": "string",
  "version_id": "9e94c502-ca41-4342-a7f7-af96b444512c",
  "version_label": "string",
  "version_no": 0
}