With the Mercury API, you can build:
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
mercury: {
type: "app",
app: "mercury",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://backend.mercury.co/api/v1/accounts`,
headers: {
Authorization: `Bearer ${this.mercury.$auth.api_key}`,
},
})
},
})
Mercury uses API keys for authentication. When you connect your Mercury account, Pipedream securely stores the keys so you can easily authenticate to Mercury APIs in both code and no-code steps.
In order to get Mercury's API key, log into your Mercury account and go to the Settings page to generate a new one.