Authentication APIs
Below is a comprehensive list of authentication-related APIs that serve various purposes such as user login, password reset requests, and two-factor authentication validation for your specified token.
auth/login
POST
Utilize this API to initiate an authentication process for any user account within the cluster.
Key | Type | Example |
---|---|---|
username | string |
"joe" |
password | string |
"*********" |
auth/mobile/request
POST
If a token is unverified, you can request a 2FA SMS code using this API. This request is automatically triggered when the user's default 2FA method is configured as mobile.
Key | Type | Example |
---|---|---|
access_token | string |
"1Z1105da2bac3190b757792066e83f6f3aZ0efa92ae3aebdd6079fa2f328f4dfe2a" |
auth/mobile/verify
POST
If a token is unverified, you can validate it by utilizing this API with the user-provided 2FA token.
Key | Type | Example |
---|---|---|
access_token | string |
"1Z1105da2bac3190b757792066e83f6f3aZ0efa92ae3aebdd6079fa2f328f4dfe2a" |
token | string |
"48 01 94" |
auth/otp/verify
POST
If a token is unverified, you can validate it by utilizing this API with the user-provided 2FA token.
Key | Type | Example |
---|---|---|
access_token | string |
"1Z1105da2bac3190b757792066e83f6f3aZ0efa92ae3aebdd6079fa2f328f4dfe2a" |
token | string |
"25890226bfe4de7952bcc8f4268efb14" |
auth/totp/verify
POST
If a token is unverified, you can validate it by utilizing this API with the user-provided 2FA token.
Key | Type | Example |
---|---|---|
access_token | string |
"1Z1105da2bac3190b757792066e83f6f3aZ0efa92ae3aebdd6079fa2f328f4dfe2a" |
token | string |
"692849" |
auth/logout
POST
With this API you can invalidate the current token and logout the user.
Key | Type | Example |
---|---|---|
authorization | string |
"Bearer 1Z1105da2bac3190b757792066e83f6f3aZ0efa92ae3aebdd6079fa2f328f4dfe2a" |