Skip to content

Get Access Token

Request

Each request to the Shipping 360 API requires authentication via an OAuth token. This API call generates the OAuth token based on the Base64-encoded value of the Client ID and Secret associated with your developer account. The token expires after 4 hours. Client ID is the The unique identifier assigned to the client application and Secret is a confidential string used to authenticate the client. These both are required to generate token. Use Client ID as User Name and Secret as Password for getting access token while trying out in security options.

Security
basicAuth
Headers
Content-Typestringrequired
Default:"application/json"
Example:application/json
curl -i -X POST \
  -u '<username>:<password>' \
  https://api-sandbox.sendpro360.pitneybowes.com/auth/api/v1/token \
  -H 'Content-Type: application/json'

Responses

The token has been generated successfully.

Bodyapplication/json
access_tokenstring
Example:"token"
expires_innumber
Example:14400
scopestring
Example:"psapi"
token_typestring
Example:"Bearer"
Response
{ "access_token": "token", "expires_in": 14400, "scope": "psapi", "token_type": "Bearer" }