Catalog

Credits balance

GET/v1/credits

Your current spendable balance and plan.

Request

request
curl https://api.picoberry.ai/v1/credits \
  -H "Authorization: Bearer pb_live_xxx"
requests.get("https://api.picoberry.ai/v1/credits", headers=headers).json()["data"]
const credits = (await (await fetch(`${BASE}/v1/credits`, { headers })).json()).data;

Response

response · 200
{ "success": true, "data": { "totalAmount": 4200, "expiringSoonAmount": 0 } }