How Can I Access My API Key in a Connected Account to Create a Http Get Request in WISE Payments?

This topic was automatically generated from Slack. You can find the original thread here.

I have a connected account with my api key for WISE payments. I’m in the middle of going through the process of transfering money, but there is a missing a standard Pipedream action. I just want to create a simple http get request, but I can’t figure out how to access my api key in a connected account. Is there a param for getting credentials from a connected account?

I can create another env variable in the workflow with the api key, but would prefer to reuse the key from the connected account if possible

You just need to add an app prop.

And then you can access your credentials in this.app.$auth.

Something like this:

export default defineComponent({
  props: {
    tableau: {
      type: "app",
      app: "tableau",
    },
  },
  async run({ steps, $ }) {

But replace tableau with your app name.

right, so i couldn’t use the standard http request step, but a custom code step

Yup exactly, you can add that code in your code step, and it will add a prop to the step.

perfect… thanks!

And then you can click this button to refresh the fields:

image.png

It should become enabled when you make changes to the props.

got it

you can also use the HTTP action with built-in auth! https://pipedream.com/docs/connected-accounts#from-the-http-request-action

Full details are here: Component API Reference - Pipedream

For anyone else reading this thread, here’s the docs that describe how to connect any account to any API endpoint using:

The HTTP request builder
Node.js code
Python code

Haha what a flurry of answers here :slightly_smiling_face: love it

Oh and don’t forget the ability to just ask AI to generate the code for you: