Hi - There doesn’t seem to be a dedicated create metric endpoint. From what I can decipher from the documentation is that the “event” endpoint (https://a.klaviyo.com/api/events) is what is used to create a metric by passing the name at `data.attributes.metric.data.attributes.name`
From second hand info I believe this worked on our company’s main account, however my personal/test account doesn’t seem to be showing this new metric (or even event on the profile for that matter despite getting a 202 response)
Is this because it’s a free account or am I missing a something to get a custom metric recognized?
Solved
How do you create a new metric with the API?
Best answer by coldaussie
For anyone else that lands on this, my issue here was that I was using a “@example.com” email which is apparently quietly ignored in klaviyo (even for creating metrics) despite getting a 202/Success response
Reply
Rich Text Editor, editor1
Editor toolbars
Press ALT 0 for help
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.