PeumeAPI

Social publishing & inbox

Get Salesforce OAuth connect URL

Initiates OAuth (authorization code with PKCE) for a Salesforce org. Salesforce is a connect-only CRM platform: inbox contacts are matched to Contacts and Leads, and each day of conversation is logged as a Task.

$0.002 per callRuns on an account you connect

Call it

curl https://api.peume.com/v1/call/get-salesforce-oauth-connect-url \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "environment": "production"
  }
}'

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: get-salesforce-oauth-connect-url.

Parameters

environmentstring

Sign in at login.salesforce.com (`production`, also Developer Edition orgs) or test.salesforce.com (`sandbox`).

production · sandbox

Example: production

redirect_urlstring

Custom redirect after connection. Must be an absolute http(s) URL or custom app scheme such as `myapp://callback`; relative and unsafe URLs return 400.

reconnectAccountIdstring

The Salesforce org connection being reconnected. In a workspace with no billing set up, the connect is allowed only when it returns to that same org.

Start free · $1 of calls included

Every API your product needs. One key.

7,267 endpoints, one bill, and you only pay for calls that work.