Call it
curl https://api.peume.com/v1/call/connect-an-impact-program \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"accountSid": "your accountSid",
"authToken": "your authToken",
"programId": "your programId",
"eventTypeId": "your eventTypeId"
}
}'const res = await fetch("https://api.peume.com/v1/call/connect-an-impact-program", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"accountSid": "your accountSid",
"authToken": "your authToken",
"programId": "your programId",
"eventTypeId": "your eventTypeId"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/connect-an-impact-program",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"accountSid": "your accountSid",
"authToken": "your authToken",
"programId": "your programId",
"eventTypeId": "your eventTypeId"
}
},
)
print(res.json()["output"])Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: connect-an-impact-program.
Parameters
accountSidRequiredstringAccount SID, starting with IR.
authTokenRequiredstringAuth Token of the same access token.
programIdRequiredstringNumeric program (campaign) id.
eventTypeIdRequiredstringNumeric event type id (ActionTrackerId), from Settings, Event Types.
namestringOptional display name for the account.
statestringOptional state passthrough for the connect flow.
redirect_urlstringOptional URL to redirect to after a successful connection, echoed back as redirectUrl.
