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