Create webhook subscription
documentedCreate a subscription to receive webhook events for a product.
POST /webhooks/v1/accounts/{accountReference}/subscriptionsRich Content APIno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl "https://connect.esendex.com/webhooks/v1/accounts/{{$accountReference}}/subscriptions" \
-X POST \
-H "Authorization: {{ESENDEX_WEBHOOKS_SUBSCRIPTION_KEY}}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"productId": "richcontentapi", "eventId": "{{$eventId}}", "endpoints": [{"type": "HTTP", "uri": "{{$callback_url}}"}], "notificationEmails": ["{{$notification_email}}"]}'