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

# Get Hydration Log

> This endpoint retrieves the hydration (refill) log for a specified KVM VPS.  
The `api_host` parameter, obtained from the "Create AUTH-session" response,  
is dynamically set in the URL.  
Use the `query` parameter to filter the log by `client` or `kvm`.




## OpenAPI

````yaml post /kvm/v2/get/refill_log
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/get/refill_log:
    post:
      tags:
        - Traffic Pool
      summary: Get Hydration Log
      description: >
        This endpoint retrieves the hydration (refill) log for a specified KVM
        VPS.  

        The `api_host` parameter, obtained from the "Create AUTH-session"
        response,  

        is dynamically set in the URL.  

        Use the `query` parameter to filter the log by `client` or `kvm`.
      operationId: getHydrationLog
      requestBody:
        description: >
          Required parameters to retrieve the hydration log.  

          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/get_refill_log_body'
        required: true
      responses:
        '200':
          description: Hydration log retrieved successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/inline_response_200_23'
        '400':
          description: Bad Request - Invalid or missing parameters.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/inline_response_400_20'
        '401':
          description: Unauthorized - Invalid or expired session.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/inline_response_401_18'
        '500':
          description: Internal Server Error - An unexpected error occurred.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/inline_response_500_17'
components:
  schemas:
    get_refill_log_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.
          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'
        query:
          type: string
          description: |
            Filter for the hydration log.  
            Acceptable values: `client` or `kvm`.
          example: client
    inline_response_200_23:
      type: object
      properties:
        status:
          type: string
          description: The status of the operation.
          example: success
        log:
          type: array
          items:
            $ref: '#/components/schemas/inline_response_200_23_log'
    inline_response_400_20:
      type: object
      properties:
        status:
          type: string
          example: error
        message:
          type: string
          example: Invalid query parameter.
    inline_response_401_18:
      type: object
      properties:
        status:
          type: string
          example: error
        message:
          type: string
          example: Unauthorized access, session expired.
    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_23_log:
      type: object
      properties:
        ts:
          type: string
          description: The timestamp of the hydration event.
          example: '2023-03-29 09:47:10'
        gbytes:
          type: string
          description: The amount of traffic hydrated (in GB).
          example: '100'
        kvm:
          type: string
          description: The unique identifier of the KVM VPS.
          example: kvm_123456_789012

````