Sign in with a JSON body and get a token
POST/signinBody
Checks a user name and password sent as JSON and returns a token. If the user must give a multi-factor code, send the returned token to the sign-in verification route to finish. This route is outside the /api/v1 path.
Permission required: No sign-in required.
Caution: The request carries a password and the response carries a token that grants access as the user; use HTTPS and store the token securely.
Request
Responses
- 200
- 400
- 401
The body is the token as a JSON string.
The user is not allowed to sign in with a password, or licensing blocks sign-in. The body is a message.
Credentials are wrong or empty, the database could not be reached, or an unexpected error occurred. The body is a message.