> ## 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.

# Get Plan Limits

> Plan limits and remaining run credits for deliverability tests

> [!NOTE]
>
> **Smart Delivery v2 (Deliverability Test) API**: the deliverability (inbox placement) test that sends your campaign email to seed inboxes and reports where it landed. Contact [support@smartlead.ai](mailto:support@smartlead.ai) for access.

## Overview

Check your remaining run credits and the limits that apply before you create a test.

## Query Parameters

**api\_key** `string` *required*

Your SmartLead API key

```bash cURL theme={null}
curl -X GET "https://sl-sd-api.smartlead.ai/api/v1/smart-delivery/limits?api_key=YOUR_KEY"
```

```python Python theme={null}
import requests

API_KEY = "YOUR_API_KEY"

response = requests.get(
    "https://sl-sd-api.smartlead.ai/api/v1/smart-delivery/limits",
    params={"api_key": API_KEY}
)
print(response.status_code)
print(response.json())
```

```javascript JavaScript theme={null}
const API_KEY = 'YOUR_API_KEY';

const response = await fetch(
  `https://sl-sd-api.smartlead.ai/api/v1/smart-delivery/limits?api_key=${API_KEY}`,
  {
    method: 'GET'
  }
);
console.log(await response.json());
```

## Response Fields

**maxSendersPerTest** `number`

Sender mailboxes your plan allows in one test

**runCreditsRemaining** `number`

Run credits left on your plan

**seedsPerSenderPerProvider** `number`

Seed inboxes each sender mails per provider

**minGapMinutes** `number`

Smallest allowed `sendGap`, in minutes

**sendJitterSeconds** `object`

`min` and `max` random delay, in seconds, added to each send

**placementWindowMinutes** `number`

How long after the last send the placement check keeps looking for each email

## Response Codes

**200** `Success`

Success

**402** `Error`

No Smart Delivery plan on the account (`NO_PLAN`)

**401** `Unauthorized`

Missing, invalid or expired API key (`UNAUTHORIZED`)

**403** `Forbidden`

Client (agency) API keys are not allowed (`CLIENT_NOT_ALLOWED`), or your plan does not include API access (`API_ACCESS_RESTRICTED`)

**429** `Too Many Requests`

Too many requests for this API key. Wait the number of seconds in the `Retry-After` header (`RATE_LIMITED`)

```json 200 - Success theme={null}
{
  "maxSendersPerTest": 10,
  "runCreditsRemaining": 85,
  "seedsPerSenderPerProvider": 4,
  "minGapMinutes": 5,
  "sendJitterSeconds": { "min": 20, "max": 60 },
  "placementWindowMinutes": 30
}
```

```json Error - Unauthorized theme={null}
{
  "error": {
    "code": "UNAUTHORIZED",
    "message": "Invalid API Key"
  }
}
```

## Related Endpoints

* [Refresh Plan Limits](https://api.smartlead.ai/api-reference/smart-delivery-v2/limits-refresh.md)
* [Create Deliverability Test](https://api.smartlead.ai/api-reference/smart-delivery-v2/create-test.md)


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