Credits
List credits
Returns all credits for your account. Use the optional status query parameter to filter by credit status.
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
status | string | No | Filter by status: available, used, expired, or scheduled |
Response 200 OK
Get credit balance
Returns aggregated credit counts for your account. This is the fastest way to check how many credits you have available.
Response 200 OK
| Field | Description |
|---|---|
available | Credits ready to use |
used | Credits consumed by completed pentests |
expired | Credits that passed their 1-year expiry date |
expiringSoon | Available credits expiring within 30 days |
total | Sum of available, used, and expired |
Consume a credit
Consume a specific credit to start a pentest against a target. The target's domain must be verified.
Request body
| Field | Type | Required | Description |
|---|---|---|---|
targetId | string | Yes | The ID of the target to pentest |
Response 200 OK
Error responses
| Status | Condition |
|---|---|
400 | Credit is not in available status |
400 | Domain verification has expired |
400 | Missing targetId in request body |
404 | Credit not found |
404 | Target not found |
Each pentest consumes one credit. Credits are consumed using FIFO order (oldest first) when no specific credit ID is provided. All credits expire 1 year from the date of purchase.