With the Benchmark Email API, you can:
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
benchmark_email: {
type: "app",
app: "benchmark_email",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://clientapi.benchmarkemail.com/Client/ProfileDetails`,
headers: {
"AuthToken": `${this.benchmark_email.$auth.api_key}`,
"Content-Type": `application/json`,
},
})
},
})
Benchmark Email uses API keys for authentication. When you connect your Benchmark Email account, Pipedream securely stores the keys so you can easily authenticate to Benchmark Email APIs in both code and no-code steps.
Use your Admin API Token, found in the Integrations settings, of your Benchmark Email account.