Herald
OpenapiLegal

Get the staged draft for an agreement type.

Admin — requires first-party Bearer + `settings.manage` (realm pinned by the session token). Returns 404 when no draft exists for the type (the admin form treats this as "start a new draft").

GET
/api/legal/admin/agreements/{agreementType}/draft

Admin — requires first-party Bearer + settings.manage (realm pinned by the session token). Returns 404 when no draft exists for the type (the admin form treats this as "start a new draft").

Path Parameters

agreementType*string

Agreement type: terms_of_service | privacy_policy

Response Body

Staged draft with localized body

application/json
  1. response

GET/PUT draft response: the staged draft's stable fields plus the localized content body. Mirrors the locale map shape of a published version so the admin form can render/edit it the same way.

agreement_type*AgreementType

Type of legal agreement. Serialized as snake_case (terms_of_service, privacy_policy) to align with the DB column values and path params.

Value in"terms_of_service""privacy_policy"
content*unknown
external_url?string|null
mode*AgreementMode
Value in"full_text""link"
pending_version_no*integer
Formatint32
updated_at*string
Formatdate-time
version_label?string|null
Example Request
curl -X GET 'https://example.com/api/legal/admin/agreements/string/draft'
Example Response
{
  "agreement_type": "terms_of_service",
  "content": null,
  "external_url": "string",
  "mode": "full_text",
  "pending_version_no": 0,
  "updated_at": "2019-08-24T14:15:22Z",
  "version_label": "string"
}