import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
ashby: {
type: "app",
app: "ashby",
}
},
async run({steps, $}) {
return await axios($, {
method: "post",
url: `https://api.ashbyhq.com/user.list`,
headers: {
"accept": `application/json; version=1`,
"content-type": `application/json`,
},
auth: {
username: `${this.ashby.$auth.api_key}`,
password: ``,
},
})
},
})
Ashby uses API keys for authentication. When you connect your Ashby account, Pipedream securely stores the keys so you can easily authenticate to Ashby APIs in both code and no-code steps.