Skip to main content
GET
/
emails
/
stats
JavaScript
import Nuntly from '@nuntly/sdk';

const client = new Nuntly({
  apiKey: process.env['NUNTLY_API_KEY'], // This is the default and can be omitted
});

const stats = await client.emails.stats.list();

console.log(stats.end);
{
  "data": {
    "start": "2023-12-25",
    "end": "2023-12-25",
    "stats": [
      {
        "occurredOn": "2023-12-25",
        "queued": 123,
        "scheduled": 123,
        "processed": 123,
        "sending": 123,
        "sent": 123,
        "delivered": 123,
        "deliveredDelayed": 123,
        "bounced": 123,
        "failed": 123,
        "rejected": 123,
        "canceled": 123,
        "complaintReceived": 123,
        "renderingFailed": 123,
        "opened": 123,
        "clicked": 123
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

Bearer HTTP authentication. Allowed headers Authorization: Bearer <API_KEY>

Response

200 response

data
object
required