import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
dappier: {
type: "app",
app: "dappier",
}
},
async run({steps, $}) {
const data = {
"query": `What is an MCP server?`,
}
return await axios($, {
method: "post",
url: `https://api.dappier.com/app/aimodel/am_01j06ytn18ejftedz6dyhz2b15`,
headers: {
Authorization: `Bearer ${this.dappier.$auth.api_key}`,
},
data,
})
},
})
Dappier uses API keys for authentication. When you connect your Dappier account, Pipedream securely stores the keys so you can easily authenticate to Dappier APIs in both code and no-code steps.