Skip to main content

Webhooks for records would be really useful.


I’m heavily caching Airtable data on my own server via the API, and if Airtable could notify my server when a record is updated, created, or destroyed, that would help me invalidate the cached data and re-request it.


Ultimately that would mean less calls from my server to the Airtable API, which I imagine would please Airtable.


Are webhooks on the roadmap at all?

Hey all—another +1 here for real Webhooks in Airtable. Like many of you I’ve sifted through the available options but haven’t found anything worthwhile.


I spent some nights building something that works for me. It’s a “faux-hook” that polls once a minute and notifies the changes. It does store the last known data, so if you feel uncomfortable about that let me know and I can look into some way of not actually saving the data.


I thought some of y’all might find it useful too. Here’s the link: https://alpha.basehooks.com/



While limited, they now exist in triggered action scripts in case you missed this.




While limited, they now exist in triggered action scripts in case you missed this.




I hadn’t seen that—thanks! 🙂


Could I use it to detect if a record was changed?


I hadn’t seen that—thanks! 🙂


Could I use it to detect if a record was changed?



Indirectly, yes.


If you can move records in and out of a view based on changes, then you can also trigger script actions on those records that appear in a vew.



Indirectly, yes.


If you can move records in and out of a view based on changes, then you can also trigger script actions on those records that appear in a vew.


Thanks, I’ll have to experiment with it and see how it works.


Do I see (user friendly) webhooks here?



Do I see (user friendly) webhooks here?



I lept into Airtable this morning as soon as I saw the word “automations.” I check this thread regularly. The UI informed me that “aI] cannot run scripts on the current billing plan.” More detail please? I want to try this feature in the most minimal sense but need to know how much it will cost me. 😕


Documentation on what level of paid subscription is necessary in order to make a “webhook” script. I’d suggest adding a line to the price comparison page like so:



I lept into Airtable this morning as soon as I saw the word “automations.” I check this thread regularly. The UI informed me that “aI] cannot run scripts on the current billing plan.” More detail please? I want to try this feature in the most minimal sense but need to know how much it will cost me. 😕


Documentation on what level of paid subscription is necessary in order to make a “webhook” script. I’d suggest adding a line to the price comparison page like so:



@Wray_Bowling the Scripting app is free until March 2021.



@Wray_Bowling the Scripting app is free until March 2021.



Ok, so I figured out that it’s possible to send a webhook when a record was updated. You need to:



  1. Create a new automation

  2. Select “When record updated” as trigger

  3. Add “Run script” action with the following code:


_


let inputConfig = input.config();

let response = await fetch('https://your-webhook-url.com/', {
method: 'POST',
body: JSON.stringify(inputConfig),
headers: {
'Content-Type': 'application/json',
},
});

You will also have to map the record fields to input variables one by one.


Here is a screenshot of my webhook automation setup:



Similarly, you can send a webhook when record was added. Just change the trigger to "When record created.


Anyway, I’m looking forward to first-class webhooks in Airtable API.


@LukaszWiktor you gave me an idea: tools like Integromat support mail hooks. And Gmail notifications are absolutely free (for generic email the target account needs to be a verified collaborator).

So the alternative step would be:



  • create Airtable automation as described

  • use Gmail action instead of script

  • receive triggers as emails


On Integromat’s side I fetch full information about the record and all send it further as a webcall for downstream hook.


@LukaszWiktor you gave me an idea: tools like Integromat support mail hooks. And Gmail notifications are absolutely free (for generic email the target account needs to be a verified collaborator).

So the alternative step would be:



  • create Airtable automation as described

  • use Gmail action instead of script

  • receive triggers as emails


On Integromat’s side I fetch full information about the record and all send it further as a webcall for downstream hook.


@Dmitry that’s a clever trick! 👏


Ok, so I figured out that it’s possible to send a webhook when a record was updated. You need to:



  1. Create a new automation

  2. Select “When record updated” as trigger

  3. Add “Run script” action with the following code:


_


let inputConfig = input.config();

let response = await fetch('https://your-webhook-url.com/', {
method: 'POST',
body: JSON.stringify(inputConfig),
headers: {
'Content-Type': 'application/json',
},
});

You will also have to map the record fields to input variables one by one.


Here is a screenshot of my webhook automation setup:



Similarly, you can send a webhook when record was added. Just change the trigger to "When record created.


