The all-in-one online business platform that gives you every marketing & sales tool you need to grow your business profitably & more 📈
Go to siteimport { axios } from "@pipedream/platform"
export default defineComponent({
props: {
kartra: {
type: "app",
app: "kartra",
}
},
async run({steps, $}) {
const data = {
"app_id": `${this.kartra.$auth.app_id}`,
"api_key": `${this.kartra.$auth.api_key}`,
"api_password": `${this.kartra.$auth.api_password}`,
"lead": {
"email": "enter_an_email_here"
},
"actions": [
{
"cmd": "search_lead"
}
],
}
return await axios($, {
method: "post",
url: `https://app.kartra.com/api`,
headers: {
"Content-Type": `application/x-www-form-urlencoded`,
},
data,
})
},
})
Kartra uses API keys for authentication. When you connect your Kartra account, Pipedream securely stores the keys so you can easily authenticate to Kartra APIs in both code and no-code steps.
To retrieve your App ID,
To retrieve your API Keys,