Webhooks
Update webhook endpoint
PATCH
/
v1
/
webhooks
/
{webhook_id}
Update webhook endpoint
curl --request PATCH \
--url https://api.veri.studio/v1/webhooks/{webhook_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"url": "<string>",
"description": "<string>",
"event_types": [
"<string>"
],
"enabled": true
}
'import requests
url = "https://api.veri.studio/v1/webhooks/{webhook_id}"
payload = {
"url": "<string>",
"description": "<string>",
"event_types": ["<string>"],
"enabled": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
url: '<string>',
description: '<string>',
event_types: ['<string>'],
enabled: true
})
};
fetch('https://api.veri.studio/v1/webhooks/{webhook_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"object": "<string>",
"id": "<string>",
"url": "<string>",
"secret": "<string>",
"event_types": [
"<string>"
],
"consecutive_failures": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"description": "<string>",
"disabled_at": "2023-11-07T05:31:56Z"
}Authorizations
API key with the vk_ prefix. Create one from the dashboard.
Path Parameters
Webhook endpoint ID
Body
application/json
Response
The updated endpoint (secret masked)
Full "whsec_..." signing secret on create ONLY; masked on every other read (use GET /v1/webhooks/{id}/secret to retrieve it again).
Empty = subscribed to all event types.
Set when the endpoint is disabled (manually or automatically after 50 consecutive delivery failures). Disabled endpoints receive no events.
Update webhook endpoint
curl --request PATCH \
--url https://api.veri.studio/v1/webhooks/{webhook_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"url": "<string>",
"description": "<string>",
"event_types": [
"<string>"
],
"enabled": true
}
'import requests
url = "https://api.veri.studio/v1/webhooks/{webhook_id}"
payload = {
"url": "<string>",
"description": "<string>",
"event_types": ["<string>"],
"enabled": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
url: '<string>',
description: '<string>',
event_types: ['<string>'],
enabled: true
})
};
fetch('https://api.veri.studio/v1/webhooks/{webhook_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"object": "<string>",
"id": "<string>",
"url": "<string>",
"secret": "<string>",
"event_types": [
"<string>"
],
"consecutive_failures": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"description": "<string>",
"disabled_at": "2023-11-07T05:31:56Z"
}
