Build a Google Sheets webhook
What is a Google Sheets webhook
A Google Sheets webhook's an HTTP POST sent to your endpoint when a sheet changes.
Sheets can't send one itself, so you build it from an Apps Script, a Drive push channel, or API polling, or you let a tool like Activepieces catch the change and forward it for you.

A Google Sheets webhook refers to any setup that automatically notifies an external service by HTTP request when a spreadsheet's data changes, which in practice means an Apps Script trigger that POSTs, a Drive push-notification channel, or scheduled API polling.
According to Stackarchitect, this reflects Google's documentation as checked on 2026-12-04.
Pick by what you need to know about the change. If you need the cell, the old value and the new value, only a script running inside the spreadsheet can see that.
If you only need to know that something changed, Drive can tell you. If you need a guarantee that no change's missed, polling is the route that lets you control the check.
Read across a row to see what you get and what you pay for it; the table compares the three on the four things that decide it.
| Route | Detail of change delivered | Latency | Setup effort | What breaks |
|---|---|---|---|---|
| Apps Script onEdit POST | Edited range, new value, and old value for single-cell edits | Near immediate, as the trigger fires on the edit | Moderate: write the script, authorize it, install the trigger | Edits made by other scripts or the API do not fire it; failed requests are lost unless you add retries |
| Drive files.watch push channel | None: a signal that the file changed, with no cell detail | Short delay after the change | High: public HTTPS endpoint, channel creation, domain verification | Channels expire and must be renewed; you must then fetch the data to learn what changed |
| Sheets API polling | Whatever you read and compare yourself | As slow as your polling interval | Low to moderate: scheduled reads and a stored snapshot | Quota pressure grows with frequency; you diff the data yourself |
Prices and plan limits checked against docs.claude.com and claude.com and openai.com and gemini.google on December 4, 2026.
Starting with the one that carries the most detail, the sections below take each route in turn.
If you'd rather not host the receiving end, Activepieces can catch the POST for you with a Catch Webhook trigger, and it runs unlimited flows on every plan, including the free one.
Apps Script trigger that POSTs out
When a user changes the spreadsheet, an installable edit trigger in Apps Script runs a function, and that function calls UrlFetchApp.fetch to POST JSON to your endpoint.
The event object carries the range, the new value and, for a single-cell edit, the old value. That's the richest payload of the three routes, and it arrives without your endpoint calling back to Google.
The catch is scope. The simple onEdit trigger can't call external services, so you must use the installable version, which runs under the authorization of the account that created it.
Changes made through the Sheets API or by another script don't fire edit triggers, so this route sees human edits in the interface, not everything that touches the file.
Drive API push notifications
Register a notification channel with the Drive API's files.watch method and it sends a POST to your HTTPS address when the file changes.
Because the spreadsheet is a Drive file, this works without touching the sheet itself, and it catches changes the edit trigger misses, including those made through the API.
Nothing in the message says which cell changed or what the value was; it only signals that the resource changed, so your handler must then read the sheet or the file's revisions to find out.

Channels also expire, so you need a renewal job, and a lapsed channel fails silently until someone notices the data stopped moving.
Polling the Sheets API
When you poll, you read the sheet on a schedule through the Sheets API and compare the result with the last copy you stored.
It needs no public endpoint and no trigger, which makes it the simplest to set up and the easiest to reason about when something goes wrong.
You trade away immediacy: a change's only noticed at the next read, so latency equals your interval.
Shortening the interval raises the number of read requests against your project's quota, and the diff logic, deciding which rows are new or changed, is yours to write and maintain.
This takes minutes, not a project: automate it in Activepieces free.
Getting Google Sheets API access, scopes and credentials
Your first read comes back as a 403 instead of rows if you skip any of three things: a Google Cloud project with the Sheets API switched on, one credential, and one scope.

