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