JunkMail

Analytics

Access your account statistics

Overview

Retrieves the global statistics for your account.

GET /api/v1/analytics

Required scope: analytics:read

Example

curl -X GET https://api.junkmail.dev/api/v1/analytics \
  -H "Authorization: Bearer jm_live_xxxx"

JavaScript

const response = await fetch('https://api.junkmail.dev/api/v1/analytics', {
  headers: {
    'Authorization': 'Bearer jm_live_xxxx',
  },
});

const { totalAddresses, activeAddresses, thisMonthReceived } = await response.json();

Response

{
  "totalAddresses": 25,
  "activeAddresses": 12,
  "totalEmailsReceived": 1547,
  "totalEmailsSent": 89,
  "thisMonthReceived": 234,
  "thisMonthSent": 15
}

Response Fields

FieldTypeDescription
totalAddressesnumberTotal number of addresses created
activeAddressesnumberNumber of currently active addresses
totalEmailsReceivednumberTotal emails received since account creation
totalEmailsSentnumberTotal emails sent since account creation
thisMonthReceivednumberEmails received this month
thisMonthSentnumberEmails sent this month