API Reference
Getting Started
Contact
Campaign
Reports
Event
Webhook
Webhook
Create TeamWebhook
Create a new team webhook.
POST
/
webhook
Create TeamWebhook
Copy
Ask AI
curl --request POST \
--url https://api.sendx.io/api/v1/rest/webhook \
--header 'Content-Type: application/json' \
--header 'X-Team-ApiKey: <api-key>' \
--data '{
"enabled": true,
"url": "https://example.com/webhook",
"unsubscribed": false,
"dropped": false,
"bounced": false,
"markedSpam": false,
"clicked": false,
"opened": false
}'
Copy
Ask AI
{
"id": "webhook_123",
"enabled": true,
"url": "https://example.com/webhook",
"unsubscribed": true,
"dropped": true,
"bounced": true,
"markedSpam": true,
"clicked": true,
"opened": true,
"created": 1669990400
}
Authorizations
Body
application/json
The webhook details to be created.
The body is of type object
.
Response
200
application/json
The newly created team webhook.
The response is of type object
.
Was this page helpful?
Create TeamWebhook
Copy
Ask AI
curl --request POST \
--url https://api.sendx.io/api/v1/rest/webhook \
--header 'Content-Type: application/json' \
--header 'X-Team-ApiKey: <api-key>' \
--data '{
"enabled": true,
"url": "https://example.com/webhook",
"unsubscribed": false,
"dropped": false,
"bounced": false,
"markedSpam": false,
"clicked": false,
"opened": false
}'
Copy
Ask AI
{
"id": "webhook_123",
"enabled": true,
"url": "https://example.com/webhook",
"unsubscribed": true,
"dropped": true,
"bounced": true,
"markedSpam": true,
"clicked": true,
"opened": true,
"created": 1669990400
}
Assistant
Responses are generated using AI and may contain mistakes.