Verify Jwt Token

POST /Auth/Verify/Token

This process validates the JWT token sent in and returns information about it. Secret Hmac Required. Cache Time 1 Hour.

application/json

Body Required

  • Token string

    the jwt token returned from /Auth/Verify/Login

Responses

  • 200 application/json

    Token Details successfully returned

    Hide response attributes Show response attributes object
    • Expires number

      Seconds until the jwt token expires and login is valid. If expired, it returns negative seconds

    • FirstName string

      the First Name of the logged in user

    • LastName string

      the Last Name of the logged in user

    • Parent number

      Parent User Number

    • Custno number

      Customer User Number (frequently the same as parent)

    • LoginId number

      The current user Login Id

    • LoginIp string

      the Ip address of the logged in user

    • LoginTime DateTime

      the date/time logged in (YYYYMMDDHHMMSS)

    • PrevLogin DateTime

      the date/time previously logged in (YYYYMMDDHHMMSS)

POST /Auth/Verify/Token
curl \
 --request POST 'https://api.wrtm.io/v1.0/Auth/Verify/Token' \
 --header "X-ApiKey: $API_KEY" \
 --header "Authorization: X-apidate $ACCESS_TOKEN" \
 --header "Authorization: X-apihmac $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{"Token":"base 64 encoded stuffs"}'
Request examples
{
  "Token": "base 64 encoded stuffs"
}
Response examples (200)
{
  "Valid": 1,
  "Custno": 10028,
  "Logind": 1,
  "Parent": 10028,
  "LoginIp": "192.168.200.20",
  "Message": "Welcome Nick.  Your last login was 28 days ago",
  "LastName": "Doe",
  "FirstName": "John",
  "LoginTime": 20250101000000,
  "PrevLogin": 20240101000000
}