Authentication & Authorization
Authentication
Request body parameters:
- Username: Login username
- Password: User password
- Otp: Time-based one time password generater from provided shared secret
Response:
- accessToken: Bearer access token user for authorization
- expiresIn: Access token expiry time in seconds
- refreshToken: Refresh token used to refresh an access token
- refreshTokenExpiresIn: Refresh token expiry time in secords
Possible validation messages:
- Required: Required field is missing
- Username_Or_Password_Incorrect: Invalid credentials
- Account_Not_Verified: Account is not permitted to use the API
- Account_Locked: Account locked for 10 minutes after too many failed attempts
- Account_Suppressed: Account is currently inactive
Authorizations
AuthorizationstringRequired
JWT Authorization header using the Bearer scheme.
Example: "Authorization: Bearer {token}"
Tokens can be generated using the /api/v1/public/auth/login endpoint.
Body
usernamestringRequired
passwordstring · passwordRequired
otpstringRequired
Responses
200
Success
application/json
400
Bad Request
application/json
post
/api/v1/public/auth/loginAuthorization
Header Key
Expected Value
Example
Last updated