Programmatically preview workflow templates
We've added a new endpoint to the Knock Management API to preview workflow templates. This is useful if you're looking to integrate Knock into your own application and need a way to preview templates with user supplied data, like when building a template customization experience.
To use the preview endpoint, you pass it a channel step on a workflow, and provide the recipient
, actor
, tenant
, and data
parameters to render the template with. The API will then return a JSON object with the rendered template across all channel types, or a detailed error response if the template could not be rendered.
You can read more about the preview endpoint in our documentation.
Fixes and improvements
- π [Dashboard] We added pagination to the source events list.
- π [Dashboard] We fixed an issue where the "Previous" button on user, object, and tenants lists would always return you to the first page.
- π [Dashboard] We fixed an issue where the count at the bottom of some table views would always only show the number of items returned on that page, not the total number of items.
- π [Dashboard] We fixed an issue where creating a workflow from a template with a category would fail.
- π [Notification engine] We fixed an issue where SMS links over 255 characters would not be shortened.
- π [API] We fixed an issue with paginating users, objects, and tenants with a
before
cursor.