Anyway, I’m looking forward to first-class webhooks in Airtable API.


This would work for me except its only available for pro plans ($20/month).


@LukaszWiktor you gave me an idea: tools like Integromat support mail hooks. And Gmail notifications are absolutely free (for generic email the target account needs to be a verified collaborator).

So the alternative step would be:



  • create Airtable automation as described

  • use Gmail action instead of script

  • receive triggers as emails


On Integromat’s side I fetch full information about the record and all send it further as a webcall for downstream hook.


I am not sure why do you need all that, Integromat already have “Watch records” module.


I am not sure why do you need all that, Integromat already have “Watch records” module.


Because the module does the polling by timer (at least for the free tier), so it either has extremely long delays or eats up the whole actions budget in a couple of weeks.


@LukaszWiktor you gave me an idea: tools like Integromat support mail hooks. And Gmail notifications are absolutely free (for generic email the target account needs to be a verified collaborator).

So the alternative step would be:



  • create Airtable automation as described

  • use Gmail action instead of script

  • receive triggers as emails


On Integromat’s side I fetch full information about the record and all send it further as a webcall for downstream hook.


Hi @Dmitry_Si - can you provide any guidance on how you created the email webhook? I am also trying to avoid Integromat eating up my number of actions…


Hi @Dmitry_Si - can you provide any guidance on how you created the email webhook? I am also trying to avoid Integromat eating up my number of actions…


On Integromat’s side, there are different types of webhooks, I’ve created “Email Webhook”. Once created it provides a unique email address.


On Airtable’s side, I created automation to send an email when the row is added and used that email as the destination.

That’s it.


On Integromat’s side, there are different types of webhooks, I’ve created “Email Webhook”. Once created it provides a unique email address.


On Airtable’s side, I created automation to send an email when the row is added and used that email as the destination.

That’s it.


Webhook trigger is now in alpha!



Webhook trigger is now in alpha!



The OT was about outgoing webhooks. 🙂


Still waiting for that one. Would save AT’s back-end a lot of API polling.


The issue w/ the webhooks via trigger is that they’ll eat into the automation quota, potentially very quickly if there are lots of records being modified / there are multiple automations on the base. IMO webhooks should not be included in the quota.


Outbound webhooks for CRUD operations are table stakes for developers wanting to create enterprise solutions with airtable.


Ok, so I figured out that it’s possible to send a webhook when a record was updated. You need to:



  1. Create a new automation

  2. Select “When record updated” as trigger

  3. Add “Run script” action with the following code:


_


let inputConfig = input.config();

let response = await fetch('https://your-webhook-url.com/', {
method: 'POST',
body: JSON.stringify(inputConfig),
headers: {
'Content-Type': 'application/json',
},
});

You will also have to map the record fields to input variables one by one.


Here is a screenshot of my webhook automation setup:



Similarly, you can send a webhook when record was added. Just change the trigger to "When record created.


Anyway, I’m looking forward to first-class webhooks in Airtable API.


Airtable announced that the scripts become free with any pricing plan. Just waiting for them to unlock the scripts. Great solution…


Happy 2022 🎉 Seems we’re still waiting for this one, but here’s a tutorial for an easy workaround. gAdvanced No-Code] Trigger Zaps instantly from Airtable buttons - YouTube


Gist is Airtable button → triggers Airtable script → triggers any webhook service (Zapier, Integromat, Pipedream, etc.). Check templates you can copy in the video description. No polling involved.


Airtable introduced outgoing webhook notifications sometime in 2022 or 2023. 😃

Airtable's outgoing webhook documentation is located here: https://airtable.com/developers/web/api/webhooks-overview

Airtable also introduced incoming webhook triggers for Airtable automations, but there are a significant number of limitations to their incoming webhooks.

For much more robust webhook triggers (including custom webhook responses), I would highly recommend using Make's custom webhooks.

There is a small learning curve with Make, which is why I created this basic navigation video to help. In that thread, I also provide the links to a few other Make training resources there as well.

For example, to instantly trigger your Make scenarios from Airtable, check out this thread.

In that same thread, I also provide the link to Make’s free partner training program, which offers approximately 15 hours of free training videos.

p.s. If you would like to hire an expert Airtable consultant to help you with any of this, please feel free to contact me through my website: Airtable consultant — ScottWorld


Reply