Get per-block metrics for automation SMS messages

One metrics row per automation SMS block id in ids, including credits. Numbers are all-time unless start_date or end_date is supplied. Dates are strict YYYY-MM-DD in America/Chicago, and only a supplied bound applies. A malformed or inverted range is a 400. revenue is present only when SMS revenue attribution is enabled. A block with no sends is a zero-filled row. Requires an SMS reporting permission and automations view access.

Query Params
date

First day of the window, strict YYYY-MM-DD. Left out, the window is open at the start.

date

Last day of the window, strict YYYY-MM-DD. Left out, the window is open at the end.

string

3-letter ISO currency for revenue. Without it revenue is 0. Ignored when SMS attribution is disabled.

Body Params

Automation SMS block ids to aggregate, including credits.

ids
array of integers
required

Automation SMS block ids (em_sms.id).

ids*
Responses

403

Forbidden: the user has no SMS reporting permission or cannot view automations.

Language
Credentials
Header
URL
LoadingLoading…
Response
Choose an example:
application/json