Trouble building custom connector for Klaviyo aggregated metrics endpoint

Summary

Difficulty in including parameters for more than 1 year of data in JSON request for Klaviyo custom connector


Question

Hey everyone,

I’m trying build a custom connector for Klaviyo <Use the Query Metric Aggregates endpoint metrics> endpoint. I need to get more than 1 year of data (the API is based on filtered start and end date, maximum one year) - these parameters needs to be in the JSON request, I have trouble doing it.

Anyone could help me on this ?

Thanks a lot !



This topic has been created from a Slack thread to give it more visibility.
It will be on Read-Only mode here. Click here if you want
to access the original thread.

Join the conversation on Slack

["custom-connector", "klaviyo", "aggregated-metrics", "json-request", "api"]

here’s what I did so far

when I test the API it says
"detail": "The maximum time range is 1 year but the provided range is 5 years",
so it’s definitely not filtering with the 1Y interval