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

# Change the organization's auto top-up setting

> Turning it on needs an active Agent simulation plan (402 plan_required) and a saved card (409 card_required). Saving clears any recorded failure. Organization admins only.



## OpenAPI

````yaml https://api.zeroclick.io/openapi.json put /v1/organizations/current/credits/auto-top-up
openapi: 3.0.0
info:
  title: ZeroClick API
  description: >-
    REST API for managing ZeroClick sellers, services, pricing, usage, and
    analytics. Authenticate with an API key from the ZeroClick dashboard.
  version: 1.0.0
servers:
  - url: https://api.zeroclick.io
security:
  - bearerAuth: []
tags:
  - name: API keys
  - name: Sellers
  - name: Services
  - name: Meters
  - name: Plans
  - name: Plan meter prices
  - name: Usage
  - name: Analytics
  - name: Agentify
  - name: Stripe Connect
  - name: Sandbox
  - name: Organizations
  - name: Users
paths:
  /v1/organizations/current/credits/auto-top-up:
    put:
      tags:
        - Organizations
      summary: Change the organization's auto top-up setting
      description: >-
        Turning it on needs an active Agent simulation plan (402 plan_required)
        and a saved card (409 card_required). Saving clears any recorded
        failure. Organization admins only.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                enabled:
                  type: boolean
                thresholdCredits:
                  type: integer
                  minimum: -9007199254740991
                  maximum: 9007199254740991
                packCredits:
                  type: integer
                  minimum: -9007199254740991
                  maximum: 9007199254740991
              required:
                - enabled
                - thresholdCredits
                - packCredits
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  autoTopUp:
                    type: object
                    properties:
                      enabled:
                        type: boolean
                      thresholdCredits:
                        type: integer
                        minimum: -9007199254740991
                        maximum: 9007199254740991
                      packCredits:
                        type: integer
                        minimum: -9007199254740991
                        maximum: 9007199254740991
                      failure:
                        nullable: true
                        type: string
                        enum:
                          - card_declined
                          - authentication_required
                          - card_required
                      failedAt:
                        nullable: true
                        type: string
                    required:
                      - enabled
                      - thresholdCredits
                      - packCredits
                      - failure
                      - failedAt
                    additionalProperties: false
                required:
                  - autoTopUp
                additionalProperties: false
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        API key created in the ZeroClick dashboard under Settings → API keys.
        Keys start with `zc_`. Send them as `Authorization: Bearer zc_...`.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.