Create Webhook Subscription
This API enables user to create a webhook subscription for receiving notifications.
Request to create webhook subscription.
Show optional properties
{
"name": "router-wh",
"description": "webhook to get router events",
"url": "https://play/in/e_y1sI1Dy8IvkYQcgYQy5yoHAtR7E/",
"vsafilter": {
"filterlist": [
{
"condition": "OR",
"propfilter": [
{
"propname": "ClassName",
"matchtype": "EQ",
"values": [
"Router"
]
}
]
}
]
}
}
{
"name": "string",
"description": "string",
"url": "string",
"headers": {
"headers": "string"
},
"vsafilter": {
"condition": "AND",
"filterlist": [
"Filter Object"
]
},
"disabled": false
}
unique name for subscription
Description about the webhook
A publicly accessible URL where user wants to receive notifications
Additional headers users wants to receive along with notification
The VSAFilter object defines how the filters has to be applied on queries.
Defines subscriptions is active or inactive.
Created
{
"id": "ep_2U6LKqlSiXEyCZjZT9LCuuLlxw5",
"name": "router-wh",
"app_id": "app_2U68Bt1IxHidF3OT8qeEMM3ETub",
"disabled": false,
"start_time": 1692255023421,
"update_time": 1692255023421,
"user_name": "oper",
"type": "NOTIFICATION",
"description": "webhook to get router events",
"url": "https://play.svix.com/in/e_y1sI1Dy8IvkYQcgYQy5yoHAtR7E/",
"headers": null,
"vsafilter": {
"filterlist": [
{
"condition": "OR",
"propfilter": [
{
"propname": "ClassName",
"matchtype": "EQ",
"values": [
"Router"
]
}
]
}
]
}
}
Unique subscrpiton id .
Name of the subscription.
Id of the internal application .
Subscription is active or inactive
Subscription start time.
Subscription update time.
User who had created the subscription.
The type of subscription.
Detail description about the subscription.
The URL set to receive notifications.
Headers set for subscription.
The VSAFilter object defines how the filters has to be applied on queries.
Bad request
Conflict