Get the metrics of an automation workflow
Returns the performance of one automation workflow over a date range: how many contacts started, finished or were suspended, how many are in it now, its conversions, and its message metrics per channel (email, SMS, WhatsApp, push). With include=steps, it also returns the contact count of every step and the message metrics of each message step.
Give either date_range, or from_date and to_date together, or neither for all the data since the workflow was created. A metric that a channel does not report is null, never 0. Rates are fractions between 0 and 1, rounded to 4 decimals, and null when their denominator is 0.
Authentication
The API key should be passed in the request headers as api-key for authentication.
OAuth 2.0 client_credentials (machine-to-machine) grant. Exchange your app’s client_id/client_secret for a short-lived Bearer token.
Path parameters
Query parameters
A preset date range ending now. Cannot be combined with from_date or to_date.
Start of a custom date range, YYYY-MM-DD or YYYY-MM-DDThh:mm:ssZ. Required with to_date, and before it.
End of a custom date range, YYYY-MM-DD or YYYY-MM-DDThh:mm:ssZ. Required with from_date.
steps adds the steps array to the response.
Response
Contacts over the date range, except active_now, which is a snapshot
Conversion events attributed to the workflow’s message steps, each summed over the steps. null when the workflow has no conversion data, or conversion tracking is not enabled for the account.
Message metrics summed per channel, keyed by channel (email, sms, whatsapp, push). Only the channels the workflow sends through are present.
Only with include=steps. Every step of the workflow, in order.