Get Credits
Reference for the GET /v1/credits endpoint.
GET /v1/credits
Returns the current credit balance and a summary of active credit purchases. Use this to verify you have enough credits before submitting large extraction jobs.
Response 200 OK
Response Properties
| Field | Type | Description |
|---|---|---|
credits.available | integer | Total non-expired credits available for use. |
credits.purchases | array | Up to 10 active purchases, most recently created first. |
credits.purchases[].purchase_id | string | Unique purchase identifier. |
credits.purchases[].plan | string | Plan slug (e.g. starter, popular). |
credits.purchases[].credits | integer | Original credit amount purchased. |
credits.purchases[].remaining | integer | Credits still available from this purchase. |
credits.purchases[].expires_at | string | null | Expiry date, or null if non-expiring. |
credits.purchases[].purchased_at | string | Purchase timestamp (ISO 8601). |
Related
- Credits & Billing guide — pricing, packs, and consumption rules.
Common Error Responses
| HTTP Status | Error Code | Description |
|---|---|---|
401 | UNAUTHORIZED | Invalid or missing API key. |