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