Subscribe and Activate a Webhook
A 3-step recipe with Affinda. We can help you get access.
Recipe · 3 steps
Subscribe and Activate a Webhook
with Affinda · Webhook & Event Subscription Management
Create a resthook subscription then activate it with its secret.
- Create the resthook subscription for the target URL and event. Affinda will POST an X-Hook-Secret to the target which is then used to activate.
- Activate the subscription by replaying the X-Hook-Secret that was delivered to the target URL.
- Read the subscription back to confirm it exists and is active.
What you'll need to have ready
- targetUrl: The URL Affinda should POST event payloads to.
- event: The event to subscribe to.
- organization: Optional organization identifier to scope the subscription to.
- hookSecret: The X-Hook-Secret value delivered to the target URL when the subscription is created.
For your developer
Arazzo workflow affinda:webhook-subscribe-and-activate, 3 operations: createResthookSubscription → activateResthookSubscription → getResthookSubscription. Specs on APIs.io.