v1

latestOpenAPI 3.0.02026-08-0622087.9 KB
AI

AI Login Authentication using User ID

Generate JWT token using only the user's ID.

post/api/jwt-token-generate

Request body

user_idinteger required

Example request

{
  "user_id": 111
}

Response

Successful login

access_tokenstring
token_typestring
expires_ininteger
has_ai_accesboolean
app_urlstring

Example response

{
  "access_token": "eyJ0eXAiOiJKV1QiLCJhb...",
  "token_type": "bearer",
  "expires_in": 7200,
  "has_ai_acces": true,
  "app_url": "http://localhost"
}