Authentication Documentation
Use your account credentials (username in lowercase) and tokens to manage your account programmatically. Access tokens expire after 24 hours, while Refresh tokens expire after 90 days. Use the login
endpoint to receive your tokens, then use token-refresh
and token-revoke
endpoints to manage them. Your account password can also be managed with the associated endpoints referenced in this document.
Login
Create new access, id, and refresh tokens with your valid username and password.
username
- string
password
- string
application/json{ "username": "admin", "password": "j8BDWYrQwDF5u4Yu" }
-
application/json
{ "id_token": "string", "access_token": "string", "refresh_token": "string", "expires_in": 300 }
-
application/json
{ "message": "string", "status": "integer" }
-
application/json
{ "message": "string", "status": "integer" }
-
application/json
{ "message": "string", "status": "integer" }
Refresh Token
Provides new access and id tokens with your valid username and refresh token.
username
- string
refresh_token
- string
application/json{ "username": "admin", "refresh_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9" }
-
application/json
{ "id_token": "string", "access_token": "string", "expires_in": 300 }
-
application/json
{ "message": "string", "status": "integer" }
-
application/json
{ "message": "string", "status": "integer" }
-
application/json
{ "message": "string", "status": "integer" }
Revoke Token
Revokes the associated access tokens with your valid refresh token.
refresh_token
- string
application/json{ "refresh_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9" }
-
application/json
{ "message": "string", "status": "integer" }
-
application/json
{ "message": "string", "status": "integer" }
Forgot Password
Sends a confirmation code via email. That code is then required to change user's password using /v1/forgot-password-confirm.
username
- string
application/json{ "username": "admin" }
-
application/json
{ "message": "string", "status": "integer" }
-
application/json
{ "message": "string", "status": "integer" }
-
application/json
{ "message": "string", "status": "integer" }
Forgot Password Confirmation
Changes user password with your valid username, confirmation_code sent to your email from previously hitting /v1/forgot-password endpoint, and new password.
username
- string
password
- string
confirmation_code
- string
application/json{ "username": "admin", "password": "j8BDWYrQwDF5u4Yu", "confirmation_code": "6MadrbRF" }
-
application/json
{ "message": "string", "status": "integer" }
-
application/json
{ "message": "string", "status": "integer" }
-
application/json
{ "message": "string", "status": "integer" }
Change Password
Changes user password with your valid access token, current password, and a new proposed password.
access_token
- string
previous_password
- string
proposed_password
- string
application/json{ "access_token": "sInR5cCI6IkpXVCJ9eyJhbGciOiJIUzI1NiI", "previous_password": "j8BDWYrQwDF5u4Yu", "proposed_password": "b2BDWZrQwDF5u4Yu" }
-
application/json
{ "message": "string", "status": "integer" }
-
application/json
{ "message": "string", "status": "integer" }
-
application/json
{ "message": "string", "status": "integer" }
New Password Required
Responds NEW_PASSWORD_REQUIRED
challenge by receiving username and session token and setting new password.
session
- string
username
- string
new_password
- string
application/json{ "session": "eyJhbGcisInR5cCI6IkOiJIUzI1NiIpXVCJ9", "username": "admin", "new_password": "b2BDWZrQwDF5u4Yu" }
-
application/json
{ "id_token": "string", "access_token": "string", "refresh_token": "string", "session": "string", "expires_in": 300 }
-
application/json
{ "message": "string", "status": "integer" }
-
application/json
{ "message": "string", "status": "integer" }
-
application/json
{ "message": "string", "status": "integer" }