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