Webhook Subscriptions
This section contains 1 subgroups.
List Webhook Subscriptions
/webhooks/subscriptions?page=1&limit=10&language=enGet a paginated list of webhook subscriptions for the current tenant. Requires view:tenant permission.
1curl --request GET "$ONDI_BASE_URL/webhooks/subscriptions?page=1&limit=10&language=en" \2 --header "Authorization: Bearer {{access_token}}"Query parameters
pageOptional1
Page number for pagination
limitOptional10
Number of items per page
languageOptionalen
Preferred language for response messages
Headers
AuthorizationOptionalBearer {{access_token}}
Responses
List User Webhook Subscriptions
/webhooks/users/:user_id/subscriptions?page=1&limit=10&language=enGet a paginated list of webhook subscriptions for a specific user. Requires view:tenant permission.
1curl --request GET "$ONDI_BASE_URL/webhooks/users/:user_id/subscriptions?page=1&limit=10&language=en" \2 --header "Authorization: Bearer {{access_token}}"Path parameters
user_idRequireduuid
ID of the user to list webhook subscriptions for
Query parameters
pageOptional1
Page number for pagination
limitOptional10
Number of items per page
languageOptionalen
Preferred language for response messages
Headers
AuthorizationOptionalBearer {{access_token}}
Responses
Create Webhook Subscription
/webhooks/subscriptions?language=enCreate a new webhook subscription for the current tenant. Requires manage:webhooks:tenant permission. Required Fields: - module_id: Identifier for the module generating events (e.g., 'DELIVERY') - webhook_url: HTTPS URL to receive webhook events Optional Fields: - secret_header_name: Name of header to include webhook secret in - secret_header_value: Secret value for webhook authentication - is_active: Whether the subscription is active (default: true)
1curl --request POST "$ONDI_BASE_URL/webhooks/subscriptions?language=en" \2 --header "Authorization: Bearer {{access_token}}" \3 --header "Content-Type: application/json" \4 --header "Content-Type: application/json" \5 --data '{6 "module_id": "DELIVERY",7 "webhook_url": "https://example.com/webhook",8 "secret_header_name": "X-Webhook-Secret",9 "secret_header_value": "your-secret-key-here",10 "is_active": true11}'1{2 "module_id": "DELIVERY",3 "webhook_url": "https://example.com/webhook",4 "secret_header_name": "X-Webhook-Secret",5 "secret_header_value": "your-secret-key-here",6 "is_active": true7}Query parameters
languageOptionalen
Preferred language for response messages
Request body fields
module_idExampleExample field from the request body.
webhook_urlExampleExample field from the request body.
secret_header_nameExampleExample field from the request body.
secret_header_valueExampleExample field from the request body.
is_activeExampleExample field from the request body.
Headers
AuthorizationOptionalBearer {{access_token}}
Content-TypeOptionalapplication/json
Responses
Get Webhook Subscription
/webhooks/subscriptions/:subscriptionId?language=enGet details of a specific webhook subscription by ID. Requires view:tenant permission.
1curl --request GET "$ONDI_BASE_URL/webhooks/subscriptions/:subscriptionId?language=en" \2 --header "Authorization: Bearer {{access_token}}"Path parameters
subscriptionIdRequireduuid
ID of the webhook subscription to retrieve
Query parameters
languageOptionalen
Preferred language for response messages
Headers
AuthorizationOptionalBearer {{access_token}}
Responses
Get User Webhook Subscription
/webhooks/users/:user_id/subscriptions/:subscriptionId?language=enGet details of a specific webhook subscription by ID for a specific user. Requires view:tenant permission.
1curl --request GET "$ONDI_BASE_URL/webhooks/users/:user_id/subscriptions/:subscriptionId?language=en" \2 --header "Authorization: Bearer {{access_token}}"Path parameters
user_idRequireduuid
ID of the user
subscriptionIdRequireduuid
ID of the webhook subscription to retrieve
Query parameters
languageOptionalen
Preferred language for response messages
Headers
AuthorizationOptionalBearer {{access_token}}
Responses
Update Webhook Subscription
/webhooks/subscriptions/:subscriptionId?language=enUpdate an existing webhook subscription. Requires manage:webhooks:tenant permission. Updatable Fields: - webhook_url: HTTPS URL to receive webhook events - secret_header_name: Name of header to include webhook secret in - secret_header_value: Secret value for webhook authentication - is_active: Whether the subscription is active
1curl --request PUT "$ONDI_BASE_URL/webhooks/subscriptions/:subscriptionId?language=en" \2 --header "Authorization: Bearer {{access_token}}" \3 --header "Content-Type: application/json" \4 --header "Content-Type: application/json" \5 --data '{6 "webhook_url": "https://example.com/updated-webhook",7 "secret_header_name": "X-Webhook-Secret-Updated",8 "secret_header_value": "updated-secret-key",9 "is_active": false10}'1{2 "webhook_url": "https://example.com/updated-webhook",3 "secret_header_name": "X-Webhook-Secret-Updated",4 "secret_header_value": "updated-secret-key",5 "is_active": false6}Path parameters
subscriptionIdRequireduuid
ID of the webhook subscription to update
Query parameters
languageOptionalen
Preferred language for response messages
Request body fields
webhook_urlExampleExample field from the request body.
secret_header_nameExampleExample field from the request body.
secret_header_valueExampleExample field from the request body.
is_activeExampleExample field from the request body.
Headers
AuthorizationOptionalBearer {{access_token}}
Content-TypeOptionalapplication/json
Responses
Update User Webhook Subscription
/webhooks/users/:user_id/subscriptions/:subscriptionId?language=enUpdate an existing webhook subscription for a specific user. Requires manage:webhooks:tenant permission. Updatable Fields: - webhook_url: HTTPS URL to receive webhook events - secret_header_name: Name of header to include webhook secret in - secret_header_value: Secret value for webhook authentication - is_active: Whether the subscription is active
1curl --request PUT "$ONDI_BASE_URL/webhooks/users/:user_id/subscriptions/:subscriptionId?language=en" \2 --header "Authorization: Bearer {{access_token}}" \3 --header "Content-Type: application/json" \4 --header "Content-Type: application/json" \5 --data '{6 "webhook_url": "https://example.com/updated-webhook",7 "secret_header_name": "X-Webhook-Secret-Updated",8 "secret_header_value": "updated-secret-key",9 "is_active": false10}'1{2 "webhook_url": "https://example.com/updated-webhook",3 "secret_header_name": "X-Webhook-Secret-Updated",4 "secret_header_value": "updated-secret-key",5 "is_active": false6}Path parameters
user_idRequireduuid
ID of the user
subscriptionIdRequireduuid
ID of the webhook subscription to update
Query parameters
languageOptionalen
Preferred language for response messages
Request body fields
webhook_urlExampleExample field from the request body.
secret_header_nameExampleExample field from the request body.
secret_header_valueExampleExample field from the request body.
is_activeExampleExample field from the request body.
Headers
AuthorizationOptionalBearer {{access_token}}
Content-TypeOptionalapplication/json
Responses
Delete Webhook Subscription
/webhooks/subscriptions/:subscriptionId?language=enDelete a webhook subscription by ID. Requires manage:webhooks:tenant permission.
1curl --request DELETE "$ONDI_BASE_URL/webhooks/subscriptions/:subscriptionId?language=en" \2 --header "Authorization: Bearer {{access_token}}"Path parameters
subscriptionIdRequireduuid
ID of the webhook subscription to delete
Query parameters
languageOptionalen
Preferred language for response messages
Headers
AuthorizationOptionalBearer {{access_token}}
Responses
Delete User Webhook Subscription
/webhooks/users/:user_id/subscriptions/:subscriptionId?language=enDelete a webhook subscription by ID for a specific user. Requires manage:webhooks:tenant permission.
1curl --request DELETE "$ONDI_BASE_URL/webhooks/users/:user_id/subscriptions/:subscriptionId?language=en" \2 --header "Authorization: Bearer {{access_token}}"Path parameters
user_idRequireduuid
ID of the user
subscriptionIdRequireduuid
ID of the webhook subscription to delete
Query parameters
languageOptionalen
Preferred language for response messages
Headers
AuthorizationOptionalBearer {{access_token}}