import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
api2convert: {
type: "app",
app: "api2convert",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.api2convert.com/v2/contracts`,
headers: {
"x-oc-api-key": `${this.api2convert.$auth.api_key}`,
},
})
},
})
Api2Convert uses API keys for authentication. When you connect your Api2Convert account, Pipedream securely stores the keys so you can easily authenticate to Api2Convert APIs in both code and no-code steps.