Buy credits
Charges the organization’s card for credits (10 credits = 1 to $10,000 (credits a multiple of 10, 10 to 100,000). The credits are added once the payment succeeds and last a year from then, past the end of the plan. A requires_action result carries a client secret for Stripe.js to finish card authentication, after which POST /current/credits/purchases//confirm adds the credits. Replaying the same Idempotency-Key returns the original purchase. Needs an active Agent simulation plan (402 plan_required otherwise); staff in the organization are exempt. Organization admins only.
Authorizations
API key created in the ZeroClick dashboard under Settings → API keys. Keys start with zc_. Send them as Authorization: Bearer zc_....
Headers
1 - 200Body
-9007199254740991 <= x <= 9007199254740991