POST
/
v4
/
webhooks
curl --request POST \
  --url https://api.kit.com/v4/webhooks \
  --header 'Content-Type: application/json' \
  --header 'X-Kit-Api-Key: <api-key>' \
  --data '{
  "target_url": "https://example.convertkit.dev/",
  "event": {
    "name": "subscriber.subscriber_activate",
    "form_id": null,
    "tag_id": null,
    "sequence_id": null,
    "product_id": null,
    "initiator_value": null
  }
}'
{
  "webhook": {
    "id": 433,
    "account_id": 33448,
    "event": {
      "name": "subscriber_activate",
      "initiator_value": null
    },
    "target_url": "https://example.convertkit.dev/"
  }
}

Authorizations

X-Kit-Api-Key
string
header
required

Authenticate API requests via an API Key

Body

application/json

Response

201
application/json

Creates the webhook

The response is of type object.