PeumeAPI

Social publishing & inbox

Update Salesforce account settings

Turn person creation, conversation logging, delivery marks or closed-won Opportunities (in ad results, to ad platforms) on or off for a connected Salesforce org, or choose whether new people become Leads or Contacts. Send at least one field; omitted fields keep their value. Settings survive reconnecting the same org.

$0.002 per callRuns on an account you connect

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"
  }
}'

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

accountIdRequiredstring
syncContactsboolean

Create 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.

logMessagesboolean

Log inbound and outbound inbox messages as one conversation Task per person, channel and day.

createAsstring

What a person new to Salesforce is created as. Leads get Company `[not provided]`.

lead · contact

logDeliveryStatusboolean

Mark sent WhatsApp, SMS and RCS messages in the transcript as sent, delivered, read, played or failed.

useOpportunitiesInResultsboolean

Count 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.

reportOpportunitiesToAdsboolean

Send 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.

Start free · $1 of calls included

Every API your business needs. One key.

7,000+ data and AI APIs behind one key, with backup sources built in.