Help with Google Apps Script API - Getting 405 Error on POST

Hi everyone,

I’m trying to connect Bubble to a Google Apps Script web app via API. I have a doPost function in my script that should save lead data to a Google Sheet. I set up the web app with POST method and JSON headers, and the GET requests work fine.

However, whenever I try to send a POST request from Bubble (or even using Postman), I keep getting a 405 error.

I’ve checked that:

  • The doPost function exists and the script is deployed as a web app.

  • The app is set to execute as me and anyone can access it.

  • Bubble is sending JSON with proper headers.

I’m not sure what I’m missing. Could it be something in Bubble, the web app URL, or the request setup?

Any advice would be greatly appreciated!

Thanks!

Because this is not a method accept. Check on your Google Apps Script what is accepted or change method… Also, check your url to be sure you are using the correct one. If I remember, it could be, in some case, that the header sent doesn’t match with the expected payload in your App script. Finally, be sure to give access to your Google app correctly