Enquiry Now

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.

Get in Touch

Avatar photo
Author

With over a decade of experience in eCommerce development services and CRM solutions, Mr. Virendra has helped businesses worldwide leverage technology to build, optimize, and transform their IT infrastructure and applications. An avid researcher, Mr. Virendra is recognized by his peers as a tech evangelist with a strong passion for emerging technologies and their potential to solve real-world business challenges. Discover how Team Virendra can help your business embrace modern technology, simplify operations, and drive greater productivity. Connect.

whatsapp