Create new password identity verification
Create a NewPasswordIdentity verification record for the new user registration use. The verification record includes a unique user identifier and a password that can be used to create a new user account.
Body Required
-
The unique user identifier.
Currently, onlyusername
is accepted. Foremail
orphone
registration, aCodeVerification
record must be created and used to verify the user's email or phone number identifier.Additional properties are allowed.
-
The new user password. (A password digest will be created and stored securely in the verification record.)
Responses
-
200 application/json
The NewPasswordIdentity verification record has been successfully created.
-
Bad Request
-
Unable to process the request.
-user.username_already_in_use:
The provided username is already in use.
-password.rejected:
The provided password is rejected by the password policy. Detailed password violation information is included in the response.
curl \
-X POST https://[tenant_id].logto.app/api/experience/verification/new-password-identity \
-H "Content-Type: application/json" \
-d '{"identifier":{"type":"string","value":"string"},"password":"string"}'
{
"identifier": {
"type": "string",
"value": "string"
},
"password": "string"
}
{
"verificationId": "string"
}