sendSubscriptionNotification when your integration needs to send a message for a specific purpose that is not covered by one of your configured Firmhouse email templates.
For example, you can send delivery instructions after a particular product is ordered, explain the next step after a manual review, or notify one customer about an exception that applies to their subscription. Supply the subject and Liquid template with each request.
Firmhouse delivers the message through the customer communication channel configured for the project:
- Email: the subject becomes the email subject and the Liquid template is rendered inside the standard Firmhouse email layout.
- Klaviyo: the subject becomes the event name and the Liquid template must render as a JSON event payload.
- Disabled: Firmhouse records the notification without delivering an email or Klaviyo event.
Requirements
- A Firmhouse API access token with write access.
- The Firmhouse subscription ID for a subscription in the same project as the access token.
- The project’s customer communication channel configured for email or Klaviyo.
Send a message
CallsendSubscriptionNotification with the subscription ID, subject, and Liquid template:
errors; when it is empty, the notification has been queued for delivery.