UNAI API V1
authenticate
POSTgen new token with username/password
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.
POSTgen new token with refreshtoken
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.