Skip to content

Start a workflow from Airtable events

To run a workflow when an Airtable base changes, add a Webhook block whose Source is Airtable and give its URL to an Airtable webhook. Airtable posts a short notification that says the base changed. Each notification starts its own run, and the run fetches the changes from Airtable with an HTTP request block.

The notification does not contain the changed records. It names the base and the webhook, and gives a time.

You need an Airtable access token that can create a webhook on the base, a way to call Airtable’s API with it, and edit access to the workflow’s project. Airtable has no screen for webhooks: you create one with an API call. Airtable’s documentation says the call needs the webhook:manage scope and creator permission on the base.

Add the Webhook block and generate its URL

Section titled “Add the Webhook block and generate its URL”
  1. In a draft workflow, add a Webhook block. The block palette also lists Airtable webhook in the Start group, which adds the block with its source already set.
  2. Under Source, choose Airtable. The line under the setting reads “Verifies the signature · one run per event”.
  3. Under Webhook URL, select Generate URL, then copy the URL.

The badge beside the URL reads “Runs start after publish”. The URL contains a token, and anyone who has the URL can send requests to it. Keep it out of shared documents.

  1. Send a POST request to https://api.airtable.com/v0/bases/{baseId}/webhooks, with the id of your base in place of {baseId}.
  2. In the request body, set notificationUrl to the URL you copied, and set specification to the changes you want to hear about. Airtable’s API reference describes the specification.
  3. Keep the response. It holds the webhook’s id, its macSecretBase64, and its expirationTime.

Airtable returns macSecretBase64 in this response only. Its documentation says there is no way to retrieve the value later. If you lose it, delete the webhook and create another.

Airtable’s documentation limits a base to 10 webhooks.

Airtable signs each notification it posts. The MAC secret lets OutWin check that signature.

  1. Copy the value of macSecretBase64 from the response, without the quotation marks around it.
  2. In OutWin, paste it into MAC secret in the block’s settings and select Save.

After you save, the settings show only the last four characters of the secret, with Replace and Remove. Under Set up, the second line changes to “The MAC secret is saved: deliveries are verified.”

Airtable issues the secret for one webhook, so OutWin saves it on the block’s URL. It is not saved on a connection. A second Webhook block has its own URL and needs its own Airtable webhook and secret.

Without a saved secret the block still starts runs, and nothing is verified: anyone who has the URL can start the workflow. Publishing then shows a warning that ends “has no signing secret saved, so its deliveries are not verified: anyone who has this URL can start this workflow”. The warning does not block publishing.

A webhook created with a personal access token or an OAuth token expires and is disabled seven days after it is created, unless it is refreshed. OutWin does not refresh it. After it expires, Airtable sends nothing and no run starts.

Airtable’s documentation gives two calls that each move the expiry to seven days from the call: its refresh endpoint for the webhook, and its endpoint that lists the webhook’s payloads. A workflow that lists the payloads on every notification therefore extends the webhook each time the base changes. A base that does not change for seven days sends no notification, and the webhook expires. For such a base, call the refresh endpoint on a schedule of your own.

Airtable’s notification has no event type. Under Events that start a run, the settings read “Every request starts a run: Airtable sends no event type to choose by.” You choose which changes produce a notification in the webhook’s specification, on Airtable’s side.

To start runs for only some notifications, add a row under Only when. For example, a row with the field body.webhook.id starts runs for one Airtable webhook only. A notification that fails a row is listed as Filtered out and starts no run. Webhook settings lists the comparisons.

  1. In Airtable, make a change that the webhook’s specification covers, such as editing a record in a table it watches.
  2. In OutWin, look under Recent deliveries in the block’s settings.

Recent deliveries lists every notification that reached the URL, including while the workflow is a draft. On a draft each is listed as Dropped with “The workflow is not published, so nothing ran.” It starts no run and is not run later. The last line under Set up changes from “Waiting for the first event…” to “Received an event. Dropped.”

Airtable’s documentation says it also sends one notification shortly after the webhook is created. That one arrives before you have saved the secret, so it is not verified.

With a secret saved, a notification listed as Dropped on a draft has passed the signature check. A delivery that fails the check is listed as Refused.

