Authentication

Log in

POST/api/auth/login

Authenticates a user with a username and password. Users with two-factor authentication receive a short-lived partial token to complete sign-in.

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