Run request using webhook URL

Every request can be run using its webhook URL. This means the request can be run automatically when an event happens, e.g. when a record is updated or a form gets a new submission.

This feature requires a paid Data Fetcher plan.

Authorize Data Fetcher and Airtable

To schedule requests, you will first need to authorize (using OAuth) Data Fetcher and Airtable. You will only need to do this once.

  • On the create request screen, under Webhook, click "Authorize".

  • On the modal that opens, click "I understand, let's Authorize".

  • A new tab/ window will open, prompting you to let Data Fetcher access Airtable. Add the bases you want Data Fetcher to have access to. We recommend selecting "All current and future bases in all current and future workspaces" to avoid any unauthorized issues in the future.

  • Click "Grant access".

  • You will return to the Data Fetcher extension and the webhook will be switched on.

Turn On Request Webhook URL

To run your request by calling its webhook URL, you first need to turn the webhook on:

  • On the create request screen, click on the Webhook URL tab and turn on "Turn on webhook for request".

https://hook.datafetcher.com/h/rj4X86TTJ747CAPj9gVU9mrKnN33wKqT46CbaaTxnaXqsr
  • You can try visiting the URL in your browser. You should see a success message and the request will run. You can check the request's Run History to confirm the request ran successfully.

Run for One Particular Record

You can add the record_id parameter to the webhook URL to run the request for a particular record. Make sure you have first selected a Run on Multiple Records table and view in Advanced settings.

With the record_id parameter, the webhook URL will look something like:

https://hook.datafetcher.com/h/rr4X86TTJ747CAPj9gVU9mrKnN33wKqT46CbaaTxnaXqsr?record_id=reca19WnKiU2L46cj

Call Webhook from Airtable Automation

You can call the webhook and run the request from an Airtable automation. This means you can run the request when a record is updated, a form is submitted, a record matches a condition or any other Automation trigger.

  • Create an Airtable automation with the trigger you want, e.g. When a record is updated.

  • For the automation action, select Run a script.

  • Add the following script, replacing YOUR_WEBHOOK_URL with the webhook URL for your request:

await fetch(`YOUR_WEBHOOK_URL`);

You can run the request from an Airtable automation for only one record by setting the record_id parameter.

  • In Airtable, add an input variable called record_id with the value of the record id from the trigger.

  • Add the following script, replacing YOUR_WEBHOOK_URL with the webhook URL for your request:

await fetch(`YOUR_WEBHOOK_URL?record_id=${input.config().record_id}`)

Last updated