Report metrics
This endpoint helps you report metrics from channels that aren't native to Customer.io or don't rely on our SDKs. When we deliver a message, we include a CIO-Delivery-ID header. This is the delivery_id in the payload. You can use it as a UTL and you can pass it as a UTM parameter in links, etc to track metrics when people click, convert, etc.
The base properties shared across multiple metric types.
- Type: stringdelivery
_id requiredThe CIO-Delivery-ID from the notification that you want to associate the
eventwith. - Type: string enummetricrequired
The email metric you want to report back to Customer.io.
values- bounced
- clicked
- converted
- deferred
- delivered
- dropped
- opened
- spammed
- Type: stringhref
For
clickedmetrics, this is the link the recipient clicked. - Type: stringreason
For metrics indicating a failure (like
bounced), this field provides the reason for the failure. - Type: stringrecipient
The email of the person who received the message.
- Type: integer Format: unix timestamptimestamp
The unix timestamp when the event occurred.
- 200
The request was received.
{
"delivery_id": "RPILAgUBcRhIBqSfeiIwdIYJKxTY",
"metric": "bounced",
"href": "",
"reason": "",
"recipient": "",
"timestamp": 1613063089
}
The request was received.