Schedule a meeting

Refresh User Token

Refresh User Token

Refresh an authentication token for a SkyPostal user using a valid refresh token.

URL

PROD https://api-amazon.skypostal.com

Endpoint

POST /api/RefreshUserToken

Request Credentials

Headers

grant_type

String - Required

Grant Type.

refresh_token

String - Required

Refresh Token.

user_key

String - Required

This is the User Key provided by Skypostal.

Headers

copaId

String - Required

This is the Copa Id provided by Skypostal.

The command should be run as in the following example:

 {
  "grant_type": "refresh_token",
  "refresh_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6...",
  "user_key": "xxxx-xxxx"
} 

The command will return the following format:

{
    "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
    "refresh_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
    "expires_in": 21600,
    "token_type": "Bearer"
}