Returns aggregate counts of configured email providers with breakdowns by type and status.
cURL
curl --request GET \ --url https://app.sendmux.ai/api/v1/providers/stats \ --header 'Authorization: Bearer <token>'
{ "ok": true, "data": { "total": 12, "active": 8, "inactive": 3, "error": 1, "pending": 0, "by_type": { "smtp": 6, "gmail_api": 4, "outlook_api": 2 }, "by_status": { "active": 8, "inactive": 3, "error": 1, "pending": 0 } }, "meta": { "request_id": "req_clxxxxxxxxxxxxxxxxxxxxxxxxx" } }
Sendmux API key. Obtain from the dashboard under API Keys. Format: smx_root_...
Provider statistics
true
Hide child attributes
Total number of configured providers
12
Providers with status 'active'
8
Providers with status 'inactive'
3
Providers with status 'error'
1
Providers with status 'pending'
0
Breakdown by provider type
Number of SMTP providers
6
Number of Gmail API providers
4
Number of Outlook API providers
2
Breakdown by status
"req_clxxxxxxxxxxxxxxxxxxxxxxxxx"
Was this page helpful?