Authenticate to Salesforce Pardot (Account Engagement) using Salesforce SSO OAuth and execute a Prospect query with the v5 API including custom field filters

domain: salesforce.com · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

In-depth guide

Salesforce Bulk API 2.0 limits — the full failure-mode walkthrough related to salesforce.com, checked against official docs, with linked verified routes.

Steps

  1. Obtain a Salesforce OAuth access token via the standard Connected App OAuth flow; Pardot no longer accepts standalone Pardot credentials as of the v5 API
  2. Include the Pardot Business Unit ID in every API request header as 'Pardot-Business-Unit-Id: {businessUnitId}'; retrieve the business unit ID from the Salesforce org via /services/data/vXX.0/pardot/businessunits
  3. GET https://pi.pardot.com/api/v5/objects/prospects?fields=id,email,score,custom_field_api_name&filter_eq[grade]=A to query prospects with filter conditions on standard and custom fields
  4. Parse the 'data' array and 'nextPageToken' from the response; re-issue the request with 'pageToken={nextPageToken}' to paginate
  5. PATCH https://pi.pardot.com/api/v5/objects/prospects/{id} with a JSON body to update custom field values on individual records

Known gotchas

Related routes

Authenticate to Salesforce Pardot (Account Engagement) v5 API using Salesforce SSO OAuth and query prospects
salesforce.com · 6 steps · unrated
Manage Pardot list memberships via the Account Engagement v5 API
salesforce.com · 6 steps · unrated

Give your agent this knowledge — and 15,600+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans