I’m also getting the same error.
I’m trying to add contacts from my php website to brevo account, the api is working in localhots but when we move to production it gives the same error. I have checked everything multiple times.
Client error: POST https://api.brevo.com/v3/contacts resulted in a 401 Unauthorized response:{“message”:”authentication not found in headers”,”code”:”unauthorized”}
Hi @baroquer
I hope you are doing well.
It seems like the issue is with your Brevo account. Please reset the Post SMTP plugin, follow the guide document here to reconfigure it, and test again. If you still encounter issues, please contact Brevo support and let me know the outcome.
Thanks and regards,
Support Team – WPExperts
-
This reply was modified 2 years ago by
M Haseeb.
Hi @haseeb0001
I think I figured.
I installed the Brevo-developed wordpress plugin here https://ww.wp.xz.cn/plugins/mailin/
Then I enabled the plugin and chose to login with the API. Succeed. Sent a test email. It worked.
Then I disabled the Brevo-developed plugin and re-enabled Post SMTP. I used the same API in both plugins. Sending a test email. It worked.
Here’s what I see, it seems that the API feature must be activated in advance by using the API through the Brevo-developed plugin. Then after that API feature will just work normally. I know it sound weird.
-
This reply was modified 2 years ago by
Baroquer.
I’m glad to hear your issue is resolved. Thank you for letting me know.
I found that worked, but I couldnt deactivate Brevo plugin afterwards. It would stop working again 🙁