Get this month's email plan usage
email_marketing.usage.get
Returns the email marketing plan (5K, 10K or 25K) and this month's usage: sent (emails to contacts from campaigns and flows), limit (null when the organization has no cap), queued (emails waiting in the send queue, which also count), remaining (null without cap), overage (only the 25K plan allows going over; it is billed), usage_percent, a pending plan change and sending_paused (paused true when MB Suite paused the account's email sending, with kind and since: nothing goes out until it is resumed). Check remaining and sending_paused before sending a large campaign: email_marketing.campaigns.send_now refuses with limit_reached (details.resource emails) when the plan has no room and with email_sending_paused while sending is paused. Requires view access to Email Marketing.
- Alcance
email_marketing:read- Permiso
- Ver el módulo
- Tool del MCP
email_marketing_usage_getEn la superficie completa; en la compacta,mb_execute_operationconid: "email_marketing.usage.get".
Costo declarado: hasta 3 lecturas y 0 escrituras por llamada (cuentan en el cupo diario).
Parámetros
Sin parámetros.
Respuesta
plan_idstring | nullplan_namestringsentnumberlimitnumber | nullEmails per month of the plan; null when there is no cap (unlimited true).
unlimitedbooleantrue when the organization has no monthly cap (limit and remaining are null).
queuednumberEmails in the queue that have not gone out yet (they count against the cap).
remainingnumber | nullWhat is left this month counting the queue; null without a cap.
overagenumberoverage_reportednumberoverage_cost_centsnumberThe overage's cost so far, in US cents.
usage_percentnumberperiod_startnumberStart of the month counted (epoch ms).
period_endnumberEnd of the month counted (epoch ms).
pending_plan_changestring | nullallow_overagebooleansending_pausedobjectWhether MB Suite paused the account's email sending (kind bounce_rate: a campaign or flow had a hard bounce rate over 5%; manual: MB Suite decided it; since: epoch ms). While paused nothing goes out, whatever the plan has left.
Errores
Ejemplo
curl "https://api.mb-suite.com/v1/email-marketing/usage" \
-H "Authorization: Bearer $MB_API_KEY"Probar con tu API key de prueba
Con una API key de prueba el pedido va siempre a tu organización de práctica: datos de ejemplo que puedes reiniciar.
curl "https://api.mb-suite.com/v1/email-marketing/usage" \
-H "Authorization: Bearer $MB_TEST_KEY"