Authentication API
This document explains how to use Authentication APIs. Authentication APIs use HTTP POST protocol and send and receive messages in JSON format.
Endpoint
Real Server : https://auth.lmtls.io/v2
Test Server : https://test-auth.lmtls.io/v2
API References
Authenticate
Log in using your ID and password.
Body
userTypestringOptional
User type (store, employee, platform, customer, root)
idstringOptional
User ID
passwordstringOptional
User password
tokenstringOptional
JWT
Responses
200
Returns a JWT (JSON Web Token) for authentication
application/json
tokenstringOptional
JWT (JSON Web Token)
userIdstringOptional
namestringOptional
telNostringOptional
emailstringOptional
400
Missing parameters
application/json
404
User not found
application/json
post/auth/auth-user
POST /auth/auth-user HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 64
{
"userType": "text",
"id": "text",
"password": "text",
"token": "text"
}{
"token": "text",
"userId": "text",
"name": "text",
"telNo": "text",
"email": "text"
}userTypeis ignored. Currently it is not used.You can authenticate through
idandpassword.If there is a
tokenvalue, the token validity period can be extended.If successful, you get a new JWT
token. It also receives basic user information, such as username,userId,telNo, andemail.
Example
Last updated