curl --request POST \
--url https://{notifuseDomain}/api/webhookSubscriptions.toggle \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"workspace_id": "ws_1234567890",
"id": "whsub_a1b2c3d4e5f6",
"enabled": true
}
'{
"subscription": {
"id": "whsub_a1b2c3d4e5f6",
"name": "Production Webhook",
"url": "https://api.example.com/webhooks/notifuse",
"secret": "whsec_a1b2c3d4e5f6g7h8i9j0",
"settings": {
"event_types": [
"contact.created",
"contact.updated",
"email.sent"
],
"custom_event_filters": {
"goal_types": [
"purchase",
"subscription"
],
"event_names": [
"orders/fulfilled",
"payment.succeeded"
]
}
},
"event_types": [
"contact.created",
"contact.updated",
"email.sent"
],
"custom_event_filters": {
"goal_types": [
"purchase",
"subscription"
],
"event_names": [
"orders/fulfilled",
"payment.succeeded"
]
},
"enabled": true,
"last_delivery_at": "2024-01-15T10:30:00Z",
"created_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-15T10:30:00Z"
}
}Enables or disables a webhook subscription. Disabled subscriptions will not receive events.
curl --request POST \
--url https://{notifuseDomain}/api/webhookSubscriptions.toggle \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"workspace_id": "ws_1234567890",
"id": "whsub_a1b2c3d4e5f6",
"enabled": true
}
'{
"subscription": {
"id": "whsub_a1b2c3d4e5f6",
"name": "Production Webhook",
"url": "https://api.example.com/webhooks/notifuse",
"secret": "whsec_a1b2c3d4e5f6g7h8i9j0",
"settings": {
"event_types": [
"contact.created",
"contact.updated",
"email.sent"
],
"custom_event_filters": {
"goal_types": [
"purchase",
"subscription"
],
"event_names": [
"orders/fulfilled",
"payment.succeeded"
]
}
},
"event_types": [
"contact.created",
"contact.updated",
"email.sent"
],
"custom_event_filters": {
"goal_types": [
"purchase",
"subscription"
],
"event_names": [
"orders/fulfilled",
"payment.succeeded"
]
},
"enabled": true,
"last_delivery_at": "2024-01-15T10:30:00Z",
"created_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-15T10:30:00Z"
}
}API token for authentication
Webhook subscription toggled successfully
A webhook subscription that receives HTTP callbacks when events occur
Show child attributes
Unique identifier for the subscription
"whsub_a1b2c3d4e5f6"
Human-readable name for the subscription
"Production Webhook"
The HTTPS URL to receive webhook events
"https://api.example.com/webhooks/notifuse"
Secret key for signing webhook payloads (Standard Webhooks spec)
"whsec_a1b2c3d4e5f6g7h8i9j0"
Settings for webhook subscription
Show child attributes
List of event types this subscription is subscribed to
[
"contact.created",
"contact.updated",
"email.sent"
]Optional filters for custom_event.* event types
Show child attributes
Filter by goal type (e.g., purchase, subscription, lead)
["purchase", "subscription"]Filter by event name (e.g., orders/fulfilled, payment.succeeded)
["orders/fulfilled", "payment.succeeded"]List of event types this subscription is subscribed to (flattened from settings for convenience)
[
"contact.created",
"contact.updated",
"email.sent"
]Optional filters for custom_event.* event types (flattened from settings for convenience)
Show child attributes
Filter by goal type (e.g., purchase, subscription, lead)
["purchase", "subscription"]Filter by event name (e.g., orders/fulfilled, payment.succeeded)
["orders/fulfilled", "payment.succeeded"]Whether the subscription is currently active
true
Timestamp of the last delivery attempt
"2024-01-15T10:30:00Z"
When the subscription was created
"2024-01-01T00:00:00Z"
When the subscription was last updated
"2024-01-15T10:30:00Z"