import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
nocodb: {
type: "app",
app: "nocodb",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.nocodb.$auth.domain}/user/me`,
headers: {
"accept": `application/json`,
"xc-auth": `${this.nocodb.$auth.api_key}`,
},
})
},
})
nocodb uses API keys for authentication. When you connect your nocodb account, Pipedream securely stores the keys so you can easily authenticate to nocodb APIs in both code and no-code steps.
Your API key
can be found in API Tokens Management within your database.
Your domain
is where you app is hosted, so for https://mytable.com
use mytable.com
for the domain.