Last Updated on July 26, 2022

Marketing Cloud is a B2C platform. It is a marketing automation and analytics tool that provides personalized customer engagement across every channel. This includes email, web, mobile, social, and advertising, and Marketing Cloud covers it all.

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

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

  • Identify installed packages
  • Request access token
  • Use an access token to hit other API

Step 1: Identify the Installed Packages

The installed package provides Client Secret, Client ID, REST Base URI and Authentication Base URI. To access the package details page, from Setup, enter installed packages in the quick search box, select Installed Packages, and click the name of the package you want to view.

Setup -> Quick search (enter installed package) -> Package Name

Check the below screenshot for more information. If you don’t find any existing installed package then you need to install the package in the org.

 install the package in the org.

Step 2: Request an access token

Add v2/token to the authentication base URI provided in the installed package. You must submit a POST request to the /v2/token route to get the access token. After 20 minutes, We can reuse the same access token. Check the below screenshot for reference.

Replace subdomain, client id, client secret, and middle as in the screenshot below with the installed package information from the previous step.

API URL = Authentication Base URL + ‘/V2/token’

Where Authentication URL = https://{{subdomain}}.auth.marketingcloudapis.com

Request an access token

Step 3: Use the access token from the second step to hit other APIs

Submit requests to other APIs using the second step’s access token. In the screenshot below, I have added the authorization header with the access token as the bearer.

Authorization: Bearer {{AccessToken}}

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

https://{{domain}}.rest.marketingcloudapis.com/asset/v2/content/assets?$page=1&$pagesize=10

 run the Marketing Cloud API using Postman.

By following the above instructions, you can run the Marketing Cloud API using Postman.

We hope this post gave you a brief idea of how to run Salesforce Marketing Cloud API using Postman. For professional Salesforce consulting get in touch with us.

Author

With a decade of experience in eCommerce technologies and CRM solutions, Virendra has been assisting businesses across the globe to harness the capabilities of information technology by developing, maintaining, and improving clients’ IT infrastructure and applications. A leader in his own rights his teammates see him as an avid researcher and a tech evangelist. To know how the team Virendra can assist your business to adopt modern technologies to simplify business processes and enhance productivity. Let’s Talk.