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

**URL:** <https://forum.bubble.io/t/help-with-google-apps-script-api-getting-405-error-on-post/380502>\
**Category:** APIs\
**Created:** [September 10, 2025, 1:25pm UTC](https://forum.bubble.io/t/help-with-google-apps-script-api-getting-405-error-on-post/380502 "2025-09-10T13:25:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kiangon15](https://avatars.discourse-cdn.com/v4/letter/k/7993a0/32.png) [@kiangon15](https://forum.bubble.io/u/kiangon15)\
**Post date:** [September 10, 2025, 1:25pm UTC](https://forum.bubble.io/t/help-with-google-apps-script-api-getting-405-error-on-post/380502/1 "2025-09-10T13:25:54Z")

</div>

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!

 ![Screenshot 2025-09-10 151905](https://us1.discourse-cdn.com/bubble/original/3X/e/f/ef10327d46c659e0c7f27af7831c22e7d2f8d7a1.png)

---

<div class="post-metadata">

**Author:** ![Jici](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/jici/32/30722_2.png) [@Jici](https://forum.bubble.io/u/Jici)\
**Post date:** [September 10, 2025, 6:27pm UTC](https://forum.bubble.io/t/help-with-google-apps-script-api-getting-405-error-on-post/380502/2 "2025-09-10T18:27:19Z")

</div>

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
