import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
rocketadmin: {
type: "app",
app: "rocketadmin",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://app.rocketadmin.com/api/check/apikey`,
headers: {
"x-api-key": `${this.rocketadmin.$auth.api_key}`,
},
})
},
})
Rocketadmin uses API keys for authentication. When you connect your Rocketadmin account, Pipedream securely stores the keys so you can easily authenticate to Rocketadmin APIs in both code and no-code steps.