Skip to Content
Usage reports

Get the usage report

GET
/partner/usage

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.

Authorization

headerAuthorizationBearer <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

Query Parameters

customer_id?string

One sub-customer, by its id.

Formatuuid
external_id?string

One sub-customer, by your own key.

Length1 <= length <= 128
from?string

First day (inclusive); defaults to 29 days before to.

Formatdate
to?string

Last day (inclusive); defaults to today. At most 366 days after from.

Formatdate
group_by?string

The series' period: a day, a week (from Monday) or a calendar month.

Default"day"
Value in"day""week""month"
q?string

External id, name or display name contains

Lengthlength <= 100
status?string

Only active or only suspended sub-customers.

Value in"active""suspended"
format?string

csv: the CSV export. Without it, Accept: text/csv asks for the CSV too.

Value in"json""csv"
cursor?string

Opaque cursor from meta.next_cursor.

Lengthlength <= 200
limit?integer
Range1 <= value <= 200
Default50

Response Body

The usage report, or its CSV

  1. response
data*
meta*
Example Request
curl -X GET 'https://app.messora.tech/api/v1/partner/usage'
Example Response
{  "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"  }}