Skip to Content

Usage reports

Messages, credits and Meta's estimated cost per sub-customer and per period, as JSON or CSV.

Get the usage report (GET /partner/usage) reports what your sub-customers sent and spent in a range of days, with totals, a series by period and a page of customers.

GET /partner/usage?from=2026-11-01&to=2026-11-30&group_by=week

Parameters

ParameterMeaning
from, toThe first and last day (inclusive), in your workspace's time zone. Default: the last 30 days up to today. At most 366 days.
group_byThe series' period: day (default), week (from Monday) or month.
customer_id / external_idOne customer: every figure is that customer's.
q, statusSeveral customers: external id, name or display name contains q; active or suspended. The totals and the series follow the filter too.
cursor, limitPages of customers (newest first; meta.next_cursor).
formatcsv for the CSV export (also Accept: text/csv).

The answer

{"from": "2026-11-01", "to": "2026-11-30", "group_by": "week", "timezone": "Europe/Istanbul",
 "customers_total": 1, "customers_active": 1,
 "totals": {"messages": {…}, "credits": {…}, "meta_cost": {…}},
 "periods": [{"period": "2026-10-26", "messages": {…}, "credits": {…}, "meta_cost": {…}}, …],
 "customers": [{"customer": {"id": "…", "external_id": "acc-1042", "display_name": "Yıldız Muhasebe"},
   "name": "Yıldız Mali Müşavirlik", "status": "active", "unlimited_credits": false, "credit_low_threshold": null,
   "last_sent_at": "2026-11-30T15:04:05Z",
   "balance": {"available": 260, "reserved": 0, "next_expiry": "2027-01-31T21:00:00Z", "next_expiry_amount": 260, "expiring_soon": 0},
   "messages": {…}, "credits": {…}, "meta_cost": {…}}]}
  • periods lists every period of the range, oldest first, also empty ones; a period is named by its first day.
  • customers lists customers without sends too, with zeros. customers_total is how many match the filter, customers_active how many of them sent in the range.

messages

Sends created in the range, by their current status. The statuses add up to total.

{"total": 120, "queued": 0, "sent": 4, "delivered": 70, "read": 40, "failed": 6, "unknown": 0}

credits

The ledger's entries written in the range, by kind:

{"granted": 500, "consumed": 228, "released": 12, "reserved": 240, "expired": 0, "adjusted": 0, "unlimited": 0}

reserved is what was held when sends were made; each held credit is later either consumed or released (failed, or no outcome for 7 days). adjusted is the net of the adjustments (signed). unlimited is not a ledger entry: it adds up the cost of what customers with unlimited credits sent, for your invoice.

balance

The customer's balance now (not at the end of the range): available, reserved, next_expiry, next_expiry_amount, and expiring_soon, the available credits that expire in the next 30 days.

meta_cost

{"estimated": true, "amounts": [{"currency": "USD", "amount": "1.218000"}], "priced": 114, "unpriced": 0}

meta_cost is Messora's estimate of what Meta charges: each message's pricing category as Meta reports it, priced with the imported rate card in your account's currency. It is always estimated: true, with one amount per currency. priced counts the sends with a cost (free ones count with 0); unpriced the sends Meta took without a known price (no rate yet, or no pricing reported yet). The estimate is not an invoice: with your own Meta app, Meta's billing is authoritative; through Messora's, what was taken from your message balance.

CSV export

GET /partner/usage?format=csv (or Accept: text/csv without format) returns one row per customer of the filter (no paging, at most 10,000) and a final total row, as UTF-8 CSV with a header row:

ColumnMeaning
customer_id, external_id, name, display_name, statusThe customer (total in customer_id for the totals row).
from, toThe range.
messages_total, messages_queued, messages_sent, messages_delivered, messages_read, messages_failed, messages_unknownSends by current status.
credits_granted, credits_consumed, credits_released, credits_reserved, credits_expired, credits_adjustedLedger entries by kind.
balance_available, balance_reserved, balance_expiring_soon, next_expiryThe balance now (empty in the totals row).
last_sent_atThe customer's latest send.
meta_cost_estimate, meta_cost_currencyThe estimate; several currencies are joined with | in the same order.
meta_cost_unpricedSends without a known price.
unlimited_creditstrue for a customer with unlimited credits now.
credits_unlimitedThe cost of what it sent with unlimited credits.

Values that start with =, +, - or @ are prefixed with ' so that spreadsheets do not run them as formulas.

The list of sends

List sends lists the sends behind the figures, newest first, filtered by customer (customer_id or external_id), status and days (from, to).

On this page