API Docs

Check credits

GET /v1/credits

Returns the available credit balance for the account behind the key. Credits come from plans (which expire) and top-ups (which do not); the number here is the usable total.

bash
curl https://open.pikpikgo.com/v1/credits \
  -H "Authorization: Bearer $PIKPIK_API_KEY"
json
{
  "object": "credits",
  "balance": 1280
}

Check before a batch run. Being cut off by a 402 halfway through is worse — jobs that already succeeded are not rolled back.