Newer Version Available
Set Up Your Postman Workspace
To get started with Postman, fork the public Salesforce Developers collection and set
your variables.
| Available in: both Salesforce Classic (not available in all orgs) and Lightning Experience |
| Available in: Enterprise, Unlimited, and Developer Editions |
To work with this collection, you must have a Postman account that’s connected to Salesforce, meaning that the Salesforce Postman collection must be authorized to access your org. If you’re using Postman in a browser, you must also add the Postman URL patterns to your Cross-Origin Resource Sharing (CORS) allowlist. For instructions on completing these steps, see the Quick Start: Connect Postman to Salesforce Trailhead module.
-
If you haven’t already, fork the Salesforce Platform APIs collection from the public
Salesforce Developers workspace. By forking the collection, you can modify it on your
local workspace without changing the parent version.
- Open the Salesforce Developers workspace.
-
In Collections, select Salesforce Platform APIs, click
, and then select Create a
Fork.
- Name the fork, add it to your workspace, and click Fork Collection.
-
Reset the collection variables to use your own.
- Select the forked Salesforce Platform APIs collection in your workspace.
-
Select the Variables tab.
The variables here apply to the entire Salesforce Platform APIs collection, so only a few of them are relevant to this example. You can ignore the ones that aren’t.
- Replace the current value for url with your Experience Cloud site domain, such as MyExperienceCloudSite.my.site.com.
- Replace the current value for clientId with your external client app consumer key.
- Replace the current value for redirectUrl with https://MyExperienceCloudSite.my.site.com/services/oauth2/echo, where https://MyExperienceCloudSite.my.site.com is your Experience Cloud site domain. This value must match your external client app callback URL.
The variable list also contains a site variable, which you can use to store an Experience Cloud site suffix if your site has one. For this example implementation, we didn’t add a suffix, so leave this value blank. - To see the Headless Identity examples, expand the Salesforce Platform APIs collection, select Auth, and then select Headless Identity API Demo.