LMTLS
WebsiteTwitterTelegram
LMTLS Tech Summary
LMTLS Tech Summary
  • Authentication API
  • Chain API
    • API References
      • Net
      • ERC20 Token
      • ERC721 Token
      • ERC1155 Token
  • API Errors
Powered by GitBook
On this page

Authentication API

This document explains how to use Authentication APIs. Authentication APIs use HTTP POST protocol and send and receive messages in JSON format.

NextChain API

Last updated 1 year ago

Endpoint

Real Server :

Test Server :

API References

Authenticate

Log in using your ID and password.

  • userType is ignored. Currently it is not used.

  • You can authenticate through id and password.

  • If there is a token value, the token validity period can be extended.

  • If successful, you get a new JWT token. It also receives basic user information, such as user name, userId, telNo, and email.

Example

curl -X 'POST' \
  'https://test-auth.lmtls.io/v2/auth/auth-user' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "id": "hong",
  "password": "1111"
}'
{
  "token": "eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ0ZXN0Iiwicm9sZSI6IlJPTEVfVVNFUiIsImV4cCI6MTY2ODc3ODEwMCwidXNlciI6IjQ3MDA2MDM2NDRCNzAwMDQiLCJpYXQiOjE2NjYxODYxMDB9.QQ_J1KMG58wG5D4THOCoXHqQVNd2SQ8j...",
  "userId": "hong",
  "name": "Hong kil dong",
  "telNo": "010-1111-2222",
  "email": "hong@my.domain"
}
https://auth.lmtls.io/v2
https://test-auth.lmtls.io/v2
  • Endpoint
  • API References
  • Authenticate
  • POSTAuthenticate with ID and password

Authenticate with ID and password

post
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
400
Missing parameters
application/json
404
User not found
application/json
post
POST /auth/auth-user HTTP/1.1
Host: 
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"
}