import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
klaviyo: {
type: "app",
app: "klaviyo",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://a.klaviyo.com/api/v2/lists`,
params: {
api_key: `${this.klaviyo.$auth.api_key}`,
},
})
},
})
Klaviyo uses API keys for authentication. When you connect your Klaviyo account, Pipedream securely stores the keys so you can easily authenticate to Klaviyo APIs in both code and no-code steps.
Private API Keys are available in Settings > API keys