Skip to content

Airtable 凭据(Airtable credentials)#

你可以使用以下凭据验证以下节点:

🌐 You can use these credentials to authenticate the following nodes:

先决条件(Prerequisites)#

创建一个 Airtable 账户。

🌐 Create an Airtable account.

支持的身份验证方法(Supported authentication methods)#

  • 个人访问令牌 (PAT)
  • OAuth2

API 密钥弃用

n8n 曾经提供过与 Airtable 的 API 密钥认证方式。Airtable 自 2024 年 2 月起完全弃用了这些密钥。如果您之前使用的是 Airtable API 凭证,请将其替换为 Airtable 个人访问令牌或 Airtable OAuth2 凭证。n8n 建议使用个人访问令牌。

有关该服务的更多信息,请参阅 Airtable 的 API 文档

🌐 Refer to Airtable's API documentation for more information about the service.

使用个人访问令牌(Using personal access token)#

要配置此凭据,你需要:

🌐 To configure this credential, you'll need:

  • 个人 访问令牌(PAT)

创建你的 PAT:

🌐 To create your PAT:

  1. 前往 Airtable Builder Hub 个人访问令牌 页面。
  2. 选择 + 创建新令牌。Airtable 会打开 创建个人访问令牌 页面。
  3. 为你的令牌输入一个名称,例如 n8n credential
  4. Scopes 添加到你的令牌中。有关更多信息,请参阅 Airtable 的 Scopes 指南。n8n 建议使用以下权限范围:
    • data.records:read
    • data.records:write
    • schema.bases:read
  5. 为你的令牌选择访问权限。可以选择单个基础、多个基础(甚至来自不同工作区的基础)、你拥有的工作区中当前和未来的所有基础,或者你拥有的任何工作区中的所有基础,包括将来添加的基础/工作区。
  6. 选择 创建令牌
  7. Airtable 会打开一个显示你令牌的弹窗。复制此令牌并将其作为 访问令牌 输入到你的 n8n 凭证中。

有关更多信息,请参阅 Airtable 的 查找/创建 PAT 文档

🌐 Refer to Airtable's Find/create PATs documentation for more information.

使用 OAuth2(Using OAuth2)#

要配置此凭据,你需要:

🌐 To configure this credential, you'll need:

  • 一个 OAuth 重定向 URL
  • 客户端 ID
  • 客户端密钥

要生成所有这些信息,请注册一个新的 Airtable 集成:

🌐 To generate all this information, register a new Airtable integration:

  1. 打开你的 Airtable Builder Hub OAuth 集成 页面。
  2. 点击 注册新的 OAuth 集成 按钮。
  3. 输入 OAuth 集成的名称。
  4. 从你的 n8n 凭证中复制 OAuth 重定向 URL
  5. 将该重定向 URL 粘贴到 Airtable 中作为 OAuth 重定向 URL
  6. 选择 注册集成
  7. 在下一页,从 Airtable 复制 客户端 ID 并将其粘贴到你 n8n 凭证中的 客户端 ID
  8. 在 Airtable 中,选择 生成客户端密钥
  9. 复制客户端密钥并将其粘贴到 n8n 凭证中的 客户端密钥。10. 在 Airtable 中选择以下权限范围:
    • data.records:read
    • data.records:write
    • schema.bases:read11. 在 Airtable 中选择 保存更改。12. 在你的 n8n 凭证中,选择 连接我的账户。将会弹出一个 授予访问权限 的窗口。13. 按照指示操作,并选择你想要使用的基础(或所有基础)。14. 选择 授予访问权限 以完成连接。

请参阅 Airtable 注册新集成文档,了解注册新的 OAuth 集成的步骤。

🌐 Refer to the Airtable Register a new integration documentation for steps on registering a new Oauth integration.