How to make API calls to SFMC from Postman?

How to make API calls to SFMC from Postman?

**EDIT 04/08/2021 ** – Updated to show implementation inside of new POSTman UI as well as set up utilizing the same environment and syntax used by the Salesforce provided API collection. API calls are one of the most powerful tools available to an SFMC user.

Why is it important to use API calls in SFMC?

API calls are one of the most powerful tools available to an SFMC user. It essentially allows you to make changes, perform actions, retrieve data and more all programmatically via an outside resource. Below I will give a quick overview on setting up an API integration package and then utilizing it in POSTman.

How to make a soap call to SFMC?

SOAP has Methods (declared inside of payload/body) as well as Objects that are to be utilized to determine action and result. This should then return a SOAP envelope with the requested fields shown above inside of it. See below image showing a response to the above call:

Which is a successful result of a caching request?

Common forms of caching entries are: Successful results of a retrieval request: a 200 (OK) response to a GET request containing a resource like HTML documents, images or files. Permanent redirects: a 301 (Moved Permanently) response. Error responses: a 404 (Not Found) result page. Incomplete results: a 206 (Partial Content) response.

How to run a data file in Postman?

Click Runner at bottom right of Postman. Select your collection, then click Select File next to Data on the right to select your data file. You will see an option to Preview the data in the file before starting the run. Click Run using data files to begin the run with the values from the file.

How do I start a collection in Postman?

When you initiate a collection run you will see an option to select a data file. Click Runner at bottom right of Postman. Select your collection, then click Select File next to Data on the right to select your data file. You will see an option to Preview the data in the file before starting the run.

Where do I enter my AUTH in a postman request?

Auth data can be included in the header, body, or as parameters to a request. If you enter your auth details in the Authorization tab, Postman will automatically populate the relevant parts of the request for your chosen auth type.

How can I Change my postman authorization type?

To change this for an individual request, make a different selection in the request Authorization tab. You can choose an authorization type upfront using the same technique when you first create a collection or folder. Postman will not attempt to send authorization details with a request unless you specify an auth type.

Do you need different Auth headers for Postman?

If you need different auth headers from those auto-generated by Postman, alter your setup in Authorization, or remove your auth setup and add headers manually. Your request auth can use environment, collection, and global variables.