Create webhook subscription
POST/v1/subscriptions
Create a new webhook subscription to receive events at a specified endpoint URL.
Use Case: Set up a webhook endpoint to receive real-time notifications when specific events occur in your system.
Subscription Types:
- Event-specific: Subscribe to specific event types by providing
eventTypeIds - All events: Subscribe to all events by setting
subscribedToAllto true
Webhook Delivery:
- Events are delivered via HTTP POST to your endpoint URL
- Each delivery includes a signature in the
X-Webhook-Signatureheader for verification - Failed deliveries are automatically retried based on your retry configuration
Best Practices:
- Use HTTPS endpoints for security
- Implement signature verification to ensure authenticity
- Return 2xx status codes quickly to acknowledge receipt
- Process webhooks asynchronously to avoid timeouts
Request
Responses
- 201
- 400
- 401
Subscription created successfully
Invalid request - validation errors or missing required fields
Invalid or missing API key