Skip to content

Twilio 凭证#

¥Twilio credentials

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

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

¥Twilio trigger

支持的身份验证方法#

¥Supported authentication methods

  • 授权令牌:Twilio 建议仅在本地测试中使用此方法。

¥Auth token: Twilio recommends this method for local testing only.

  • API 密钥:Twilio 建议在生产环境中使用此方法。

¥API key: Twilio recommends this method for production.

相关资源#

¥Related resources

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

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

使用身份验证令牌#

¥Using Auth Token

要配置此凭据,你需要一个 Twilio 账户以及:

¥To configure this credential, you'll need a Twilio account and:

  • 你的 Twilio 账户 SID

¥Your Twilio Account SID

  • 你的 Twilio 身份验证令牌

¥Your Twilio Auth Token

要设置凭据:

¥To set up the credential:

  1. 在 n8n 中,选择“身份验证令牌”作为身份验证类型。

¥In n8n, select Auth Token as the Auth Type. 2. 在 Twilio 中,转到“控制台仪表板”>“账户信息”。

¥In Twilio, go to Console Dashboard > Account Info. 3. 复制你的账户 SID 并将其输入到你的 n8n 凭据中。此操作用作用户名。

¥Copy your Account SID and enter this in your n8n credential. This acts as a username. 4. 复制你的身份验证令牌并将其输入到你的 n8n 凭据中。此操作用作密码。

¥Cop your Auth Token and enter this in your n8n credential. This acts as a password.

有关更多信息,请参阅 身份验证令牌及其更改方法

¥Refer to Auth Tokens and How to Change Them for more information.

使用 API 密钥#

¥Using API key

要配置此凭据,你需要一个 Twilio 账户以及:

¥To configure this credential, you'll need a Twilio account and:

  • 你的 Twilio 账户 SID

¥Your Twilio Account SID

  • API 密钥 SID:创建 API 密钥时生成。

¥An API Key SID: Generated when you create an API key.

  • API 密钥密钥:创建 API 密钥时生成。

¥An API Key Secret: Generated when you create an API key.

要设置凭据:

¥To set up the credential:

  1. 在 n8n 中,选择“API 密钥”作为身份验证类型。

¥In n8n, select API Key as the Auth Type. 2. 在 Twilio 中,转到“控制台仪表板”>“账户信息”。

¥In Twilio, go to Console Dashboard > Account Info. 3. 复制你的账户 SID 并将其输入到你的 n8n 凭据中。

¥Copy your Account SID and enter it in your n8n credential. 4. 在 Twilio 中,转到你账户的 API 密钥和令牌 页面。

¥In Twilio, go to your account's API keys & tokens page. 5. 选择“创建 API 密钥”。

¥Select Create API Key. 6. 输入 API 密钥的友好名称,例如 n8n integration

¥Enter a Friendly name for your API key, like n8n integration. 7. 选择你的密钥类型。n8n 适用于主版和标准版。有关更多信息,请参阅 选择 API 密钥类型

¥Select your Key type. n8n works with either Main or Standard. Refer to Selecting an API key type for more information. 8. 选择“创建 API 密钥”以完成密钥创建。

¥Select Create API Key to finish creating the key. 9. 在“复制密钥”页面上,复制密钥旁边显示的 SID,并将其输入到你的 n8n 凭证 API 密钥 SID 中。

¥On the Copy secret key page, copy the SID displayed with the key and enter it in your n8n credential API Key SID. 10. 在“复制密钥”页面上,复制密钥旁边显示的 Secret,并将其输入到你的 n8n 凭证 API 密钥 Secret 中。

1
¥On the **Copy secret key** page, copy the **Secret** displayed with the key and enter it in your n8n credential **API Key Secret**.

请参阅 创建 API 密钥 获取更详细的说明。

¥Refer to Create an API key for more detailed instructions.

选择 API 密钥类型#

¥Selecting an API key type

当你创建 Twilio API 密钥时,必须选择密钥类型。n8n 凭证支持 Main 和 Standard 两种密钥类型。

¥When you create a Twilio API key, you must select a key type. The n8n credential works with Main and Standard key types.

以下是关于不同 API 密钥类型的更多详细信息:

¥Here are more details on the different API key types:

  • Main:此密钥类型提供的访问权限与在 API 请求中使用账户 SID 和身份验证令牌的访问权限相同。

¥Main: This key type gives you the same level of access as using your Account SID and Auth Token in API requests.

  • 标准:此密钥类型允许你访问 Twilio API 中的所有功能,但 API 密钥资源和账户资源除外。

¥Standard: This key type gives you access to all the functionality in Twilio's APIs except the API key resources and Account resources.

  • 已限制:此密钥类型目前处于测试阶段。n8n 尚未针对此密钥类型测试凭证;如果你尝试了此功能,请告知我们你是否遇到任何问题。

¥Restricted: This key type is in beta. n8n hasn't tested the credential against this key type; if you try it, let us know if you run into any issues.

有关键类型的更多信息,请参阅 API 密钥类型

¥Refer to Types of API keys for more information on the key types.