Public
Documentation Settings

UNAI API V1

authenticate

POSTgen new token with username/password

https://rtls.lailab.online/auth/gen_token

This endpoint is used to generate a token for authentication via HTTP POST request. The request should be sent to https://rtls.lailab.online/auth/gen_token with the following parameters in x-www-form-urlencoded format:

  • username (string): The username for authentication.

  • password (string): The password for authentication.

  • token_expire_time_in_minute (number): The expiration time for the generated token in minutes.

  • refresh_token_expire_time_in_minute (number): The expiration time for the refresh token in minutes.

The response of this request can be documented as a JSON schema.

json
{
    "access_token": string;
    "refresh_token": string;
}
Bodyurlencoded
username

[USERNAME]

USERNAME

password

[PASSWORD]

PASSWORD

token_expire_time_in_minute

60

refresh_token_expire_time_in_minute

60

POSTgen new token with refreshtoken

https://rtls.lailab.online/auth/refresh_token

Refresh Token

This endpoint allows the user to refresh the access token by providing a refresh token.

Request Body

  • refresh_token (string): The refresh token to be used for generating a new access token.

Response
The response will include the new access token along with its expiration time.

AUTHORIZATIONBearer Token
Token

<token>

Loading