> ## Documentation Index
> Fetch the complete documentation index at: https://docs.edisglobal.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 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.




## OpenAPI

````yaml post /kvm/v2/hooks/get
openapi: 3.0.0
info:
  title: EDIS Global Management API
  description: >
    Use the API to access and manage your VPS services, including power control,
    rDNS, and VNC management.  

    **Authentication:** Enable API access on any KVM VPS you own. Then use the
    provided credentials to authenticate your requests.
  version: 1.0.0
servers:
  - url: https://{api_host}
    description: Dynamic API host returned from the AUTH session endpoint.
    variables:
      api_host:
        default: api_host.edisglobal.com
        description: >-
          Enter the full API host exactly as returned by /kvm/v2/get/auth (for
          example: 12345.edisglobal.com)
security: []
tags:
  - name: Authentication
    description: Create an AUTH Session
  - name: Power Management
    description: KVM Power Management
  - name: Installation
    description: ISO, Turnkey, Reinstall
  - name: Settings
    description: KVM System Settings
  - name: Collect Information
    description: KVM VPS Details.
  - name: VNC Management
    description: KVM VNC Access
  - name: PTR
    description: KVM Reverse DNS
  - name: Traffic Pool
    description: Traffic Pool Management
  - name: Hooks
    description: KVM Webhook Management
paths:
  /kvm/v2/hooks/get:
    post:
      tags:
        - Hooks
      summary: Get all webhooks
      description: >
        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.
      operationId: getAllHooks
      requestBody:
        description: >
          Required parameters to retrieve all webhooks for a KVM VPS.  

          All parameters must be passed in the request body as
          `application/x-www-form-urlencoded`.
        content:
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/hooks_get_body'
        required: true
      responses:
        '200':
          description: Webhooks retrieved successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/inline_response_200_21'
        '400':
          description: Bad Request - Missing or invalid parameters.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/inline_response_400_18'
        '401':
          description: Unauthorized - Invalid or expired session.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/inline_response_401_17'
        '403':
          description: Forbidden - You do not have permission to access this resource.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/inline_response_403_13'
        '500':
          description: Internal Server Error - An unexpected error occurred.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/inline_response_500_17'
components:
  schemas:
    hooks_get_body:
      type: object
      properties:
        signature:
          type: string
          description: The session signature obtained from the "Create AUTH-session" call.
          example: session_signature_12345
        kvm_id:
          type: string
          description: |
            The unique identifier of the KVM VPS to retrieve webhooks for.  
            This value is specific to your VPS.
          example: kvm_123456_789012
        valid_until:
          type: string
          description: >
            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: '1737476000'
    inline_response_200_21:
      type: object
      properties:
        status:
          type: string
          description: The status of the operation.
          example: success
        hooks:
          type: array
          items:
            $ref: '#/components/schemas/inline_response_200_21_hooks'
    inline_response_400_18:
      type: object
      properties:
        status:
          type: string
          example: error
        message:
          type: string
          example: Invalid request parameters.
    inline_response_401_17:
      type: object
      properties:
        status:
          type: string
          example: error
        message:
          type: string
          example: Unauthorized access.
    inline_response_403_13:
      type: object
      properties:
        status:
          type: string
          example: error
        message:
          type: string
          example: Permission denied.
    inline_response_500_17:
      type: object
      properties:
        status:
          type: string
          example: error
        message:
          type: string
          example: An unexpected error occurred on the server.
    inline_response_200_21_hooks:
      type: object
      properties:
        id:
          type: integer
          description: The unique identifier of the webhook.
          example: 1
        trigger_value:
          type: integer
          description: The threshold value that triggers the webhook.
          example: 80
        last_launched:
          type: integer
          description: The last time the webhook was triggered (Unix timestamp).
          example: 1714330805
        callback_url:
          type: string
          description: The URL where the webhook sends notifications.
          example: https://example.com/callback
        callback_method:
          type: string
          description: The HTTP method used for the callback.
          example: get
        callback_user:
          type: string
          description: The username for callback authentication (if applicable).
          example: ''
        type:
          type: string
          description: The type of the webhook event.
          example: ''

````