Get automation metrics
Changed onReturns metrics for an individual automation as a series of counts, oldest first—the 0-index of any result is the oldest point in the window.
We recommend version 2. Send version=2. It accepts an explicit start, end, and res, reported in the tz you choose. Without it, the endpoint answers with version 1 behavior instead: a window built from period and steps, always in Eastern time.
Version 1 can't return fewer than 2 steps of any period. ?period=days&steps=1 means two days—the 48 hours before the request—and ?period=days&steps=0 returns the maximum for the period, the same as ?period=days&steps=45.
Request
- Base URLhttps://api.customer.io
- URLhttps://api.customer.io/v1/campaigns/{campaign_id}/metrics
- AuthHTTP bearer
Response
Returns automation metrics by series based on the parameters of the request.
Example response
{
"start": "2025-01-01 00:00:00 +0000 UTC",
"end": "2025-01-02 00:00:00 +0000 UTC",
"res": "days"
}Changes
- info
added the media type
application/jsonfor the response with the status
- info