import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
retool: {
type: "app",
app: "retool",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.retool.com/api/v1/resources`,
headers: {
Authorization: `Bearer ${this.retool.$auth.access_token}`,
"Accept": `application/json`,
},
})
},
})
Retool uses API keys for authentication. When you connect your Retool account, Pipedream securely stores the keys so you can easily authenticate to Retool APIs in both code and no-code steps.
Log in to your Retool account, and copy your Access Token from the Retool API settings under "Organizations" > "API" on the lefthand sidebar.