POST v1/Users/Login
Logs a user in
Parameters
Name | Description | Type | Additional information |
---|---|---|---|
Username |
The username of the user to login |
string |
Required |
Password |
The password of the user to login |
string |
Required |
LinkBasedMFA |
When set to "Y" and the User has 2FA enabled the login will send a clickable link to the user instead of a One Time Code. Default: "N". |
string |
Optional |
Key |
The key recieved from /v1/Users/2FAKey when the User account is setup for Browser/Device verification. |
string |
Optional |
Response
APILoginName | Description | Type | Additional information |
---|---|---|---|
SessionKey |
The Session Key for the user. This Session Key must be sent in the header of all subsequent calls. |
string |
None. |
Username |
Username for the logged in user. |
string |
None. |
SessionId |
Session Id |
integer |
None. |
TwoFactorAuthenticationRequired |
True when Two Factor Authentication is required for this login. A One Time Password will be sent to the phone number on record for the user account. Make a subsiquent request to the /v1/Users/2FAKey endpoint with the One Time Password to complete Two Factor Authentication. |
boolean |
None. |
Key |
When the User account is setup for Device/Browser verification this field will contain a value. Send this value with subsequent requests to /v1/Users/LoginBrowser to remember 2FA verification requests. |
string |
None. |
Example
curl -d "Username={Username}&Password={Password}" -X POST https://api.creditriskmonitor.com/v1/Users/Login