import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
peerdom: {
type: "app",
app: "peerdom",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.peerdom.app/v1/tenant`,
headers: {
"content-type": `application/json`,
"x-api-key": `${this.peerdom.$auth.api_key}`,
},
})
},
})
Peerdom uses API keys for authentication. When you connect your Peerdom account, Pipedream securely stores the keys so you can easily authenticate to Peerdom APIs in both code and no-code steps.