Endpoints
| Method | Path | Description |
|---|---|---|
| GET | /v1/contract-templates | List contract templates (optionally filtered by locale or type). |
| POST | /v1/contract-templates | Create a contract template. |
| GET | /v1/contract-templates/:id | Retrieve a contract template (supports locale override). |
| PUT | /v1/contract-templates/:id | Update template metadata, JSON payload, or translations. |
| DELETE | /v1/contract-templates/:id | Delete a contract template. |
Read operations require the
contract-templates:read scope. Mutations require contract-templates:write.Key concepts
- Templates store a structured
templateJsonpayload with sections and merge variables consumed by PDF and e-sign workflows. typedistinguishes customer, supplier, and partner contract variants; omit it for all-purpose templates.- Optional
translationblocks let you attach localized metadata and HTML bodies—fetch withlocale(orlang) query parameters. - Webhook events (
contract-template.created|updated|deleted) fire on changes for downstream sync. - Template variables can be documented inside
translation.variablesto help consumer apps populate dynamic data.