GET Messaging Stats​
Return time series for the Messaging report charts: one zero-filled, date-keyed object per requested metric. The bucket size (daily, weekly or monthly) follows the length of the date range, as in the email report charts.
opt_outs counts only inbound keyword opt-outs (such as a STOP reply). Opt-outs made from the inbox or a contact profile are not counted, because consent changes carry no timestamp.
Returns 404 when the Messaging module is off.
Required capability: fcrm_read_emails or fcrm_manage_emails — which one applies depends on the action being performed.
Enforced by CampaignPolicy::verifyRequest(), the policy default for this route group.
Requires: FluentCampaign Pro. Without it the route does not exist.
Authorizations​
WordPress Application Passwords — use Basic auth with your WordPress username and an application password in the format: username:application_password
Parameters​
Query Parameters
Date range as a two-element array [from, to] in YYYY-MM-DD format, read in the site timezone. Defaults to the last 30 days if omitted.
22Limit the figures to one messaging channel. Omit, or send an unknown value, for all channels.
"sms""whatsapp"Metrics to return. Unknown names are ignored; if none are left, all four are returned.
Responses​
One series per requested metric.