Integrate with Airtable
Integrate with Airtable to create and update Airtable records.
Before you begin
-
Make sure you have your Airtable API at hand. To generate it, see Airtable documentation.
-
Get your Airtable App ID.
-
Get your Airtable table name. You can find it on the table tab. For example:
To use the name in the endpoint URL, you need to encode the space to Imported%20table
.
- To update a record, you also need the
recordId
. You can find it by calling the List records endpoint. For details, see Airtable documentation.
Create a record
-
In Next Matter select the workflow that should integrate with Airtable, and add a new integration step.
-
Click Settings and enter the following details:The fields might look like the following:
-
Method: POST
-
URL:
https://api.airtable.com/v0/YOUR_APP_ID/YOUR_TABLE_NAME
-
Headers: Content-Type: application/json
-
Headers: Authorization:
Airtable_API_KEY
-
Body might look like the following:
-
-
Create a variable for the
recordId
with the value of$.records[0].id
. -
Save your changes.
You can access the ID of the newly created record in subsequent steps through a data reference. This can be used to update the record later on.
Update a record
-
In Next Matter select the process that should integrate with Airtable, and add a new integration step.
-
Click Settings and enter the following details:
-
Method: PATCH
-
URL:
https://api.airtable.com/v0/YOUR_APP_ID/YOUR_TABLE_NAME/RECORD_ID
-
Headers: Content-Type: application/json
-
Headers: Authorization:
Airtable_API_KEY
-
Body might look like the following:
-
-
Save your changes.