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.
- Escopo
email_marketing:read- Permissão
- Ver o módulo
- Tool do MCP
email_marketing_usage_getNa superfície completa; na compacta,mb_execute_operationcomid: "email_marketing.usage.get".
Custo declarado: até 3 leituras e 0 escritas por chamada (contam na cota diária).
Parâmetros
Sem parâmetros.
Resposta
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.
Erros
Exemplo
curl "https://api.mb-suite.com/v1/email-marketing/usage" \
-H "Authorization: Bearer $MB_API_KEY"Testar com a sua API key de teste
Com uma API key de teste o pedido vai sempre para a sua organização de prática: dados de exemplo que você pode reiniciar.
curl "https://api.mb-suite.com/v1/email-marketing/usage" \
-H "Authorization: Bearer $MB_TEST_KEY"