Skip to main content

Usage & Analytics

Monitor your notification platform usage in real time — track email, push, SMS, and auth volumes, monitor MAU (Monthly Active Users), set up usage alerts, and export data for reporting.

Overview

The Usage API gives you visibility into:

MetricDescription
Email VolumeEmails sent in the current billing period
Push VolumePush notifications sent
SMS VolumeText messages sent
Auth EventsAuthentication events (logins, signups, MFA)
MAUMonthly Active Users across your applications
OverageUsage beyond your plan's included limits

Current Period Usage

Get Usage Summary

curl https://api.zyphr.dev/v1/usage \
-H "Authorization: Bearer YOUR_JWT_TOKEN"

Returns your current billing period usage alongside your plan limits:

{
"data": {
"plan": "pro",
"period": {
"start": "2026-02-01T00:00:00Z",
"end": "2026-02-28T23:59:59Z"
},
"usage": {
"emails": { "used": 45000, "limit": 100000, "percentage": 45 },
"push": { "used": 12000, "limit": 50000, "percentage": 24 },
"sms": { "used": 800, "limit": 5000, "percentage": 16 },
"auth": { "used": 3200, "limit": 10000, "percentage": 32 },
"mau": { "used": 1500, "limit": 5000, "percentage": 30 }
}
}
}

Get Raw Current Usage

For a simplified view without plan limit context:

curl https://api.zyphr.dev/v1/usage/current \
-H "Authorization: Bearer YOUR_JWT_TOKEN"

Daily Breakdown

Get daily usage data for granular analysis:

curl "https://api.zyphr.dev/v1/usage/daily?start_date=2026-02-01&end_date=2026-02-28" \
-H "Authorization: Bearer YOUR_JWT_TOKEN"

Query Parameters

ParameterTypeDefaultDescription
start_datestring30 days agoStart date (YYYY-MM-DD)
end_datestringTodayEnd date (YYYY-MM-DD)

Response

{
"data": {
"daily": [
{
"date": "2026-02-01",
"emails": 1500,
"push": 420,
"sms": 30,
"auth": 110
},
{
"date": "2026-02-02",
"emails": 1620,
"push": 380,
"sms": 25,
"auth": 95
}
]
}
}

Usage History

View historical usage across past billing periods:

curl "https://api.zyphr.dev/v1/usage/history?months=6" \
-H "Authorization: Bearer YOUR_JWT_TOKEN"
ParameterTypeDefaultMaxDescription
monthsnumber612Number of past billing periods

MAU Tracking

Get Monthly Active User breakdown by application:

curl https://api.zyphr.dev/v1/usage/mau \
-H "Authorization: Bearer YOUR_JWT_TOKEN"

Response

{
"data": {
"total_mau": 1500,
"applications": [
{ "app_id": "app_main", "name": "Main App", "mau": 1200 },
{ "app_id": "app_mobile", "name": "Mobile App", "mau": 800 }
]
}
}
note

MAU is calculated as unique users who performed at least one action (login, notification received, etc.) during the billing period. Users active across multiple apps are counted once toward total MAU.

Usage Alerts

Get alerts when you're approaching or exceeding plan limits:

curl https://api.zyphr.dev/v1/usage/alerts \
-H "Authorization: Bearer YOUR_JWT_TOKEN"

Response

{
"data": {
"alerts": [
{
"metric": "emails",
"level": "warning",
"threshold": 80,
"current_percentage": 85,
"message": "Email usage at 85% of plan limit"
}
]
}
}

Alert levels:

  • info (50%) - Halfway through included volume
  • warning (80%) - Approaching limit
  • critical (95%) - Near limit, overage charges imminent
  • overage (100%+) - Overage charges active

Overage Tracking

Current Overage

Check if you're incurring overage charges this period:

curl https://api.zyphr.dev/v1/usage/overage \
-H "Authorization: Bearer YOUR_JWT_TOKEN"

Overage Forecast

Project your end-of-period overage based on current usage pace:

curl https://api.zyphr.dev/v1/usage/overage/forecast \
-H "Authorization: Bearer YOUR_JWT_TOKEN"

Response

{
"data": {
"forecast": {
"emails": { "projected": 120000, "limit": 100000, "overage": 20000, "estimated_cost": "$20.00" },
"push": { "projected": 45000, "limit": 50000, "overage": 0, "estimated_cost": "$0.00" }
},
"days_remaining": 12,
"based_on_days": 16
}
}

Overage History

View past overage records:

curl "https://api.zyphr.dev/v1/usage/overage/history?limit=12" \
-H "Authorization: Bearer YOUR_JWT_TOKEN"
ParameterTypeDefaultMaxDescription
limitnumber1224Number of past periods

CSV Exports

Export usage data as CSV for reporting and analysis.

Export Current Summary

curl https://api.zyphr.dev/v1/usage/export/summary \
-H "Authorization: Bearer YOUR_JWT_TOKEN" \
-o usage-summary.csv

Export Usage History

curl "https://api.zyphr.dev/v1/usage/export/history?months=12" \
-H "Authorization: Bearer YOUR_JWT_TOKEN" \
-o usage-history.csv

Export Daily Breakdown

curl "https://api.zyphr.dev/v1/usage/export/daily?start_date=2026-02-01&end_date=2026-02-28" \
-H "Authorization: Bearer YOUR_JWT_TOKEN" \
-o usage-daily.csv
note

Daily exports are limited to a maximum of 90 days per request.

Export MAU by Application

curl https://api.zyphr.dev/v1/usage/export/mau \
-H "Authorization: Bearer YOUR_JWT_TOKEN" \
-o mau-breakdown.csv

Export Comprehensive Report

Download a complete analytics report covering all metrics:

curl https://api.zyphr.dev/v1/usage/export/all \
-H "Authorization: Bearer YOUR_JWT_TOKEN" \
-o analytics-report.csv

Dashboard

The Usage section in the Dashboard provides:

  1. Usage overview - Visual progress bars for each metric against plan limits
  2. Daily charts - Line charts showing daily volume trends
  3. Alert badges - Warning indicators when approaching limits
  4. MAU breakdown - Per-application MAU visualization
  5. Export buttons - One-click CSV downloads

Plan Limits Reference

MetricFreeStarterProScaleEnterprise
Emails/mo1,00025,000100,000500,000Custom
Push/mo1,00025,000100,000500,000Custom
SMS/mo1001,0005,00025,000Custom
Auth events/mo5005,00025,000100,000Custom
MAU5002,50010,00050,000Custom

See Billing & Plans for full plan details and overage pricing.

API Reference

MethodEndpointDescription
GET/v1/usageCurrent period usage with limits
GET/v1/usage/currentRaw current period usage
GET/v1/usage/historyPast billing period usage
GET/v1/usage/dailyDaily usage breakdown
GET/v1/usage/mauMAU by application
GET/v1/usage/alertsCurrent period alerts
GET/v1/usage/overageCurrent overage
GET/v1/usage/overage/forecastProjected overage
GET/v1/usage/overage/historyHistorical overage records
GET/v1/usage/export/summaryExport current summary (CSV)
GET/v1/usage/export/historyExport usage history (CSV)
GET/v1/usage/export/dailyExport daily breakdown (CSV)
GET/v1/usage/export/mauExport MAU data (CSV)
GET/v1/usage/export/allExport comprehensive report (CSV)

Next Steps