Enable the API in a Cloud project
In the Cloud console, create or select a project, open the API library, find "Google Sheets API" and click Enable. The project's what Google bills quota against, so the poller you built above spends the same read allowance as anything else running under it.
Run the poller in its own project, so a runaway interval can't starve your other integrations. If you also plan to use a Drive push-notification channel, enable the Drive API in the same project now, since it's a separate switch.
OAuth versus service account versus API key
You have three credential types to choose from, and each fits a different situation:
- An OAuth client ID, which acts as a signed-in user. Use it when the poller must read sheets that person can already open, and you can run a one-time consent step.
- A service account, which's its own identity with an email address. Use it for unattended polling, and share each target sheet with that email, or the call fails with "The caller does not have permission".
- An API key, which identifies the project but not a person. Use it only for sheets shared as public, and only for reading.
When polled by key, a sheet that works in your browser can still fail with a 403, because the key can't read a private sheet.
For a server job on a schedule, the service account is usually the least maintenance, because there's no refresh token to expire or consent screen to revisit.
When polled by key, a sheet that works in your browser can still fail with a 403, because the key can't read a private sheet.
For this work, two scopes cover everything. https://www.googleapis.com/auth/spreadsheets grants read and write on sheets, and https://www.googleapis.com/auth/spreadsheets.readonly grants read only.
A poller only reads, so request the read-only variant: a leaked credential then can't overwrite your data. Request the full scope only when the same flow must write results back to the sheet.
Check Sheets API endpoints and quotas
You're throttled by quota, not billed, so the endpoint you choose decides which limit you spend; the Sheets API charges nothing per request.
Prefer the batch calls, because they cut the request count. The table shows the five calls you'll use and the two per-minute ceilings.
| Endpoint or quota | What it does | Read or write | When to prefer it |
|---|---|---|---|
| spreadsheets.get | Returns sheet metadata, tabs and formatting | Read | Checking structure before you read values |
| values.batchGet | Reads several ranges in one request | Read | Polling more than one range |
| values.append | Adds rows after the last data row | Write | Logging events without tracking row numbers |
| values.update | Overwrites a known range | Write | Updating a row you already located |
| spreadsheets.batchUpdate | Applies several structural changes at once | Write | Formatting, new tabs, multi-step edits |
| Quota: project | 300 requests per minute | Both | Budget for all users combined |
| Quota: user | 60 requests per minute | Both | Budget for one account |
Five separate reads cost five requests, while one values.batchGet costs one, because each endpoint above counts against both ceilings.
Since the API's free, your only spend is the Workspace seat. Epifive lists Business Starter at $7 per user per month, Standard at $14 and Plus at $22, making it straightforward to forecast deployment costs for any team size.
viz type=step title="What Google Workspace Business plans cost per user" unit="$ per user per month" source="Epifive - https://www.epifive.com/blog/google-workspace-editions-pricing-explained"4 and Plus $22, the price of the higher Workspace quotas." Starter: 7 Standard: 14 Plus: 22
Those prices buy higher Apps Script ceilings and admin controls, not extra API calls.
At 60 requests per minute per user, a poller hitting one sheet every second hits the wall within a minute, so continuous polling at this rate can't sustain real-time monitoring. Stay under it by polling no more than once a second with values.batchGet, and prefer longer intervals.
Apps Script and Drive limits
Between Gmail and Workspace accounts, daily Apps Script quotas rise, as ModelMonkey shows. Trigger runtime goes from 90 to 360 minutes, so a one-minute trigger running five seconds per call (120 minutes a day) fails on Gmail but fits on Workspace.
URL Fetch calls go from 20,000 to 100,000, which caps a per-edit webhook at roughly 14 POSTs a minute on Gmail. Email recipients go from 100 to 1,500.
A minimal working Google Sheets API request
You outgrow email first, so the smallest request worth sending is one values.append call: a single authenticated POST that adds a row below your existing data.
Set SHEET_ID and TOKEN (an OAuth access token with the spreadsheets scope) as shell variables, then run:
curl -X POST \
"https://sheets.googleapis.com/v4/spreadsheets/$SHEET_ID/values/Sheet1!A1:append?valueInputOption=USER_ENTERED" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"values": [["order-1042", "paid"]]}'
{
"spreadsheetId": "…",
"tableRange": "Sheet1!A1:B1",
"updates": {
"updatedRange": "Sheet1!A2:B2",
"updatedRows": 1,
"updatedCells": 2
}
}
To confirm one row landed, look for updatedRows: 1; updatedRange tells you where. Omit valueInputOption and the call fails with a 400 error.
Send a webhook from Apps Script
Try to call an external service from a simple onEdit trigger and it fails with "You do not have permission to call UrlFetchApp.fetch", so you need an installable trigger instead.
Don't pass e.range itself as the payload, because it's a Range object and doesn't serialise. Send its A1 notation.
- Open Extensions > Apps Script.
- Paste a function that POSTs the edit with
UrlFetchApp:
function sendEdit(e) {
UrlFetchApp.fetch("https://example.com/hook", {
method: "post",
contentType: "application/json",
payload: JSON.stringify({
sheet: e.range.getSheet().getName(),
range: e.range.getA1Notation(),
value: e.value
})
});
}
- Open Triggers, add a trigger for
sendEdit, and set the event type to On edit. - Authorise the script when Google prompts you.
- Edit a cell in the sheet.
- Check your endpoint for the incoming request.
If step 6 shows nothing, open the Executions log first; a failed authorisation shows up there.
That's the whole push route. The next section covers Drive notification channels, which tell you something changed but not what.
You can follow the rest of this with the builder open. Start free, no card.
Handle common Google Sheets API errors
When something fails in production, four codes (429, 403, 400, 401) plus a few quirks cause most of it: Apps Script quotas, duplicate triggers and Drive channels that expire.
Drive notifications also say a file changed without saying which cell, so you end up reading the sheet again.
Read the cause column first, because the same symptom (a silent receiver) can come from two different rows. The table below pairs each failure with its cause and the fix that clears it.
| Error | Cause | Fix |
|---|---|---|
| 429 | Per-minute read or write quota exceeded | Back off exponentially; batch ranges into one call |
| 403 | Caller lacks access, or a rate limit is reported as 403 | Share the sheet with the service account; check the error reason |
| 400 | Malformed range, bad A1 notation, invalid payload | Validate the range and sheet name before the call |
| 401 | Expired or missing OAuth token | Refresh the token; re-authorize the script |
| Apps Script time quota | Execution or trigger runtime ceiling reached | Split work into smaller runs; store progress between them |
| Duplicate triggers | Trigger installed more than once | List installed triggers and delete extras |
| Expired Drive channel | Channel reached its expiration time | Create a new channel before the old one lapses |
| Notification without change detail | Drive reports a change, not the cell | Fetch the sheet and diff against a stored copy |
Fixing the right row first saves hours; the sections below cover how each one behaves in practice.
Google Sheets API 429 quota errors
When you exceed a per-minute quota you get a 429, so retry with exponential backoff and combine reads into a single batch call.
Webhook receiver timeouts for Google Sheets
Your own receiver also has a clock. Slack waits 3 seconds for a reply, so acknowledge first and read the sheet afterward. Shopify waits 5 seconds, and Stripe and GitHub wait 10 seconds each, so Shopify gives up sooner than those two, though Slack's 3 seconds is shorter still.
If a slow Sheets read sits inside the handler, it can push you past those limits, and the sender will retry or give up.
Google Sheets API permission and token errors
If you get a 403, it usually means the sheet was never shared with the account making the call. Sometimes it's a rate limit in disguise, so read the error reason before changing permissions.
A 401 means the token expired or was revoked, so refresh it. A 400's different again: your request is wrong, typically a bad range or sheet name.
Script quotas, duplicate triggers and expired channels
When a script hits its time quota, the run stops mid-loop and rows go unsent. Split the work and save progress between runs. Duplicate triggers cause the opposite problem, sending each change twice, so list installed triggers and delete extras.
When a Drive channel expires, it stops delivering with no error on your side, so renew it before the expiration time.
Each notification says only that the file changed. Store a copy of the last known state and compare it after every ping to find the cell that moved.
Receive Google Sheets changes without code using Activepieces
Activepieces, whose 751 integrations are counted from its open source monorepo, receives Google Sheets changes without code through two entry points.
One's a trigger in its Google Sheets integration that watches rows for you; the other is a Catch Webhook trigger that accepts the POST your own Apps Script sends. Both start a flow, so you skip hosting an endpoint.
Row trigger in the Google Sheets integration
You don't write an onEdit handler or a polling script, because the Google Sheets integration has its own row triggers.
Check the exact trigger names in the integration's trigger list when you build; the Google Sheets integration is one of those 751, with its source in the same monorepo, and the editor shows the labels.
Connect your Google account, pick the spreadsheet and the sheet, and the flow starts when a row is added or changed.
This is the polling route from earlier in the article, run for you. The flow reads the sheet on a schedule, so it won't fire the instant someone types.
It also hands you the row's values, not the single cell that moved, so keep the stored-copy comparison if the exact cell matters.
Reading a workflow in the editor
In the screenshot below, you can see the shape of a flow like this. The flow is "Community Summarizer - Get Messages", with a New Message trigger, a Create Record step, an AI step, a Router and a Send Message step.

