Call it
curl https://api.peume.com/v1/call/update-salesforce-account-settings \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"accountId": "your accountId"
}
}'const res = await fetch("https://api.peume.com/v1/call/update-salesforce-account-settings", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"accountId": "your accountId"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/update-salesforce-account-settings",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"accountId": "your accountId"
}
},
)
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: update-salesforce-account-settings.
Parameters
accountIdRequiredstringsyncContactsbooleanCreate a Lead or Contact for an inbox contact that matches nobody by phone (any phone field) or email. A match is linked as it is and never updated.
logMessagesbooleanLog inbound and outbound inbox messages as one conversation Task per person, channel and day.
createAsstringWhat a person new to Salesforce is created as. Leads get Company `[not provided]`.
lead · contact
logDeliveryStatusbooleanMark sent WhatsApp, SMS and RCS messages in the transcript as sent, delivered, read, played or failed.
useOpportunitiesInResultsbooleanCount closed-won Opportunities as sales on the ad campaign named by their Primary Campaign Source, in campaign results and ad rules. Turning it on also fills in the Opportunities won in the last 90 days, never sent to the ad platforms. Lost or reopened Opportunities stop counting.
reportOpportunitiesToAdsbooleanSend each newly closed-won Opportunity once as a Purchase event (source `salesforce`, event id `salesforce_opp_{orgId}_{opportunityId}`) to the profile's event destinations, with the email and phone of its primary contact role, else the first Contact of its Account. Opportunities won before it was turned on are not sent.
