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