Though the flow's trigger is Discord, not Sheets, the right-hand panel is what you'll fill in for a Sheets trigger too: a connection and a source to watch.
Swap Discord for your sheet and the steps below it work the same way. Nothing runs until you press Publish, which the unpublished-changes notice at the top reminds you of.
Adding the alert and CRM steps
Add a Slack message step after the trigger for the alert, then a step from your CRM's integration to write the row into the customer record.
You can also skip the editor: describe "when a row is added to this sheet, post to Slack and update the CRM record" in Activepieces' built-in chat, and what it publishes is a live flow in your account, the same artefact you would have assembled by hand, running under the same RBAC and audit logs as every other flow.

Its run trace lists each step with what it received, so the first row you add shows exactly what happened. MoneyGram, Moneypenny, Alan and FundingSocieties run Activepieces in production.
Catch Webhook for Apps Script POSTs
When you need an instant push, or the exact cell, use the Catch Webhook trigger. Activepieces gives the flow a URL; paste it into the UrlFetchApp.fetch call in your installable onEdit trigger and send the range, old value and new value as JSON.

The flow fires within moments of the edit, and the payload carries what you chose to send. A run costs 1 credit however many steps follow it, so the Slack and CRM steps don't multiply the bill.
After the trigger, the same Slack and CRM steps follow, mapped from the JSON fields.
Use the Sheets API directly for bulk reads, high-volume changes, or when you must control quota use yourself.
An integration trigger spends your read quota on its own schedule, and you can't batch around it. Calling the API from your own code lets you request exactly the ranges you need, in the batches you choose.

