{"id":30089,"date":"2022-06-12T05:55:00","date_gmt":"2022-06-12T05:55:00","guid":{"rendered":"https:\/\/www.emizentech.com\/blog\/?p=30089"},"modified":"2022-07-26T10:16:01","modified_gmt":"2022-07-26T10:16:01","slug":"salesforce-marketing-cloud-api-using-postman","status":"publish","type":"post","link":"https:\/\/multisitelocal.ezxdemo.com\/blog\/salesforce-marketing-cloud-api-using-postman.html","title":{"rendered":"Explore the Salesforce Marketing Cloud API using Postman"},"content":{"rendered":"\n<p>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.<\/p>\n\n\n\n<p><a href=\"https:\/\/multisitelocal.ezxdemo.com\/blog\/salesforce-marketing-cloud.html\">Salesforce Marketing Cloud<\/a> 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.<\/p>\n\n\n\n<p>Follow the three easy steps below to get started with the world of Salesforce Marketing Cloud API.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Identify installed packages<\/li><li>Request access token<\/li><li>Use an access token to hit other API<\/li><\/ul>\n\n\n\n<p><strong>Step 1: Identify the Installed Packages<\/strong><\/p>\n\n\n\n<p>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.<\/p>\n\n\n\n<p><strong>Setup -&gt; Quick search (enter installed package) -&gt; Package Name<\/strong><\/p>\n\n\n\n<p>Check the below screenshot for more information. If you don\u2019t find any existing installed package then you need to install the package in the org.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"501\" src=\"https:\/\/multisitelocal.ezxdemo.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/06\/image1-1024x501.png\" alt=\" install the package in the org.\" class=\"wp-image-30091\" srcset=\"https:\/\/multisitelocal.ezxdemo.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/06\/image1-1024x501.png 1024w, https:\/\/multisitelocal.ezxdemo.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/06\/image1-300x147.png 300w, https:\/\/multisitelocal.ezxdemo.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/06\/image1-768x376.png 768w, https:\/\/multisitelocal.ezxdemo.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/06\/image1-1536x752.png 1536w, https:\/\/multisitelocal.ezxdemo.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/06\/image1.png 1656w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><strong>Step 2: Request an access token<\/strong><\/p>\n\n\n\n<p>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.<\/p>\n\n\n\n<p>Replace subdomain, client id, client secret, and middle as in the screenshot below with the installed package information from the previous step.<\/p>\n\n\n\n<p>API URL = Authentication Base URL + \u2018\/V2\/token\u2019<\/p>\n\n\n\n<p>Where Authentication URL = https:\/\/{{subdomain}}.auth.marketingcloudapis.com<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"601\" src=\"https:\/\/multisitelocal.ezxdemo.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/06\/image3-1024x601.png\" alt=\"Request an access token\" class=\"wp-image-30093\" srcset=\"https:\/\/multisitelocal.ezxdemo.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/06\/image3-1024x601.png 1024w, https:\/\/multisitelocal.ezxdemo.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/06\/image3-300x176.png 300w, https:\/\/multisitelocal.ezxdemo.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/06\/image3-768x451.png 768w, https:\/\/multisitelocal.ezxdemo.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/06\/image3.png 1357w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><strong>Step 3: Use the access token from the second step to hit other APIs<\/strong><\/p>\n\n\n\n<p>Submit requests to other APIs using the second step&#8217;s access token. In the screenshot below, I have added the authorization header with the access token as the bearer.<\/p>\n\n\n\n<p>Authorization: Bearer {{AccessToken}}<\/p>\n\n\n\n<p>This will return all the properties. We can filter the response by adding query parameters at the end of the API URL.<\/p>\n\n\n\n<p>https:\/\/{{domain}}.rest.marketingcloudapis.com\/asset\/v2\/content\/assets?$page=1&#038;$pagesize=10<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"689\" src=\"https:\/\/multisitelocal.ezxdemo.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/06\/image2-1024x689.png\" alt=\" run the Marketing Cloud API using Postman.\" class=\"wp-image-30092\" srcset=\"https:\/\/multisitelocal.ezxdemo.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/06\/image2-1024x689.png 1024w, https:\/\/multisitelocal.ezxdemo.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/06\/image2-300x202.png 300w, https:\/\/multisitelocal.ezxdemo.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/06\/image2-768x517.png 768w, https:\/\/multisitelocal.ezxdemo.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/06\/image2.png 1267w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>By following the above instructions, you can run the Marketing Cloud API using Postman.<\/p>\n\n\n\n<p>We hope this post gave you a brief idea of how to run Salesforce Marketing Cloud API using Postman. For <a href=\"https:\/\/multisitelocal.ezxdemo.com\/salesforce-consulting.html\">professional Salesforce consulting<\/a> get in touch with us.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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<\/p>\n","protected":false},"author":39,"featured_media":30094,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"MSN_Categories":"Uncategorized","MSN_Publish_Option":false,"MSN_Is_Local_News":false,"MSN_Is_AIAC_Included":"Empty","MSN_Location":"[]","MSN_Add_Feature_Img_On_Top_Of_Post":false,"MSN_Has_Custom_Author":false,"MSN_Custom_Author":"","MSN_Has_Custom_Canonical_Url":false,"MSN_Custom_Canonical_Url":"","_lmt_disableupdate":"no","_lmt_disable":"no","footnotes":""},"categories":[87],"tags":[],"class_list":{"0":"post-30089","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-salesforce-development"},"modified_by":"Marketing EmizenTech","featured_image_src":"https:\/\/multisitelocal.ezxdemo.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/06\/Explore-the-Salesforce-Marketing-Cloud-API-using-Postman--600x400.jpg","featured_image_src_square":"https:\/\/multisitelocal.ezxdemo.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/06\/Explore-the-Salesforce-Marketing-Cloud-API-using-Postman--600x600.jpg","author_info":{"display_name":"Virendra Sharma","author_link":"https:\/\/multisitelocal.ezxdemo.com\/blog\/author\/salesforce"},"_links":{"self":[{"href":"https:\/\/multisitelocal.ezxdemo.com\/blog\/wp-json\/wp\/v2\/posts\/30089","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/multisitelocal.ezxdemo.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/multisitelocal.ezxdemo.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/multisitelocal.ezxdemo.com\/blog\/wp-json\/wp\/v2\/users\/39"}],"replies":[{"embeddable":true,"href":"https:\/\/multisitelocal.ezxdemo.com\/blog\/wp-json\/wp\/v2\/comments?post=30089"}],"version-history":[{"count":0,"href":"https:\/\/multisitelocal.ezxdemo.com\/blog\/wp-json\/wp\/v2\/posts\/30089\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/multisitelocal.ezxdemo.com\/blog\/wp-json\/wp\/v2\/media\/30094"}],"wp:attachment":[{"href":"https:\/\/multisitelocal.ezxdemo.com\/blog\/wp-json\/wp\/v2\/media?parent=30089"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/multisitelocal.ezxdemo.com\/blog\/wp-json\/wp\/v2\/categories?post=30089"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/multisitelocal.ezxdemo.com\/blog\/wp-json\/wp\/v2\/tags?post=30089"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}