- Print
Airtable Connector
Introduction
The Tulip-Airtable Integration provides an easy way to integrate Tulip with existing data in Airtable. The API closely follows REST semantics, uses JSON to encode objects, and relies on standard HTTP codes to signal operation outcomes. The Goal of this connector is to integrate Airtable with Tulip using HTTP Connectors & provide our customers with an out of box Airtable connector that can be imported into their instance.
Purpose
We are going to highlight different HTTP connector functions that can be built by doing HTTP calls to Airtable API endpoints to interact with the Airtables within a workspace to try out various read and write actions on the tables that could be leveraged for various use cases. We will explore the usage of OAuth Bearer Token and take advantage
API Doc
Pre-Requisites
- Create an account on Airtable
- Create new workspace, and Generate Bearer token to be used as part of the Connection headers.
Tulip Connection Details
The following information would need to be configured on Tulip's connectors.
- Running On: Cloud Connector Host
- Host :api.airtable.com
- Port:443
- TLS:Yes
- OAuth 2(Bearer Token): Authentication will be carried forward to all the Connector Functions.
Connector Functions
Airtable Create Record
Purpose
This connector function creates either a single or a list of records within Airtable.
Your request body should include an array of up to 10 record objects. Each of these objects should have one key, fields, which contains all of your record's values by field name. You can include all, some, or none of the field values.
Endpoint
HTTP POST call to the endpoint https://api.airtable.com/v0/base_id/TableName
Required Input
The following are the parameters that are to be passed
- TableName (URL)
- An array of objects passed as request body for creating multiple records
Output Extractor
- Array of Objects
- Each Object has RecordId, and other Fields of Table
Airtable Delete Record
Purpose
This connector function will delete the data from Airtable with the provided record_id. The Data will be deleted from the table permanently
Endpoint
HTTP DELETE call to the endpoint -https://api.airtable.com/v0/base_id/TableName
Required Input
The following are the URL parameters that are to be passed
- Table Name
- Record Id
Airtable Get Record
Purpose
This connector function gets a single record from Airtable with the provided Record Id, With this connector, we can get the data to modify or use as inputs to another connector
Endpoint
HTTP GET call to the endpoint -https://api.airtable.com/v0/base_id/TableName
Required Input
The following are the URL parameters that are to be passed
- TableName
- Record Id
Output Extractor
- Array of Objects
- Each Object had RecordId, and other Fields of Table
Airtable List Records
Purpose
This connector function gets a list of records from Airtable, the number of records is defined by the max records query parameter. With this connector, we can get the data to modify or use as inputs to another connector
Endpoint
HTTP GET call to the endpoint -https://api.airtable.com/v0/base_id/TableName
Required Input
The following are the parameters that are to be passed
- Table Name (URL)
- MaxRecords: Number specifying the Number of records to be Fetched (Query Parameter)
Output Extractor
- Array of Objects
- Each Object had RecordId, and other Fields of Table
Airtable Update Record
Purpose
This connector function updates a record within Airtable.
A PATCH request will only update the fields you specify, leaving the rest as they were. The Connector will take table Name, Record Id and the list of values to be updated in the table.
Endpoint
HTTP Patch call to the endpoint -https://api.airtable.com/v0/base_id/TableName
Required Input
The following are the parameters that are to be passed
- TableName (URL)
- Record Id (URL)
- Updated Values: the Different columns that we would like to update sent as the request body
Output Extractor
- Array of Objects
- Each Object had RecordId, and other Fields of Table