Get the usage report
What the provider's sub-customers sent and spent in a date range (days of the workspace's time zone; the last 30 days by default), with totals, a series by group_by period and a page of customers (newest first, paged with cursor; customers without sends are listed with zeros). Messages count in the period they were created in, by their current status (queued, sent, delivered, read, failed, unknown; they add up to total). Credits are the ledger's entries in the range (consumed, released, reserved, granted, expired and the net of adjusted); a customer's balance is its balance now, with expiring_soon the available credits that expire in the next 30 days. meta_cost is Meta's cost of the sends as Messora estimates it per message (Meta's pricing category × the imported rate card), per currency, always estimated: true; unpriced counts sends Meta took without a known price. Filter one customer with customer_id or external_id, or several with q and status. With format=csv (or Accept: text/csv) the answer is one CSV row per customer of the filter (no paging, at most 10,000) followed by a totals row.
Scope: one of partner.manage, partner.read. Rate limit: 300 requests per minute per API key.
AuthorizationBearer <msk_live_…>An API key created under API keys in the panel: Authorization: Bearer msk_live_…. The key's scopes decide which operations it may call.
Scope: partner.read
customer_id?stringOne sub-customer, by its id.
uuidexternal_id?stringOne sub-customer, by your own key.
1 <= length <= 128from?stringFirst day (inclusive); defaults to 29 days before to.
dateto?stringLast day (inclusive); defaults to today. At most 366 days after from.
dategroup_by?stringThe series' period: a day, a week (from Monday) or a calendar month.
"day""day""week""month"q?stringExternal id, name or display name contains
length <= 100status?stringOnly active or only suspended sub-customers.
"active""suspended"format?stringcsv: the CSV export. Without it, Accept: text/csv asks for the CSV too.
"json""csv"cursor?stringOpaque cursor from meta.next_cursor.
length <= 200limit?integer1 <= value <= 20050The usage report, or its CSV
- response
data*meta*curl -X GET 'https://app.messora.tech/api/v1/partner/usage'{ "data": { "customers": [ { "balance": { "available": 260, "expiring_soon": 0, "next_expiry": "2027-01-31T21:00:00Z", "next_expiry_amount": 260, "reserved": 0 }, "credits": { "adjusted": 0, "consumed": 228, "expired": 0, "granted": 500, "released": 12, "reserved": 240, "unlimited": 0 }, "customer": { "display_name": "Yıldız Muhasebe", "external_id": "acc-1042", "id": "019a8c2e-4f1b-7a00-9c3d-5e7a10000001" }, "last_sent_at": "2026-11-30T15:04:05Z", "messages": { "delivered": 70, "failed": 6, "queued": 0, "read": 40, "sent": 4, "total": 120, "unknown": 0 }, "meta_cost": { "amounts": [ { "amount": "1.218000", "currency": "USD" } ], "estimated": true, "priced": 114, "unpriced": 0 }, "name": "Yıldız Mali Müşavirlik", "status": "active", "unlimited_credits": false } ], "customers_active": 1, "customers_total": 1, "from": "2026-11-01", "group_by": "month", "periods": [ { "credits": { "adjusted": 0, "consumed": 228, "expired": 0, "granted": 500, "released": 12, "reserved": 240, "unlimited": 0 }, "messages": { "delivered": 70, "failed": 6, "queued": 0, "read": 40, "sent": 4, "total": 120, "unknown": 0 }, "meta_cost": { "amounts": [ { "amount": "1.218000", "currency": "USD" } ], "estimated": true, "priced": 114, "unpriced": 0 }, "period": "2026-11-01" } ], "timezone": "Europe/Istanbul", "to": "2026-11-30", "totals": { "credits": { "adjusted": 0, "consumed": 228, "expired": 0, "granted": 500, "released": 12, "reserved": 240, "unlimited": 0 }, "messages": { "delivered": 70, "failed": 6, "queued": 0, "read": 40, "sent": 4, "total": 120, "unknown": 0 }, "meta_cost": { "amounts": [ { "amount": "1.218000", "currency": "USD" } ], "estimated": true, "priced": 114, "unpriced": 0 } } }, "meta": { "request_id": "019a8c2e-4f1b-7fff-9c3d-5e7a1000ffff" }}List event types GET
Events of the Partner API an endpoint can subscribe to. Each payload carries customer (id, external_id, display_name), null only when no sub-customer can be named. Scope: webhooks.manage. Rate limit: 300 requests per minute per API key.
List numbers GET
Every connected number with notification_only; use its id as phone_number_id when sending from one of several numbers. Scope: one of partner.manage, partner.read. Rate limit: 300 requests per minute per API key.