Exchange username + password for a bearer JWT
Changed onRequest
- Base URL: / (relative, and the document was published on a file host, not at the API’s origin)
- URL: /api/v1/auth/login
- Auth: none declared
Request body
Example request
{
"password": "S3cure-pass",
"username": "li.wei"
}Response
Login succeeded; returns JWT and current user.
Example response
{
"expiresAt": "2026-06-28T09:25:00Z",
"jwt": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJsaS53ZWkifQ.sig",
"tenantRoles": [
{
"roleName": "admin",
"tenantName": "team-vision"
},
{
"roleName": "member",
"tenantName": "team-nlp"
}
],
"user": {
"createdAt": "2026-06-20T08:00:00Z",
"disabled": false,
"displayName": "Li Wei",
"email": "li.wei@axisml.io",
"id": "3a2b1c0d-4e5f-6789-abcd-ef0123456789",
"mustChangePassword": false,
"updatedAt": "2026-06-28T09:30:00Z",
"username": "li.wei"
}
}Changes
- breaking
the
//response's property type changed fromstringto no type for status - breaking
the
response's property type changed fromobjectto no type for status - breaking
removed the required property
/from the response with the status - breaking
removed the required property
/from the response with the status - breaking
removed the required property
/from the response with the status - breaking
removed the required property
/from the response with the status - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - info
added to the
//response propertyallOflist for the response status - info
added to the
response propertyallOflist for the response status - info
removed the
system-adminenum value from the//response property for the response status - info
removed the
tenant-adminenum value from the//response property for the response status - info
removed the
userenum value from the//response property for the response status
- breaking