User

This request generates a token for bearer authentication managing tha database.

Endpoints

  • GET /tokens/user

Header

Authorization

Basic {auth}

The {auth} is the auth code in the Basic Authentication format, username:password in base64 encoding

Response

A JSON object with the result

token {String} Valid token for a configuration session
userUUID {String} The ID of the authenticated user

Example request


 GET https://api.paramate.trinckle.com/tokens/user

 

Output


 HTTP / 1.1 200 OK
 {
    "token": "eyJhbGciOiJIUzI1N ... _zjtxYWKsiwYctvNNU",
    "userUUID": "dbab7dc0-a911-4497-8a65-3a6e1dd777d8"
 }