Overview
The template approval workflow lets you require external review before publishing template changes. When enabled, templates enter a read-only state after submission and can only be published after checks are resolved via API.How It Works
When a template is submitted for review, Courier emits anotification:submitted webhook. Your external system receives the event, runs its review process, and calls the Courier API to publish or reject the template.

Enable Checks for a Template
Enable checks on each template that requires an approval workflow:- Open the notification template
- Click the Settings gear
- Navigate to the Checks tab
- Enable custom checks



Webhooks
Configure a webhook in Settings > Webhooks to receive submission events. The webhook fires when a notification is submitted, canceled, or published. Courier sends all event types to the same webhook endpoint, so filter on thetype field.


Event Types
notification:submitted event, trigger your external approval workflow. When the review is complete, publish the template.
Fetching Content (Optional)
After receiving thenotification:submitted event, you can retrieve the template content for use in your review process:

Sample Response
Checksums
Each block, channel, and notification includes an MD5 checksum. Use these to track content changes across submissions and manage translation workflows.Publishing the Template
Once all checks are resolved, call the API to publish the template:FAILED or PENDING for more complex state management in your approval workflow.
Fetching Checks
GET /notifications/SFTYJKSF0241SVH2TWY97TTFFTQG/1630424150210/checks
Cancel a Submission
Cancel a submission by deleting it. This moves the template back to a draft state and sets all checks toFAILED. Once canceled, setting a check to RESOLVED will not publish that submission.
Submitted Keys
Submitted keys let you send notifications using draft content that has been submitted for review but not yet published. This is useful for testing changes before they go live.| Template State | What Submitted Key Uses |
|---|---|
| Published | Published notification content |
| Submitted for review | Latest draft content |
