Skip to content

Xata 凭证#

¥Xata credentials

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

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

先决条件#

¥Prerequisites

创建 Xata 数据库或在现有数据库上创建账户。

¥Create a Xata database or an account on an existing database.

支持的身份验证方法#

¥Supported authentication methods

  • API 密钥

¥API key

相关资源#

¥Related resources

有关服务的更多信息,请参阅 Xata 文档

¥Refer to Xata's documentation for more information about the service.

View n8n's Advanced AI documentation.

使用 API 密钥#

¥Using API key

要配置此凭据,你需要:

¥To configure this credential, you'll need:

  • 数据库端点:Workspace API 要求你使用以下格式指定要从中请求信息的数据库:https://{workspace-display-name}-{workspace-id}.{region}.xata.sh/db/{dbname}。有关更多信息,请参阅 工作区 API

¥The Database Endpoint: The Workspace API requires that you identify the database you're requesting information from using this format: https://{workspace-display-name}-{workspace-id}.{region}.xata.sh/db/{dbname}. Refer to Workspace API for more information.

  • {workspace-display-name}:工作区显示名称是一个可选标识符,你可以将其包含在数据库端点中。API 会忽略此信息,但如果你要保存多个凭据,则包含此信息可以更轻松地确定此数据库所在的工作区。

    ¥{workspace-display-name}: The workspace display name is an optional identifier you can include in your Database Endpoint. The API ignores it, but including it can make it easier to figure out which workspace this database is in if you're saving multiple credentials.

  • {workspace-id}:工作区的唯一 ID,由 6 个字母数字字符组成。

    ¥{workspace-id}: The unique ID of the workspace, 6 alphanumeric characters.

  • {region}:数据库的托管区域。此值必须与数据库区域配置匹配。

    ¥{region}: The hosting region for the database. This value must match the database region configuration.

  • {dbname}:你正在与之交互的数据库的名称。

    ¥{dbname}: The name of the database you're interacting with.

  • 分支机构:输入数据库的 GitHub 分支名称。

¥A Branch: Enter the name of the GitHub branch for your database.

¥An API Key: To generate an API key, go to Account Settings and select + Add a key. Refer to Generate an API Key for more information.