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

# Start saving a card for credit purchases

> Creates a Stripe SetupIntent on the ZeroClick platform account. Confirm it in the browser with Stripe.js and the returned publishable key, then save it with PUT /current/credits/card. Organization admins only.



## OpenAPI

````yaml https://api.zeroclick.io/openapi.json post /v1/organizations/current/credits/card/setup-intents
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/card/setup-intents:
    post:
      tags:
        - Organizations
      summary: Start saving a card for credit purchases
      description: >-
        Creates a Stripe SetupIntent on the ZeroClick platform account. Confirm
        it in the browser with Stripe.js and the returned publishable key, then
        save it with PUT /current/credits/card. Organization admins only.
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  clientSecret:
                    type: string
                  publishableKey:
                    type: string
                required:
                  - clientSecret
                  - publishableKey
                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.