import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
needle: {
type: "app",
app: "needle",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://needle-ai.com/api/v1/collections`,
headers: {
"accept": `application/json`,
"x-api-key": `${this.needle.$auth.api_key}`,
},
})
},
})
Search a collection for relevant data chunks based on a query. See the documentation
Needle uses API keys for authentication. When you connect your Needle account, Pipedream securely stores the keys so you can easily authenticate to Needle APIs in both code and no-code steps.