With the Klaviyo API, you can build a variety of things, including:
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`,
headers: {
"Authorization": `Klaviyo-API-Key ${this.klaviyo.$auth.api_key}`,
"revision": `2022-10-17`,
},
})
},
})
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.