Postman collection

Postman is a popular tool that lets you build and test API requests.

After you install Postman, click the Run in Postman button to automatically import our collection of XML APIs into your Postman application. You can then begin using and modifying the example payloads to suit your needs. You can also save specific payloads to your application and easily submit them whenever needed.

Run in Postman

Update the operation Generate an Access Token with your Acoustic Campaign-created credentials to easily generate access tokens for API access to your organization.

Note: Remember to use your specific Pod number and data center before submitting it. For example, if your organization is on Pod 5 and your data center is based in the United States (us), your URL would like api-campaign-us-5.goacoustic.com .

Optional:

Our XML API collection comes with a Postman variable within the Authorization header in the form of {{access_token}}. You can certainly remove that place holder and paste in your newly generated access token from the response of the “Generate an Access Token” request each time access is needed. Or, you can choose to create an Environment variable within your Postman application that will store the value of your OAuth access token.

Additional information regarding Postman variables and environments can be found below:

If you do create an “access_token” Environment variable, simply navigate to the Generate an Access Token request, select the Test tab, and paste in the following JavaScript snippet:

let jsonData = pm.response.json();
pm.environment.set(“access_token”, jsonData.access_token);

Postman will now use the value of your access token for as long as the token remains active in every subsequent request you make within the application and without the need to copy and paste the token value each time.