Get token

Fill ai-api-access-token, Referer in the http header. Referer should keep unchanged at any time

Request
query Parameters
refresh
string

get customer profile from cache or not

Request Body schema: application/json
account
required
string

Username/Login

password
required
string

Password in MD5 format

userType
required
string

Account type, can be client or employee

Enum: "client" "employee"
tokenExpire
string

Seconds that the token expected to expire, numbers only, must < 2592000(30 days)

Responses
200

Authorized token, token refresh key, token expire unix timestamp, customer/employee profile are returned

400

Invalid expire time format or Must be within 30 days

401

The Username and Password don't match.

403

AI API call token not present or invalid for login or wrong user type

post/auth/v2/token
Request samples
application/json
{
  • "account": "string",
  • "password": "string",
  • "userType": "client",
  • "tokenExpire": [
    ]
}
Response samples
application/json
{
  • "message": "string",
  • "content": { }
}