Get attribution metrics for one or more Brevo campaigns or workflows
Retrieve aggregated ecommerce attribution metrics for one or more Brevo email campaigns, SMS campaigns, or automation workflows. You can optionally filter by a date range using periodFrom and periodTo in RFC3339 format. The response includes per-source metrics (orders count, revenue, and average basket) as well as aggregated totals across all requested sources.
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.
Query parameters
The email campaign ID(s) to get metrics for
The SMS campaign ID(s) to get metrics for
The automation workflow ID(s) to get email attribution metrics for
The automation workflow ID(s) to get SMS attribution metrics for