Get template
GET/api/v1/templates/{key}
The template's published version, where it came from in Qrona's template library and its locked blocks – for Lotsen's Templates view.
Reads only. The design is changed in Qrona Newsletter.
Scope
templates:renderPreview messages – the person behind the key must be all members.
Path parameters
keystringrequired- The template's key, the same as its data contract's.
Response
200 The template.
idstringrequired- The template's id in Qrona Newsletter (the page /templates/{id}).
keystringrequirednamestringrequiredpublished_versioninteger | nullrequired- The version a message is made from now. null: not published.
updated_atstringrequireddraft_changedbooleanrequired- The draft differs from the published version: changes that do not go out yet.
originobject | nullrequired- Where the template came from. null: the firm's own template.
origin.library_versionintegerrequired- The version in Qrona's template library the copy came from, or last took.
origin.pending_versioninteger | nullrequired- A newer version from Qrona waiting for review.
origin.kept_versioninteger | nullrequired- A newer version from Qrona that the firm declined (“Keep mine”).
origin.untouchedbooleanrequired- The firm has not changed the copy: it follows Qrona's versions on its own.
lockedarray<object>required- Qrona's locked blocks in the published version: the firm changes the look, never the text or the links.
locked[].typestringrequiredlocked[].textstringrequired- The block's text without formatting, with the template's fields kept ({{data.klient.namn}}).
locked[].whenstring | nullrequired- The field the block is shown with only (“Show only if”).
fieldsintegerrequired- The number of fields in the template's data contract.
Errors
- 404
- not_found
- 429
- rate_limited