> ## Documentation Index
> Fetch the complete documentation index at: https://api.smartlead.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Credit Balance API

> Your Smart Prospect credit balance: credits you can spend now, your total and what you used - GET /billing/balance

> [!NOTE]
>
> **Credit cost:** Free. This call only reads your balance.

> [!NOTE]
>
> This endpoint requires your API key: pass it as the `api_key` query parameter, or in an `X-API-Key` or `Authorization: Bearer` header (see [Authentication](https://api.smartlead.ai/authentication.md)).

Check how many Smart Prospect credits you can spend before you fetch. It is the same balance [Fetch Contacts](https://api.smartlead.ai/api-reference/smart-prospect/fetch-contacts.md) checks before it charges, and the `credits_available` that [Estimate Fetch Cost](https://api.smartlead.ai/api-reference/smart-prospect/fetch-contacts-estimate.md) reports. For every credit you spent or got back, use [Credit Ledger](https://api.smartlead.ai/api-reference/smart-prospect/credit-ledger.md).

```bash cURL theme={null}
curl "https://prospect-api.smartlead.ai/api/v1/search-email-leads/billing/balance" \
  -H "X-API-Key: YOUR_API_KEY"
```

## Response Fields

**available** `number`

Credits you can spend now (`total` minus `used`)

**total** `number`

Smart Prospect credits on your account

**used** `number`

Credits used

## Response Codes

**200** `Success`

Balance returned

**401** `Unauthorized`

Missing or invalid API key

**403** `Forbidden`

Called with a client (agency sub-account) API key (use the main account key), or your plan does not include API access.

**503** `Service Unavailable`

Your balance could not be read right now. Nothing is wrong with your credits; try again in a minute. The balance is never reported as `0` when it could not be read.

```json 200 - Balance theme={null}
{
  "success": true,
  "message": "Credit balance retrieved.",
  "data": {
    "available": 1350,
    "total": 2000,
    "used": 650
  }
}
```

```json 503 - Balance not readable right now theme={null}
{
  "success": false,
  "message": "Could not read your Smart Prospect credit balance right now. Try again in a minute."
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.