This article describes technical specifications supported by webhooks and guides you through the process of setting up a webhook in Backstage.
Webhooks allow you to build integrations that react to certain actions users take in their SpotMe apps. When such an action occurs, we'll send a HTTP POST request to the URL you have configured.
Webhooks in Backstage can be setup only by organization's administrators and apply to
all workspaces of the organization. Administrator setting up the webhook does not have to be a member of these workspaces.
When creating a webhook in Backstage you will be asked to select on which user actions should your webhook URL get called.
Available actions are:
|erasure||Triggered when a user requests their data to be deleted.|
|export||Triggered when a user requests an export of their data.|
|unsubscribe||Triggered when a user unsubscribes from SpotMe emails in a workspace.|
Each action triggers a HTTP POST request to your configured endpoint. You can find below the standard headers that are sent with the request as well as JSON-encoded body of the request.
|SpotMe-Signature||Secret configured in Backstage|
POST /api/v1/privacy HTTP/1.1
Creating a new webhook
- Click Organizations tab on your Backstage dashboard
- Click on the name of your organization in the organization list
- Click on Webhooks tab
Only administrators can configure webhooks
- Click on Add a webhook button
- Fill out the webhook details
- Label: will be displayed in Backstage to identify different webhooks
- Endpoint URL: this is the HTTP endpoint that will be called
- Secret: an optional string that will be sent to the HTTP endpoint to verify authenticity of the request
- Actions to trigger: select one or multiple triggers
- Active: disable the webhook if it's not ready yet
- Click Save