Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Identity platform: Email not triggered for "Send password reset email" api

GIP
Bronze 1
Bronze 1

Hi Team,

Can you please let me know how do we set up email server for google identity platform "Send password reset email" API.  It was told that 'You can send a password reset email by issuing an HTTP POST request'. I am getting success response but not receiving email. What configuration needs to be done for triggering email.

Endpoint: https://identitytoolkit.googleapis.com/v1/accounts:sendOobCode?key=[API_KEY]

Thanks

0 1 671
1 REPLY 1

The most common reason we have found for this kind of issue is that the recipient's email provider has detected and marked the emails that we send on behalf of the developer as spam. This can happen when you are using a custom domain for sending the emails, but it is not properly set up.

To see if the responses have errors and shed some light on this issue, could you please enable the audit log for the API? After that, could you please run another test to capture the logs? In order to enable these features, you can follow the next steps:

  1. Follow this path (Cloud Console > IAM & Admin > Audit Logs).
  2. Select the Cloud Service (Google Cloud Storage).
  3. In the Log Type tab, select the boxes by the Data Access audit log types that you wish to enable (Data_read, Data_write), and then click Save.
  4. Where you have successfully enabled audit logs, the table includes a checkmark.

Please refer to this document for a full explanation of this procedure, and then take a look at the audit logs. 

Another reason that we found is that this could be caused by settings and policies on your email recipient server, so, to debug, I recommend using a real inbox account as the sender address; and if the emails are not sent, the sender account will receive bounce messages which should contain detailed reasons why the email is rejected. Did you see anything with the IT department?