We have a problem with all emails sent via our Gmail API App. All of them deliver with a warning about the safety of the email
This message seems dangerous. Many people marked similar messages as phishing scams, so this might contain unsafe content. Avoid clicking links, downloading attachments, or replying with personal information.

This happens only when sending an email through our Gmail API but when sent via SMTP will deliver the message without any warning.
This warning message appears on all emails sent via our Gmail API Application, no matter if the sender is a Google workspace user or a free Gmail user.
Can anyone help on this?