Schedule a meeting

User Login

Login

Authenticate a user in the SkyPostal application by providing the username, password, and copa_id in the request.

URL

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

Endpoint

POST /api/LoginUser

Request Credentials

Parameters

grant_type

String - Required

Grant Type.

username

String - Required

This is the User Name provided by Skypostal.

password

String - Required

This is the Password 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": "password",
  "username": "xxxxxx",
  "password": "oq2wPm...."
}

The command will return the following format:

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