POST
/
account
/
webhook
Create a New Webhook
curl --request POST \
  --url https://api.sendpost.io/api/v1/account/webhook \
  --header 'Content-Type: application/json' \
  --header 'X-Account-ApiKey: <api-key>' \
  --data '{
  "enabled": true,
  "url": "https://app.hooli.com/email/webhook",
  "processed": true,
  "delivered": true,
  "dropped": false,
  "softBounced": false,
  "hardBounced": true,
  "opened": true,
  "clicked": true,
  "unsubscribed": true,
  "spam": true
}'
{
  "id": 117,
  "enabled": true,
  "url": "https://app.hooli.com/email/webhook",
  "processed": true,
  "delivered": true,
  "dropped": false,
  "softBounced": false,
  "hardBounced": true,
  "opened": true,
  "clicked": true,
  "unsubscribed": true,
  "spam": true,
  "created": 1567512491588004000
}

Authorizations

X-Account-ApiKey
string
header
required

This api key can be used for all account level operations

Body

application/json

Response

201
application/json

Webhook created successfully.

The response is of type object.