Hooks
Set Webhook for Traffic Monitoring
This endpoint allows setting up webhooks for traffic monitoring on a specified KVM VPS.
The api_host parameter, obtained from the "Create AUTH-session" response,
is dynamically set in the URL.
Provide the signature, kvm_id, valid_until, and webhook configuration details.
post/kvm/v2/hooks/set
Request
- Base URLhttps://api_host.edisglobal.com
- Authnone required
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body application/x-www-form-urlencoded
Example request
{
"signature": "session_signature_12345",
"kvm_id": "kvm_123456_789012",
"valid_until": "1737476000",
"callback_method": "post",
"callback_user": "callback_user",
"callback_pw": "callback_password",
"type": "traffic",
"trigger_value": "80",
"callback_url": "https://example.com/yourcallback"
}Response
Webhook set successfully.
Example response
{
"status": "success",
"hook_id": "123"
}Changes
No recorded changes to this operation across all 1 revision of this API.