Skip to main content
This endpoint validates an email and password combination and returns a signed JWT on success. Pass the returned jwt_token value in the X-OTAS-USER-TOKEN header for any endpoint that requires authentication. No prior authentication is needed to call this endpoint.
The request body accepts either password or Password (capital P) for the password field. Both keys are checked; Password takes precedence if both are present.

Request

Method: POST
URL: http://localhost:8000/api/user/v1/login/
Authentication: None

Body parameters

string
required
The registered email address. Matched case-insensitively.
string
required
Account password. Also accepted as Password (capital P).

Response

integer
required
1 on success, 0 on failure.
string
required
login_success on success, login_failed on failure.
object
Present only on a successful login.

Example

Error responses