Authenticate to Salesforce server-to-server using the JWT Bearer flow

domain: developer.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 developer.salesforce.com, checked against official docs, with linked verified routes.

Steps

  1. Generate an RSA key pair and upload the certificate to your Salesforce Connected App's digital signature field
  2. Build a JWT with iss set to the Connected App consumer key, sub to the Salesforce username, aud to the login URL, and exp to a short expiry (under 3 minutes)
  3. Sign the JWT with your private RSA key using RS256
  4. POST to /services/oauth2/token with grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer and assertion={signed_jwt}
  5. Extract the access_token and instance_url from the JSON response for use in subsequent API calls

Known gotchas

Related routes

Obtain a Salesforce Marketing Cloud REST API access token using the TSSD-based /v2/token endpoint
salesforce.com · 6 steps · unrated
Authenticate to the Dayforce Web Services API using the password grant flow and retrieve employee HR data via the RESTful Employee HR Data endpoint.
help.dayforce.com · 6 steps · unrated
Authenticate to the LineLeader Enroll API using JWT plus refresh-token flow for a long-running integration
apidocs.childcarecrm.com · 5 steps · unrated

Give your agent this knowledge — and 15,500+ 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