Hooks

Get all webhooks

This endpoint retrieves all webhooks configured for the 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, and valid_until parameters to fetch the list of webhooks.

post/kvm/v2/hooks/get

Request

Request body application/x-www-form-urlencoded

signaturestring

The session signature obtained from the "Create AUTH-session" call.

kvm_idstring

The unique identifier of the KVM VPS to retrieve webhooks for.
This value is specific to your VPS.

valid_untilstring

The expiration timestamp for the session, as obtained from the "Create AUTH-session" call.
Ensure that the session is valid and has not expired.

Example request

{
  "signature": "session_signature_12345",
  "kvm_id": "kvm_123456_789012",
  "valid_until": "1737476000"
}

Response

Webhooks retrieved successfully.

statusstring

The status of the operation.

Example response

{
  "status": "success",
  "hooks": [
    {
      "id": 1,
      "trigger_value": 80,
      "last_launched": 1714330805,
      "callback_url": "https://example.com/callback",
      "callback_method": "get"
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.