cURL
curl --request PUT \ --url https://api.deliverykey.com/v1/webhooks/{id} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "domain": "mail.contoso.com", "active": true, "track_opens": false, "track_clicks": false, "created_at": "2022-10-12T18:57:23.000000Z" } '
{ "data": { "endpoint": "http(s) endpoint to receive the events", "id": "b5b118bc-7e81-4c29-9f10-98387b94b5ce", "enabled": true, "events": [ "email.clicked", "email.delivered", "email.opened" ], "created_at": "2022-10-12T18:57:23.000000Z" } }
Update an existing Webhook
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
"mail.contoso.com"
The date the subscriber was created
"2022-10-12T18:57:23.000000Z"
OK
Show child attributes
"http(s) endpoint to receive the events"
UUID of the domain in the system
"b5b118bc-7e81-4c29-9f10-98387b94b5ce"
True if the webhook is enabled
array of events to subscribe to
[ "email.clicked", "email.delivered", "email.opened"]