Hey, I'm trying to use a custom metric to trigger a flow from a third-party integration.
What I did is create a custom metric using the API, and then I created a flow and set its trigger to by the metric I created with the API.
And now I'm trying to trigger the flow using this API end point: Track Profile Activity (klaviyo.com)
but for some reason I get 0 as a response which means the request has failed.
here is the code for the request:
![](https://uploads-us-west-2.insided.com/klaviyo-en/attachment/5960a7ff-0490-4da2-9215-32be3fb6fdbe.png)