Skip to main content
Templates

Preview a message template

Renders template text, or a saved template, with its {Group.Field} variables filled from a real stay or a sample one. Changes nothing. Needs the key's creator to hold TemplatesView or MessageGuests. Needs a key with the sparrow.write scope.

POST
/templates/preview
Authorizationstringheaderrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
bodystring

Template text to render. Omit to render the saved template_id.

confirmation_codestring

A reservation confirmation code to fill variables from. Omit for a sample stay.

template_idstring

A saved template to render.

Response

application/json

Success

dataany
metaobject