This API identifies the user based on the verificationId within the current experience interaction:
- SignIn and ForgotPassword interactions: Verifies the user's identity using the provided verificationId.
- Register interaction: Creates a new user account using the profile data from the current interaction. If a verificationId is provided, the profile data will first be updated with the verification record before creating the account. If not, the account is created directly from the stored profile data.
Body
Required
-
The ID of the verification record used to identify the user.
- ForSignInandForgotPasswordinteractions: Required to verify the user's identity.
- ForRegisterinteraction: Optional. If provided, new profile(s) will be attached to the registration session using the information from the verification record and trigger the account creation attempt. If not provided, the user account creation attempt will be triggered using the existing profile data in the interaction.
Responses
-
Registerinteraction: The user account has been successfully created and identified. -
SignInandForgotPasswordinteractions: The user has been successfully identified. -
The provided verificationId is invalid, not verified, or cannot be used to identify the user.
-session.verification_failed:The verification is not verified or can not be used to identify the user.
-guard.invalid_target:TheverificationIdis missing, but required for theSignInandForgotPasswordinteractions. -
The user is suspended or banned from the service. (SignIn and ForgotPassword only)
-
The
SignInorRegisterinteraction is disabled in the experience settings.
- In a step-up authentication, a social or enterprise SSO verification resolves to another account or to no account (session.step_up.subject_mismatch); the interaction and its pinned subject remain valid, so the user can retry with another account.
- A step-up identification asks to link the identity, or resolves to a different account than the interaction already identified (session.identity_conflict); a step-up never registers or links an account. -
Entity not found.
-session.verification_session_not_found:The verification record is not found.
-user.user_not_exist:The user account is not found (SignIn and ForgotPassword only).
-user.enterprise_sso_identity_not_exists:The enterprise SSO identity was linked through a different SAML SSO connector. -
The interaction has already been identified with a different user account.
-
The request failed validation, check error message for more details.
-user.<identifier>_already_in_use:The given identifier is already in use by another user account. (Register only)
-user.missing_profile:Sign-in experience required user identifier or profile data is missing. (Register only)
-user.social_provider_already_linked:The user matched by the social account's email or phone already has another account from this provider linked. (SignIn only)
curl \
--request POST 'https://[tenant_id].logto.app/api/experience/identification' \
--header "Content-Type: application/json" \
--data '{
"verificationId": "string",
"linkSocialIdentity": true
}'
{
"verificationId": "string",
"linkSocialIdentity": true
}