MessageOS
APIUsageSummary

Read delivery and consent totals

GET
/usage/summary

Counts what happened to the messages sent in a range of UTC days: sent, delivered, read, and failed, with the opt-outs and opt-ins of those days. Hidden until MessageOS turns it on. from is included and to is not.

It counts as messages are sent and reports arrive, so it needs no daily summary. A report can arrive after the day its message was sent, so a recent day can still change.

Scope: usage:read.

Authorization

bearer
headerAuthorizationBearer <mosc_...>

A client key (mosc_).

Query Parameters

from*string

First day, included (YYYY-MM-DD). Days are UTC.

Match^\d{4}-\d{2}-\d{2}$
to*string

End day, not included (YYYY-MM-DD). It must be after from, and at most 92 days after it.

Match^\d{4}-\d{2}-\d{2}$

Response Body

The totals, the rates, and one row for each day.

application/json
  1. response

Delivery and consent totals for a range of days. It is a measurement, not a charge.

from*string

First day, included.

to*string

End day, not included.

timeZone*string
totals*
rates*
days*array<>

One row for every day of the range, with zeros on a day with nothing.

failureReasons*array<>

Why messages failed, most common first, up to five.

Example request

curl 'https://api.messageos.ai/v1/usage/summary?from=2026-10-01&to=2026-11-01' \  -H 'Authorization: Bearer mosc_...'

Example response

{  "from": "2026-10-01",  "to": "2026-11-01",  "timeZone": "UTC",  "totals": {    "sent": 40,    "delivered": 38,    "read": 21,    "failed": 1,    "optedOut": 2,    "optedIn": 1  },  "rates": {    "delivered": 0.95,    "read": 0.95,    "failed": 0.95  },  "days": [    {      "day": "2026-10-01",      "sent": 40,      "delivered": 38,      "read": 21,      "failed": 1,      "optedOut": 2,      "optedIn": 1    }  ],  "failureReasons": [    {      "reason": "The file could not be fetched",      "count": 1    }  ]}