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