认证

登录

POST/api/auth/login

使用用户名和密码认证用户。启用双因素身份验证的用户会收到短期部分令牌以完成登录。

Request body

NameTypeDescription
passwordrequiredstringUmami password.
usernamerequiredstringUmami username.
Example request

Responses

200Authenticated successfully.
NameTypeDescription
anyOfanyOf
200 example
400Bad request.
NameTypeDescription
errorrequiredobjectError details returned when the operation fails.
400 example
401Unauthorized.
NameTypeDescription
errorrequiredobjectError details returned when the operation fails.
401 example
503Service unavailable.
NameTypeDescription
errorrequiredobjectError details returned when the operation fails.
503 example

Code samples

cURL