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

# Reset a customer's allowance windows

> Closes the scope's OPEN rolling allowance windows, so the customer's next call anchors a fresh instance with a full allowance. The only thing that hands an allowance back early. Answers 200 with `closed_windows: 0` when nothing was open; 400 (`unsupported_mode`) when the scope is not in windows mode.



## OpenAPI

````yaml post /v1/agents/customers/{customer_id}/windows/reset
openapi: 3.1.0
info:
  title: Hyperline API
  version: 0.0.0
servers:
  - url: https://api.hyperline.co
  - url: https://sandbox.api.hyperline.co
security: []
paths:
  /v1/agents/customers/{customer_id}/windows/reset:
    post:
      tags:
        - Agents
      summary: Reset a customer's allowance windows
      description: >-
        Closes the scope's OPEN rolling allowance windows, so the customer's
        next call anchors a fresh instance with a full allowance. The only thing
        that hands an allowance back early. Answers 200 with `closed_windows: 0`
        when nothing was open; 400 (`unsupported_mode`) when the scope is not in
        windows mode.
      operationId: resetAgentCustomerWindows
      parameters:
        - schema:
            type: string
          required: true
          name: customer_id
          in: path
        - schema:
            type: string
            minLength: 1
            maxLength: 128
          required: false
          name: agent
          in: query
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  agent:
                    type:
                      - string
                      - 'null'
                  closed_windows:
                    type: number
                  meters:
                    type: array
                    items:
                      type: object
                      properties:
                        key:
                          type: string
                        included_units:
                          type: string
                        used_units:
                          type: string
                        remaining_units:
                          type: string
                        window_started_at:
                          type:
                            - string
                            - 'null'
                        resets_at:
                          type:
                            - string
                            - 'null'
                      required:
                        - key
                        - included_units
                        - used_units
                        - remaining_units
                        - window_started_at
                        - resets_at
                required:
                  - agent
                  - closed_windows
                  - meters
        '404':
          description: Policy not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                required:
                  - message
      security:
        - bearer: []
components:
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      bearerFormat: JWT

````