What should your webhook automation do
Once your own code is making the calls, the Monday plan is a short sequence. Its first step decides everything after it: do you need to know which cell changed, or only that something did?
If a notice that "the file changed" is enough, use a Drive push notification. If you need the cell, the old value or the editor, use an Apps Script trigger. If you can't run either, poll the Sheets API.
Work through these in order:
- Decide whether you need cell-level detail. A Drive notification carries no cell data, so if you need the changed range, the route's already chosen.
- Pick the route: Apps Script, Drive channel, or polling.
- Enable the API you chose in your Google Cloud project and create credentials. The Sheets and Drive APIs are switched on separately, so a "has not been used in project" error means you enabled the wrong one.
- Test the smallest request that proves the path works: one read of one range, or one POST from a test edit. A failure here points at credentials, not your logic.
- Add exponential backoff with jitter for rate-limit errors, so a burst of edits doesn't turn into a burst of failed retries.
- Log every failed delivery with its status code and the row it concerned. Without this, a dropped event's invisible.
- Schedule a recurring check of the Sheets API quota page. Limits change, and your backoff settings were tuned to the old ones.
Choose the Apps Script trigger when you need the edited range and its new value. An installable edit trigger runs a function that sends the event with UrlFetchApp.fetch.
The catch is that a simple onEdit can't call external services, so the trigger must be installed, and it runs as the account that installed it.
Choose the Drive push notification when you only need to know the file changed. You register a channel against the file, and Google calls your HTTPS endpoint.
Channels expire, so you must renew them, or the notifications stop without any error. Once one arrives, you fetch the data yourself.
Choose polling when you can't host an endpoint or install a trigger. You read on a schedule and compare against your last snapshot. It's the simplest route to debug, and its cost is delay: you learn about a change only on the next poll.
Frequently asked questions
Does Google Sheets have native webhooks?
No. Nothing in Google Sheets sends an HTTP request when a cell changes.
A working webhook is something you assemble: an Apps Script that POSTs on change, a Drive push-notification channel, or an API poll. Which one you build depends on what you need to know about the change.
Is the Google Sheets API free to use?
Yes, in the sense that Google doesn't bill per call to the Sheets API. What you hit instead are quotas, and when you exceed them the API returns a 429 "Quota exceeded" error rather than a charge.
Your cost is therefore retry logic and slower syncs, not an invoice. Check the current limits on Google's own usage-limits page before you size a polling interval.
Can a webhook tell me which cell changed?
Not from a Drive push notification. It says only that the file changed, so you must read the sheet and compare it with what you stored.
An Apps Script installable edit trigger is the exception: its event object carries the edited range and the new value, so you get the cell address without a second call.
If the change comes through the API or a script, the trigger doesn't fire, and the edit arrives unseen. It covers only edits made by a person in the UI.
How often can I call the Google Sheets API?
As often as your per-minute quota allows, and the quota's counted per project and per user separately. Read and write requests count against shared project and user ceilings, so a heavy writer can use up the budget that reads need.
If you poll, the practical rule is to back off exponentially when you get a 429 and to batch reads into one range request instead of one call per cell. That keeps you under the limit and keeps the delay predictable.
Can I receive a webhook into a Google Sheet?
Yes, and this is the direction Sheets handles best. Publish an Apps Script as a web app with a doPost(e) function, and the deployment URL becomes an endpoint that accepts a POST and appends a row.
The caveat is that the script runs as whoever deployed it, so anyone with the URL can write to your sheet. Add a shared secret to the request and reject any call that lacks it.
Related reading
References
Build it
Set this up in minutes.
No code required. Connect your accounts, and Activepieces runs it from there.
Start free Talk to sales


