Define Event Type and Subscribe
A 3-step recipe with Convoy. We can help you get access.
Recipe · 3 steps
Define Event Type and Subscribe
with Convoy · Webhook & Event Subscription Management
Create an event type, an endpoint, and a subscription filtered to that type.
- Define a new event type for the project so subscriptions can filter on it.
- Register the destination endpoint that will receive events of the new type.
- Create a subscription whose filter configuration routes only events of the new type to the endpoint.
What you'll need to have ready
- apiKey: Convoy API key used as the Bearer token on the Authorization header.
- projectID: The Convoy project identifier.
- eventTypeName: The event type name to define (e.g. invoice.created).
- endpointName: Human-readable name for the new webhook endpoint.
- endpointUrl: HTTPS URL Convoy will deliver webhooks to.
- subscriptionName: Name for the subscription filtered to the new event type.
For your developer
Arazzo workflow convoy:define-event-type-and-subscribe, 3 operations: CreateEventType → CreateEndpoint → CreateSubscription. Specs on APIs.io.