# Create webhook
Requires Paid plan

# HTTP method: POST

https://api.sender.net/v2/account/webhooks

Creates a new webhook with specified URL and topic.

url string required

Webhook endpoint URL.

topic string required

Available topics to create webhook:

  • campaigns/new
  • groups/new-subscriber
  • groups/new
  • groups/unsubscribed
  • subscribers/unsubscribed
  • subscribers/new
  • subscribers/updated
  • bounces/new

relation_id string

Relation ID is required only if topic is groups/new-subscriber or groups/unsubscribed. Please provide the group which want to be tracked.

Code snippets

Response example

{
  "id": "QbY0Wa",
  "account_id": "Eqqve",
  "url": "https://webhook.site/da83f596-5bc3-48d3-8bab-f8203a5847af",
  "topic": "groups/new-subscriber",
  "group": "eZVD4w",
  "total_deliveries": 0,
  "total_failures": 0,
  "response_time": 0,
  "status": "ACTIVE"
}