Setting up webhooks in Firmhouse
Creating a webhook in Firmhouse is a simple three-step process:- Get the webhook URL from the application you want the data sent to
- Use that URL in the webhook section in Firmhouse
- Set up what events you want your webhook to listen to and notify you about when it occurs
Create a webhook in Firmhouse
Steps
- Navigate to Apps in the sidebar
- Find the Webhooks app and click Configure
- Click New outgoing webhook on the top-right
- Enter a Name for the webhook, such as “Activated subscription”
- In the Endpoint url field, enter the URL you want to receive the webhook. This is where the data will be sent once the webhook is triggered. The URL will receive an HTTP POST request when the selected event happens.
- If you intend to use Basic authentication to secure your webhook, provide the Username and Password of the HTTP Basic auth, otherwise leave Authentication type on None
- From the Event dropdown, select the event you want to be notified about (e.g., Subscription activated)
- In the Template field, configure your payload using JSON format and Liquid tags. For example:
Learn more about Liquid tags in Firmhouse in the developer documentation.
- Click Save to save the outgoing webhook
Enable or disable a webhook
You can enable or disable your outgoing webhook temporarily without having to delete the webhook itself or its content.Steps
- Navigate to Apps in the sidebar
- Find the Webhooks app and click Configure to open a list of already saved outgoing webhooks
- Click on the particular webhook you want to enable/disable and click Edit
- To enable or disable the webhook, check or uncheck the Enable checkbox, respectively
- Click Save to save the outgoing webhook
Editing a webhook
Firmhouse allows you to edit the configuration of your webhooks.Steps
- Navigate to Apps in the sidebar
- Find the Webhooks app and click Configure to display a list of already saved outgoing webhooks
- Click on the webhook that you want to edit and click on the Edit button
- Make the necessary changes to the configuration fields of the webhook
- Click Save to save the changes
Deleting a webhook
Firmhouse allows you to delete webhooks you no longer need.Steps
- Navigate to Apps in the sidebar
- Find the Webhooks app and click Configure to display a list of already saved outgoing webhooks
- Click on the Remove button on the far right of the webhook that you want to delete
- You will get a prompt “Are you sure you want to remove this outgoing webhook?”, click Ok to confirm the delete action