Deskhero Developer Hub
Back to deskhero.com
Account

Cognito forgot password confirm

Completes a password reset using the verification code that was emailed, sets the new password and signs the user in.

POST /api/sys/v{version:apiVersion}/account/cognito_forgot_password_confirm
Authorisation
No authentication needed

Request arguments

Name Type Source
inputDTO_cognito_forgot_password_confirmBody
Request body example

Response

Status
200 (OK)
Type
DTO_cognito_forgot_password_confirm_response
Wrapper
DTO_response_wrap
Other statuses
400 (BadRequest), 429 (TooManyRequests)
Response body example
DTO_cognito_forgot_password_confirm
NameTypeReadOnlyDescription
emailStringEmail
verification_codeStringVerification code
new_passwordStringNew password
DTO_cognito_forgot_password_confirm_response
NameTypeReadOnlyDescription
messageStringMessage
login_responseDTO_logged_in_responseLogin response
DTO_logged_in_response
NameTypeReadOnlyDescription
challenge_mfaBooleanChallenge mfa
actionENUM logged_in_response_actionAction
info_messagesString[]Can contain for example "Joined tenant". "Auth method Google added"
warning_messagesString[]Warning messages
redirect_urlStringRedirect url
verification_hashStringVerification hash
emailStringEmail
ENUM logged_in_response_action
ValueNameDescription
0UNKNOWNUNKNOWN
1REDIRECTREDIRECT
2SELECT_TENANTSELECT_TENANT
3CREATE_TENANTCREATE_TENANT
4CONTINUE_TO_APPCONTINUE_TO_APP
5LOGINLOGIN
6VERIFY_EMAILVERIFY_EMAIL

Generated Aug 4, 2026 18:37