v1
latestOpenAPI 3.0.02026-07-2417129274.8 KBLogin Attempt Request
Login API is a synchronous POST-method API call.
API is triggered only for customer-initiated authentication requests, e.g., user tries to login to their account. It must not be called for authentications associated with:
- New account registrations
- Successful password resets
- Silent logins
API is triggered regardless of success or failure. There is a login_status_type to indicate success/failure and failure_reason to indicate the reason.
Response:
- decision field will be set as one of the following values: allow, notify, or challenge.
- login_id field will show a Riskified-assigned identifier for the event.
Headers
The merchant shop domain registered with Riskified.
Verification hash for the Request. Generated by performing an SHA256 encryption on the request's POST body and calculating the HMAC hash of the result using your Riskified authentication token. Please use UTF8 encoding.
As payloads are sent to Riskified in JSON format, value should be: application/json
Specify the version of the API to target. For example, to target the latest version of the API, use the following: application/vnd.riskified.com; version=2
Request body
Example request
{
"customer_id": "207119551",
"customer_created_at": "2019-09-12T14:04:50-05:00",
"implicit_login": false,
"username": "donnie7",
"email": "bob.norman@hostmail.com",
"login_at_checkout": true,
"login_status": {
"login_status_type": "success"
},
"client_details": {
"accept_language": "en-CA",
"user_agent": "Mozilla/5.0 (CFNetwork/548.0.3 Darwin/11.2.0)"
},
"session_details": {
"cart_token": "68778783ad298f1c80c3bafcddeea02f",
"browser_ip": "111.111.111.111",
"created_at": "2025-11-18T13:36:50-04:00",
"source": "mobile_app",
"device_id": "01234567-89ABCDEF-01234567-89ABCDEF",
"referring_site": "http://www.nba.com/"
}
}Response
Successful operation