> ## Documentation Index
> Fetch the complete documentation index at: https://docs.refold.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Setup

> Access to your users' Airtable records through OAuth.

To setup your Airtable app in Refold for OAuth, you will need the following credentials from your [Airtable Developer account](https://airtable.com/create/oauth):

* Client ID
* Client Secret
* Scopes

### Pre-requisites

1. Airtable Developer account. You can create one [here](https://airtable.com/signup).

<Info>If you haven't already created an app in Airtable, you'd need to create one.</Info>

### Creating an app in Airtable

To create a Airtable app and acquire the above mentioned credentials, please follow the steps mentioned below:

1. Log in to your [Airtable Developer account](https://airtable.com/create/oauth).
2. Go to `OAuth integrations` in the side menu and click on `+ Register new OAuth integration ` button in the right.

<img height="200" src="https://mintcdn.com/cobalt-55/USIhqTKu3QZXm8QM/images/Airtable/airtable_navigation.png?fit=max&auto=format&n=USIhqTKu3QZXm8QM&q=85&s=f5bc45446ddef25e2dc078144f0f79a9" alt="Navigation for App setup" data-path="images/Airtable/airtable_navigation.png" />

3. Go to your [`Apps catalog`](https://app.gocobalt.io/apps) in **Refold** > Search for `Airtable` > `Settings` > `Use your credentials` > `Callback Url` > Copy it.
4. In the app, enter the `App Name`, paste the Callback Url under `OAuth redirect URL` and click `Register integration`.
5. Select the required permissions in the **Scopes** section, as provided in your Refold Airtable settings page and click on the `Save changes` button.

<img height="200" src="https://mintcdn.com/cobalt-55/USIhqTKu3QZXm8QM/images/Airtable/airtable_config.png?fit=max&auto=format&n=USIhqTKu3QZXm8QM&q=85&s=09927c72b545c1becfe6aad8350c98d7" alt="Setting up Airtable Developer app" data-path="images/Airtable/airtable_config.png" />

8. Scroll to the **Developer details** section and copy the **Client ID** and get the **Client Secret** by clicking on the `Generate Client secret` button.
   <Info>Copy the Client Secret displayed as it will be shown only once.</Info>

<img height="200" src="https://mintcdn.com/cobalt-55/USIhqTKu3QZXm8QM/images/Airtable/airtable_credentials.png?fit=max&auto=format&n=USIhqTKu3QZXm8QM&q=85&s=ae17acc229d6697820581f7ee04c2eec" alt="Getting Credentials" data-path="images/Airtable/airtable_credentials.png" />

#### Configuring credentials in Refold

App settings page lets you configure the authentication settings for an `OAuth 2.0` based application. For your customers to provide you authorization to access their data,
they would first need to install your application. This page lets you set up your application credentials.

<img height="200" src="https://mintcdn.com/cobalt-55/USIhqTKu3QZXm8QM/images/Airtable/airtable_cobalt.png?fit=max&auto=format&n=USIhqTKu3QZXm8QM&q=85&s=2383f80a86af8f5cd01ad0b31ec1bd99" alt="Setting up application client credentials" data-path="images/Airtable/airtable_cobalt.png" />

Provide the acquired Client ID and Client Secret under Settings of the app and save it.

#### Configuring Scopes

Refold lets you configure what permissions to ask from your users while they install your application. The scopes can be added or removed from the App settings page, under `Permissions & Scopes`
section.

For some applications Refold sets **mandatory scopes** which cannot be removed. Additional scopes can be selected from the drop down. Refold also has the provision to add any
custom scopes supported by the respective platform.

<img height="200" src="https://mintcdn.com/cobalt-55/USIhqTKu3QZXm8QM/images/Airtable/airtable_scopes.png?fit=max&auto=format&n=USIhqTKu3QZXm8QM&q=85&s=b779033484e9b32d21b9370a5d19af02" alt="OAuth Scopes" data-path="images/Airtable/airtable_scopes.png" />

Once the scopes has been added to the application in Refold, go to your [Airtable Developer account](https://airtable.com/create/oauth) and update the scopes as added on Refold.

Select the OAuth App created for Refold > Go to `Scopes` section  > Add the scopes as added in Refold > Click on `Save changes`.

<Warning>
  If you are facing scopes missing or invalid scope error. Make sure you are not passing any custom scope not supported by the platform. And, the scopes selected here are
  identical to the ones selected in the platform.
</Warning>

#### Actions and triggers

Once the above setup is completed, you can create orchestrations of your use-cases using Airtable actions and triggers. Following are the set of Airtable actions and triggers
supported by Refold.

<Tabs>
  <Tab title="Actions">
    <AccordionGroup>
      <Accordion title="Bases">
        1. **List Bases** - List all bases in Airtable.
        2. **Create Base** - Create new base in Airtable.
        3. **Get Base Schema** - Get a base schema in Airtable.
      </Accordion>

      <Accordion title="Fields">
        4. **Create Field** - Create a new Field in Airtable.
        5. **Update Field** - Update a field in Airtablee.
      </Accordion>

      <Accordion title="Record">
        6. **Create Record** - Create a record in Airtable.
        7. **Update Record** - Update a record in Airtable.
        8. **Delete Record** - Delete a record in Airtable.
        9. **List Records** - List all records in Airtable.
      </Accordion>

      <Accordion title="Table">
        10. **Create Table** - Create a table in Airtable.
        11. **Update Table** - Update a table in Airtable.
      </Accordion>

      <Accordion title="Others">
        12. **HTTP Request** - Make HTTP API calls to any Airtable documented REST APIs.
      </Accordion>
    </AccordionGroup>
  </Tab>

  <Tab title="Triggers">
    There are no triggers in this application.
  </Tab>
</Tabs>
