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 | |
---|---|
| String - Required Grant Type. |
| String - Required Refresh Token. |
| String - Required This is the User Key provided by Skypostal. |
Headers | |
---|---|
| 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"
}