Skip to main content
PUT
/
webhooks
/
{id}
Update Webhook
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"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Body

application/json
domain
string
required
Example:

"mail.contoso.com"

active
boolean
track_opens
boolean
default:false
track_clicks
boolean
default:false
created_at
string<date-time>

The date the subscriber was created

Example:

"2022-10-12T18:57:23.000000Z"

Response

OK

data
object