Use Your API Credentials with Postman
Use the Postman app to send API requests.
About using your API credentials with Postman
You can use the Postman app to send API requests to Shipium's APIs.
You must pass your API key as a Base64-encoded value. To make things easier, we recommend that you create an environment in Postman. This document explains how to do that, and how to make a call to the ping API.
Prerequisites
- You must already have created an API key. You can find instructions for doing so in Create API Credentials.
- You must have installed Postman.
Set up an environment file in Postman
What is an environment in Postman?
An environment is a set of variables you can use in your Postman requests.
For more information, see Managing Environments in the Postman user guide.
To create a new environment in the Postman application:
- Select Environments on the left, and then the + plus button.
- Enter a name for your environment (e.g., Shipium).
- Create variables for API_KEY, RESOURCE_SERVER, and BASIC_AUTH_TOKEN. For more information on locating your
apiKey
,basicAuthToken
,apiKeyId
andRESOURCE_SERVER
, see Create API Credentials. - Click Save.
![shipium-postman-env.png](https://files.readme.io/4103fae-shipium-postman-env.png)
Postman data entry requirement
Postman requires you to enter initial and current values for the variables file. By default, Postman will automatically copy the initial value into the current value field.
Use Postman to make a call to the ping API
![shipium-postman-1.png](https://files.readme.io/1bf2535-shipium-postman-1.png)
- Select the + plus button (near the top of Postman) to open a new tab.
- Enter
{{RESOURCE_SERVER}}/api/v1/deliveryexperience/ping
for the request URL. - Click the Authorization tab, and select OAuth 2.0 from the Type dropdown list.
- From the Access Token dropdown list, select Available tokens.
- In the field below Available tokens, enter
{{BASIC_AUTH_TOKEN}}
. - Under Header Prefix, enter Basic.
- From the Environment dropdown list (located near the top right of Postman), select the environment you created (e.g., Shipium).
- Click Send.
The ping API should respond with JavaScript Object Notation (JSON) that resembles this in Postman:
{ "info": "pong", "status": 1 }
![shipium-postman-result.png](https://files.readme.io/f6135d5-shipium-postman-result.png)
Use this pattern for all API calls
The example above for ping applies to all API key access of Shipium APIs.
More information on the API responses
As with all Shipium API responses, this API follows the API Response Codes standards unless otherwise specified.
Resources
Your Shipium team member is available to help along the way. However, you might find these resources helpful:
Updated 3 months ago