Figma 凭据(Figma credentials)#
你可以使用以下凭据验证以下节点:
🌐 You can use these credentials to authenticate the following nodes:
先决条件(Prerequisites)#
创建一个 Figma 账户。你需要管理员或所有者级别的账户。
🌐 Create a Figma account. You need an admin or owner level account.
支持的身份验证方法(Supported authentication methods)#
- 访问令牌
- OAuth2
相关资源(Related resources)#
有关该服务的更多信息,请参阅Figma 的 API 文档
🌐 Refer to Figma's API documentation for more information about the service.
使用访问令牌(Using Access token)#
要配置此凭据,你需要:
🌐 To configure this credential, you'll need:
- 个人 访问令牌 (PAT):请参考 Figma API 访问令牌文档 获取生成个人 访问令牌 的说明。
使用 OAuth2(Using OAuth2)#
要配置此凭据,你需要一个 Figma 账户。
🌐 To configure this credential, you'll need a Figma account.
Note for n8n Cloud users
Cloud users don't need to provide connection details. Select Connect my account to connect through your browser.
如果你在自托管 n8n,你需要注册一个应用来设置 OAuth:
🌐 If you're self-hosting n8n, you'll need to register an application to set up OAuth:
- 打开 Figma 开发者应用 页面。
- 选择 创建新应用。
- 为你的应用输入一个名称,例如
n8n integration。 - 在 n8n 中,复制 OAuth 重定向 URL。
- 在 Figma 中,选择 添加回调 并输入你从 n8n 复制的 URL。
- 保存应用。
- 从 Figma 复制 客户端 ID 并将其输入到你的 n8n 凭证中。
- 从 Figma 复制 客户端密钥 并将其输入到你的 n8n 凭证中。
有关更多信息,请参阅 Figma OAuth 文档。
🌐 Refer to the Figma OAuth documentation for more information.
设置自定义范围(Setting custom scopes)#
Figma OAuth2 凭证默认使用以下权限范围:
🌐 Figma OAuth2 credentials use the following scopes by default:
webhooks:readwebhooks:write
要为你的凭据选择不同的范围,请启用 自定义范围 滑块并编辑 已启用的范围 列表。请记住,某些功能在范围更受限制时可能无法按预期工作。有关可用范围的完整列表,请参阅 Figma 的 OAuth 范围。
🌐 To select different scopes for your credentials, enable the Custom Scopes slider and edit the Enabled Scopes list. Keep in mind that some features may not work as expected with more restrictive scopes. Refer to Figma's OAuth scopes for the full list of available scopes.