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

# Bulk Get Warmup Stats

> Warmup stats of up to 50 email accounts in one request, over a window of up to 90 days

Returns the warmup stats of many email accounts at once, so an audit of a large mailbox fleet takes a few calls instead of one per mailbox. Each item's `stats` is the same object [Get Warmup Stats](https://api.smartlead.ai/api-reference/email-accounts/warmup-stats.md) returns for that account. By default the window is the last 7 days (as in Get Warmup Stats); send `start_date` and `end_date` to choose another window of up to 90 days.

Only your own email accounts are read; with a client API key, only that client's. IDs that are not yours come back in `not_found`, and accounts whose stats could not be fetched come back in `failed`, instead of failing the request.

## Query Parameters

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

Your SmartLead API key (a main or client key)

## Request Body

**email\_account\_ids** `array` *required*

Email account IDs (positive integers). 1 to 50 IDs. A repeated ID is read once.

**start\_date** `string`

Start of the window, an ISO 8601 date or date-time (for example `2026-11-01` or `2026-11-01T00:00:00Z`). Default: 7 days before `end_date`.

**end\_date** `string`

End of the window, an ISO 8601 date or date-time. Default: now. Must be on or after `start_date` and at most 90 days after it.

```bash cURL theme={null}
curl -X POST "https://server.smartlead.ai/api/v1/email-accounts/warmup-stats?api_key=YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"email_account_ids": [123, 124, 999]}'
```

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

response = requests.post(
    "https://server.smartlead.ai/api/v1/email-accounts/warmup-stats",
    params={"api_key": "YOUR_API_KEY"},
    json={
        "email_account_ids": [123, 124, 999],
        "start_date": "2026-10-01T00:00:00Z",
        "end_date": "2026-11-01T00:00:00Z",
    },
)
print(response.json())
```

## Response Fields

**ok** `boolean`

`true`

**start\_date** `string`

The start of the window used (ISO 8601 date-time)

**end\_date** `string`

The end of the window used (ISO 8601 date-time)

**data** `array`

One item per account of yours whose stats were fetched, in ascending ID order.

**item**

**email\_account\_id** `integer`

The email account ID

**from\_email** `string`

The account's sending address

**stats** `object`

The account's warmup stats over the window, the same object as [Get Warmup Stats](https://api.smartlead.ai/api-reference/email-accounts/warmup-stats.md); `null` when the warmup service has no stats for the account

**not\_found** `array`

The IDs you sent that are not email accounts of yours (or of your client, for a client key)

**failed** `array`

IDs of your accounts whose stats could not be fetched this time: the read failed or took over 10 seconds, or the request used its 30-second time budget before reaching them. Retry those IDs.

## Response Codes

**200** `Success`

Request successful, also when none of the IDs is yours (then `data` is empty and every ID is in `not_found`)

**400** `Bad Request`

`email_account_ids` is missing, empty, longer than 50 or has non-integer values; a date is not ISO 8601; `start_date` is after `end_date` or more than 90 days before it; or the body has other keys

**401** `Unauthorized`

Invalid or missing API key

**429** `Too Many Requests`

More than 10 calls in 60 seconds to this endpoint per account (per key for a client key), on top of your plan's overall API limit. Plain-text body; wait the number of seconds in the `Retry-After` header.

**500** `Internal Server Error`

Server error; retry the request

```json 200 - Success theme={null}
{
  "ok": true,
  "start_date": "2026-10-01T00:00:00.000Z",
  "end_date": "2026-11-01T00:00:00.000Z",
  "data": [
    {
      "email_account_id": 123,
      "from_email": "jane@example.com",
      "stats": {
        "id": 123,
        "sent_count": "140",
        "spam_count": "3",
        "warmup_email_received_count": "120",
        "inbox_count": "137",
        "stats_by_date": [
          { "date": "2026-10-20T00:00:00.000Z", "sent_count": 15, "reply_count": 4, "save_from_spam_count": 0, "id": 1 }
        ]
      }
    }
  ],
  "not_found": [999],
  "failed": [124]
}
```

```json 400 - Window too long theme={null}
{
  "error": "start_date must be on or before end_date, at most 90 days apart."
}
```

```json 401 - Unauthorized theme={null}
{
  "message": "Invalid API Key"
}
```

```text 429 - Too Many Requests theme={null}
You have exceeded the 10 requests in 60 sec limit for this endpoint!
```

```json 500 - Internal Server Error theme={null}
{
  "error": "Could not fetch warmup stats."
}
```


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