카탈로그

크레딧 잔액

GET/v1/credits

현재 사용 가능한 잔액과 플랜입니다.

요청

요청
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;

응답

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