If you have edit access, select a notification to see what the block passed on. The list is kept for seven days, and the data of the newest 20 events is kept.

Read the notification and fetch the changes

Section titled “Read the notification and fetch the changes”

Each run receives one Airtable notification. An HTTP request block or a database block directly after the Webhook block reads it with these expressions. An AI block such as Think receives the whole value as its input.

Expression What it holds
{{input.body}} The notification as Airtable sent it, with the fields base, webhook, and timestamp.
{{input.body.base.id}} The id of the base that changed.
{{input.body.webhook.id}} The id of the Airtable webhook that sent the notification.
{{input.event.type}} Empty. Airtable sends no event type.
{{input.event.id}} Empty. Airtable sends no id for a notification.
{{input.event.time}} The notification’s time as an ISO 8601 date and time. It is the body’s timestamp field.
{{input.delivery.verified}} true only when the signature was checked and passed.

A block further along reads the same values through the Webhook block’s name, as in {{steps["Airtable"].body.base.id}} for a block named Airtable. Data and context describes what each block passes on.

To get the changes, add an HTTP request block after the Webhook block. It needs an API connection that holds an Airtable token. Set the block to send a GET request to /v0/bases/{{input.body.base.id}}/webhooks/{{input.body.webhook.id}}/payloads under the base URL https://api.airtable.com.

Airtable answers with a list named payloads, a cursor, and mightHaveMore. The cursor is the place the next call starts from. A call without a cursor starts from the first payload, so a run that does not pass one reads changes that earlier runs already read. To read only new changes, keep the cursor between runs, for example in a database, and pass it as the cursor query parameter. Airtable returns at most 50 payloads per call and deletes payloads after a week.

Publish the workflow. From then on, each notification that passes the filter starts a run. On a published workflow the block’s settings are read-only, and Recent deliveries is in the block’s inspector. You can still replace the secret there.

Outcome What happened
Ran The notification started a run.
Waiting 10 runs of the workflow are already active. The notification starts a run when one of them ends. A notification that waits longer than an hour is listed as Dropped.

OutWin does not skip duplicates for Airtable. A notification carries no id, so a notification that Airtable sends twice starts two runs. Two runs that list the payloads from the same cursor read the same changes, which is another reason to keep the cursor.

Receiving a notification costs no credits, and neither does one that is filtered out. A run that starts uses credits for the blocks that run in it.

Open Recent deliveries and read the outcome and the sentence beside the newest notification.

What you see Cause Fix
“Nothing has arrived yet.” No request has reached the URL. Check that the webhook’s notificationUrl is the block’s current URL and that the change you made is one its specification covers. Rotate token on a published workflow changes the URL, and the old one stops working.
Notifications arrived for some days and then stopped The Airtable webhook expired seven days after it was created or last refreshed, or Airtable turned its notifications off. Airtable’s documentation says it does that after a notification has failed 13 times. Read the webhook’s state with Airtable’s API. Refresh it, turn its notifications on again, or create a new webhook and save its secret.
Dropped with “The workflow is not published, so nothing ran.” The workflow is a draft. Publish the workflow. Notifications that arrived before then are not run later.
Dropped with “The workflow is paused, so nothing ran.” The workflow is paused. Resume the workflow. Notifications that arrived while it was paused are not run later.
Refused with “The signature did not match. Check that the secret saved here is the one the sender shows for this URL.” The saved secret is not the macSecretBase64 of the webhook that sent the notification. This can happen when the secret came from another webhook, or when the webhook was deleted and created again. Airtable cannot show the secret again. Create a new webhook with the block’s URL, save the new secret with Replace, and delete the old webhook. You do not republish the workflow.
Refused with “The saved secret could not be used as this sender’s key. Save it again exactly as the sender shows it.” The saved text holds characters that are not part of the macSecretBase64 value, for example the quotation marks around it. Copy the value again and select Replace.
Refused with “The request carried no signature.” A secret is saved in OutWin, and the request did not carry Airtable’s signature. A request sent by hand to try the URL has none. Make a change in the base so that Airtable sends the request.

A delivery listed as Refused is answered with status 401 and starts nothing. OutWin keeps none of its data. For every other outcome in the table, Airtable receives a success response and OutWin does not run the notification later.