Skip to main content


Get started with Salesforce Marketing Cloud API using POSTMAN

Salesforce Marketing Cloud API

Marketing Cloud is a B2C platform. It is a Marketing Automation and Analytic tool which delivers personalized customer engagement on every channel. It covers email, web, mobile, social, and advertising, and Marketing Cloud covers it all.

Salesforce Marketing Cloud allows most of the functionality available through API. All the possible things you can achieve through Marketing Cloud Platform can be achievable through the Marketing Cloud API. We can either use SOAP or REST API based on our requirements.

Follow the below three easy steps to get started with the world of Salesforce Marketing Cloud API.

  1. Identify Installed Package
  2. Request the Access Token
  3. Use Access Token to hit other API

Step 1: Identify Installed Package

The installed package provides Client ID, Client Secret, Authentication Base URI, and REST Base URI. To access the package detail page, from Setup, enter Installed Packages in the Quick Find box, select Installed Packages, and click the package’s name that you want to view.

Setup –> Quick Find (Enter Installed Package) –> Package Name

Check the below screenshot for more information. Create a newly installed package if you don’t find any existing installed package

Installed Packages

Step 2: Request the Access Token

Append v2/token to the Authentication Base URI provided in the Installed Package. You need to submit a POST request to /v2/token route to get the Access Token. We can reuse the same access token for 20 minutes. Check the below screenshot for reference.

Replace the subdomain, clientId, clientSecrect, mid in the below screenshot with the installed package information from the previous step.

API URL = Authentication Base URL + ‘/V2/token’
Where Authentication URL = https://{{subdomain}}

Request Sfmc Token

Step 3: Use Access Token from the second step to hit other API

Use the access token from the second step to submit the request to another API. In the below screenshot, I have added the Authorization Header as Bearer with Access token.

Authorization: Bearer {{AccessToken}}

This will return all assets. We can filter the response by adding query params at the end of the API URL.


Request Asset


Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Vishal Chaware

Vishal Chaware is Senior Technical Consultant at Perficient. He is a certified Marketing Cloud Developer with experience in Marketing Cloud API.

More from this Author

Follow Us