Authenticate to Salesforce Pardot (Account Engagement) v5 API using Salesforce SSO OAuth and query prospects

domain: salesforce.com · 6 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. Pardot v5 uses Salesforce Identity for auth — obtain a Salesforce access token via the standard OAuth flow (authorization code or JWT Bearer) for the connected Salesforce org.
  2. Every Pardot v5 API request requires a Pardot-Business-Unit-Id header containing the 18-character Pardot business unit ID (found in Salesforce Setup > Account Engagement > Business Units).
  3. Set the base URL to https://pi.pardot.com/api/v5/; include Authorization: Bearer {salesforce_access_token} and Pardot-Business-Unit-Id: {buId} on every request.
  4. To query prospects: GET /api/v5/objects/prospects?fields=id,email,firstName,lastName&orderBy=updatedAt — use the 'fields' parameter to limit returned data.
  5. Paginate using the 'nextPageToken' field returned in the response when there are more results; pass it as the 'nextPageToken' query parameter on subsequent requests.
  6. To upsert a prospect, PATCH /api/v5/objects/prospects with the prospect's email as the match field using the 'matchBy' parameter.

Known gotchas

Related routes

Authenticate to Salesforce Pardot (Account Engagement) using Salesforce SSO OAuth and execute a Prospect query with the v5 API including custom field filters
salesforce.com · 5 steps · unrated
Manage Pardot list memberships via the Account Engagement v5 API
salesforce.com · 6 steps · unrated
Authenticate to Salesforce server-to-server using the JWT Bearer flow
developer.salesforce.com · 5 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