Using the Beehiiv API, you can build a variety of applications, including:
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
beehiiv: {
type: "app",
app: "beehiiv",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.beehiiv.com/v1/publications`,
headers: {
"X-ApiKey": `${this.beehiiv.$auth.api_key}`,
},
})
},
})
Beehiiv uses API keys for authentication. When you connect your Beehiiv account, Pipedream securely stores the keys so you can easily authenticate to Beehiiv APIs in both code and no-code steps.
To retrieve your API key navigate to the "Integrations" section in your Beehiiv account.