Generate a Reset Password Token
POST {{baseUrl}}/api/v1/users/:userId/lifecycle/reset_password?sendEmail=true
Generates a one-time token (OTT) that can be used to reset a user's password. The OTT link can be automatically emailed to the user or returned to the API caller and distributed using a custom flow.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
sendEmail | boolean | (Required) | |
revokeSessions | boolean | When set to true (and the session is a user session), all user sessions are revoked except the current session. |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Accept | string |
RESPONSES
status: OK
{"resetPasswordUrl":"anim ea sed laborum"}