Save the date! Join us on October 16 for our Product Ops launch event. Register here.
Feb 22, 2024 04:05 PM
I've successfully created a webhook via the Airtable API using the following json:
{
"notificationUrl": "https://mycallback.app/",
"specification": {
"options": {
"filters": {
"dataTypes": [
"tableData"
],
"recordChangeScope": "tbla....."
}
}
}
}
It seems to work in the sense that my callback URL gets called. Right now all I'm doing is logging the request body that is sent back to my endpoint and it seems to be missing all the important data about what has changed. This is what I get back:
{
base: { id: 'app6......' },
webhook: { id: 'achnoA6.....' },
timestamp: '2024-02-22T23:46:02.849Z'
}
ANy idea what I did wrong or what I should be doing to get the details of what field changed. I see the change in the UI and I've tried making the change in the UI as well as via code using an Airtable library. And again, I see the change when viewing in the UI and the logs show I am receiving a callback.
Solved! Go to Solution.
Feb 22, 2024 04:41 PM
I think you're supposed to make another request for the contents after that?
Feb 22, 2024 04:41 PM
I think you're supposed to make another request for the contents after that?
Feb 22, 2024 05:11 PM
Yes wow, I totally missed that part. Now it makes sense why it's called a notification URL and not a callback URL. Thank you.