Credit balance
The organization’s credits: what is available now, what is held for running jobs, and when the monthly allowance resets. Credit-spending calls fail with 402 insufficient_credits when available is too low.
Credit balance
Authorizations
Send your API key in the x-api-key header on every request.
- Create a key in PostChamp under Settings → API keys. API access needs the Studio plan.
- Keys start with
pc_live_. The full key is shown once, when you create it: copy it then. Afterwards only its prefix is shown; lost keys are revoked and replaced. - Calls run as the person who created the key, with their current role, and spend the organization's credits.
- Limits per key: 120 requests per minute, 20 generation calls per minute. Keep the key on your server, never in a browser or app.
Response
application/json
The balance.
Available options: monthly, yearly, lifetime, trial, null
Available options: creator, pro, studio, scale, null
Available options: card, basic, null