Hanzo
OpenapiLegal

Returns one template resolved for the caller's org — the org's own override if…

Returns one template resolved for the caller's org — the org's own override if it has saved one, else the built-in — with its full text/template body and…

GET /v1/legal/templates/{id}

Addresshttps://api.hanzo.ai/v1/legal/templates/{id}
MethodGET
Operationget_legal_templates_by_id
AuthAuthorization: Bearer $HANZO_API_KEY

Returns one template resolved for the caller's org — the org's own override if it has saved one, else the built-in — with its full text/template body and its declared merge fields. 404 when neither exists.

Request

1 field.

FieldInTypeRequiredDescription
idpathstringyesID is the template's stable id, e.g.

Response

StatusBodyMeaning
200templateReplyok

200 body — 12 fields.

FieldInTypeAlwaysDescription
disclaimerbodystringDisclaimer is the boundary made visible on the wire.
templatebodylegalTemplate
template.bodybodystring
template.categorybodystring
template.counselReviewbodyboolean
template.fieldsbodyField[]
template.fields[].keybodystringKey is the identifier the body substitutes ({{.key}}) and the key a generation's data map must carry.
template.fields[].labelbodystringLabel is the human prompt for whoever fills the value in — "Governing law (state)".
template.idbodystring
template.originbodystring
template.titlebodystring
template.versionbodyinteger

Failure carries the platform error shape — see Errors.

Examples

hanzo legal templates get <id>

Legal API · All Hanzo APIs · Interactive reference

How is this guide?

On this page