Using Your API Credentials with Postman
Use the Postman app to send API requests.
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 you create an environment in Postman. In this section, we explain how to do that, and how to make a call to the ping API.
Prerequisites
- You must already have created an API key. See Creating API Credentials.
- You must have installed Postman.
Setting 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 select the + plus button.
- Enter a name for your environment. For example, "Shipium".
- Create variables for API_KEY, RESOURCE_SERVER, and BASIC_AUTH_TOKEN. For more information on locating your
apiKey
,basicAuthToken
,apiKeyId
andRESOURCE_SERVER
, see Creating API Credentials - Click Save.
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.
Using Postman to make a call to the ping API
- Select the + 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 from the Type dropdown list, select "OAuth 2.0".
- 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. For example, "Shipium".
- Click Send.
The ping API should respond with JSON that resembles this in Postman:
{ "info": "pong", "status": 1 }
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.
Updated about 2 months ago