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