salesforce_rest_api

integrations Write

Read and write the user's Salesforce org — leads, contacts, accounts, opportunities, campaigns, cases, and custom objects via the REST API

Endpoint

POST https://api.adspirer.ai/api/v1/tools/salesforce_rest_api/execute

Headers

Description

Read and write the user's Salesforce org — leads, contacts, accounts, opportunities, campaigns, cases, and custom objects via the REST API. Use this when the user asks about: - Leads, contacts, accounts, opportunities, campaigns, or cases - Pushing ad leads into Salesforce, or attributing pipeline back to ad spend - Running a SOQL query against their org - 'Create a lead from this form fill', 'which opportunities came from LinkedIn ads', 'show me open cases' This app exposes ~61 actions, so ALWAYS call `action: "list_tools"` first to get the exact action names and their parameters — do not guess a name. Note the action names are prefixed `salesforce_rest_api-`, not `salesforce-`. ⚠️ Some actions CREATE, UPDATE, or DELETE real records in the customer's CRM. Always confirm with the user before any write, and never delete a record unless they explicitly asked for that exact deletion. The user must have connected Salesforce in the Adspirer Connections tab. If not connected, this tool returns a connect link the user can click.

Request body

All tool arguments are wrapped in an arguments object.

FieldTypeDescription
actionstring required'list_tools': discover available actions for this app. 'execute': run a specific action by name. one of: list_tools, execute
tool_namestring optionalName of the Pipedream action to execute (required when action='execute'). Get exact names + parameters from action='list_tools' first.
argumentsobject optionalArguments object to pass to the action (required when action='execute').

Example request

{
  "arguments": {
    "action": "list_tools"
  }
}

Example responses

200 — Success

{
  "success": true,
  "data": {
    "text": "(tool-specific textual output for salesforce_rest_api)",
    "quota": {
      "used": 42,
      "limit": 150,
      "tier": "plus",
      "period_end": "2026-05-01"
    }
  },
  "tool": "salesforce_rest_api"
}

400 — Tool-level error (bad arguments / multi-account selection)

{
  "success": false,
  "error": "You have 25 meta_ads accounts connected. Please specify which account to use by passing the ad_account_id parameter:\n  - Acme Holdings (ad_account_id=\"act_123456789\")\n  - Acme EU (ad_account_id=\"act_987654321\")",
  "is_error": true,
  "tool": "salesforce_rest_api"
}

402 — Quota exhausted

{
  "success": false,
  "error": "\ud83d\udea8 Monthly limit reached (150/150 tool calls on Plus tier).\nUpgrade to Pro at https://adspirer.ai to keep building.",
  "is_error": true,
  "tool": "salesforce_rest_api",
  "quota": {
    "used": 150,
    "limit": 150,
    "tier": "plus",
    "period_end": "2026-05-01",
    "upgrade_url": "https://adspirer.ai"
  }
}

Try it live


Adspirer REST API — get an API key at adspirer.ai/keys · adspirer.ai