POST/users/{user_id}/verify_password

Verify the password of a user

Check that the user's password matches the supplied input. Useful for custom auth flows and re-verification.

  • IdempotentThe SDK sends Idempotency-Key, so a retried request is only applied once.

1 parameter · 1 body field
user_idstringrequired
The ID of the user for whom to verify the password
passwordstringrequired
The user password to verify

5 status codes
200The provided password was correct.
verifiedbooleanoptional
400The user does not have a password set.
404The user does not exist.
422The provided password was incorrect.
500Request was not successful
errorsarray<object>required
metaobjectoptional
clerk_trace_idstringoptional

Error handling

A 400 is returned: The user does not have a password set. A 404 is returned: The user does not exist. A 422 is returned: The provided password was incorrect. A 500 is returned: Request was not successful.