Endpoints
| Method | Path | Description |
|---|---|---|
| GET | /v1/comms/templates | List communication templates for the workspace with optional filters. |
| POST | /v1/comms/templates | Create a template (name, key, channel, purpose, status). |
| GET | /v1/comms/templates/:id | Retrieve template metadata by ID. |
| PATCH | /v1/comms/templates/:id | Update template name or status. |
| DELETE | /v1/comms/templates/:id | Delete a template (requires comms:delete). |
Workspace-scoped API keys are required. Read routes need
comms:read; create/update routes require comms:write; deletion requires comms:delete.Key concepts
- Templates are metadata records (name, key, channel, purpose, status) used by downstream email/SMS delivery services. Versioned content (subject/body, WYSIWYG JSON) is handled separately.
channelidentifies the delivery medium (email,sms,whatsapp,push_notification, etc.).purposedifferentiates transactional vs marketing messages; defaults totransactionalon create.statuscontrols availability (draft,active,inactive,archived).- Webhooks fire on create/update/delete events (
notification.template.*) so integrators can sync changes.