Authorization header is required or checked) since it is the entry point used to obtain a session.MAX_LOGIN_ATTEMPTS (default 5) failed attempts within the trailing LOGIN_LOCK_WINDOW_MS window (default 15 minutes), the request is rejected before the account is even looked up.email-password auth method must exist, be in active status, and have been verified (verified_at set) before a password check is performed. The parent identity must not be disabled or suspended.active MFA methods enrolled, a pending-mfa session is created (short-lived, expiring after MFA_PENDING_SESSION_EXPIRES_IN_MS, default 5 minutes) and the response indicates mfa_required: true along with the available next steps for completing MFA. If the identity has no active MFA methods, a normal active session is created immediately and mfa_required: false is returned along with the full session token and identity summary.curl --location '/identity-sessions' \
--header 'Content-Type: application/json' \
--data-raw '{
"email": "jane.doe@example.com",
"password": "S3cur3P@ssword!"
}'{
"message": "Success",
"status": "success",
"data": {
"mfa_required": false,
"session_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzZXNzaW9uX2lkIjoiMDFIWDhYS1haUFlTVkFFOEhIWlhNVFpGUlIifQ.abc123",
"session_id": "01HX8XKXZPYSVAE8HHZXMTZFRR",
"identity_id": "01HX8XKXZPYSVAE8HHZXMTZFAA",
"expires_at": 1754560800000,
"identity": {
"name": "Jane Doe",
"primary_email": "jane.doe@example.com",
"status": "active"
}
}
}