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