This endpoint will initiate the password reset workflow by sending either an email or SMS message to guide the user through resetting their password.

Send user forgot password link by email address

This is a sample API call for initiating a forgot password email to the end user.

curl --request POST \
     --url 'https://id.eu.nextreason.com/idp/v1/account/forgot-password' \
     --header 'Content-Type: application/json' \
     --data '
{
     "auth_type": "email",
     "client_id": "c8462jyq9dnupu2q4j7sfjzvn6c87j92",
     "redirect_uri": "https://localhost.com"
     "user_id": "[email protected]",
     "locale": "en-US"
}
'

Send user forgot password link by mobile phone number

This is the API call for initiating a forgot password SMS message, with a single-use code included, to the end user.

curl --location --request POST 'https://id.eu.nextreason.com/idp/v1/account/forgot-password' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data-raw '{
             "auth_type": "sms",
                         "client_id": "c8462jyq9dnupu2q4j7sfjzvn6c87j92",
             "redirect_uri": "http://localhost.com",
             "user_id":"+15417543010",
             "locale": "en-US"
            }'
Language
URL
Click Try It! to start a request and see the response here!