Skip to content

Pipedrive 凭据#

您可以使用这些凭据来验证以下节点:

支持的认证方法#

  • API token
  • OAuth2

相关资源#

参考 Pipedrive 的开发者文档了解有关该服务的更多信息。

使用 API token#

要配置此凭据,您需要一个 Pipedrive 账户和:

  • 一个 API Token

获取您的 API 令牌:

  1. 打开您的 API Personal Preferences
  2. 复制 Your personal API token 并将其输入到您的 n8n 凭据中。

如果您有多个公司,您需要首先选择正确的公司:

  1. 选择您的账户名称并确保您正在查看正确的公司。
  2. 然后选择 Company Settings
  3. 选择 Personal Preferences
  4. 选择 API 标签页。
  5. 复制 Your personal API token 并将其输入到您的 n8n 凭据中。

参考如何找到 API 令牌了解更多信息。

使用 OAuth2#

要配置此凭据,您需要一个 Pipedrive 开发者沙盒账户和:

  • 一个 Client ID 客户端 ID
  • 一个 Client Secret 客户端密钥

要获取两者,您需要注册新应用:

  1. 选择右上角的您的个人资料名称。
  2. 找到您的沙盒账户的公司名称并选择 Developer Hub

    没有 Developer Hub

    如果您在账户下拉菜单中没有看到 Developer Hub,请注册开发者沙盒账户

  3. 选择 Create an app

  4. 选择 Create public app。应用的 Basic info 标签页打开。
  5. 为您的应用输入 App name,如 n8n integration
  6. 从 n8n 复制 OAuth Redirect URL 并将其添加为应用的 Callback URL
  7. 选择 Save。应用的 OAuth & access scopes 标签页打开。
  8. 为您的应用开启适当的 Scopes。参考下面的 Pipedrive 节点作用域Pipedrive Trigger 节点作用域了解更多指导。
  9. 复制 Client ID 并将其输入到您的 n8n 凭据中。
  10. 复制 Client Secret 并将其输入到您的 n8n 凭据中。

参考注册公共应用了解更多信息。

Pipedrive 节点作用域#

您添加到应用的作用域取决于您想在 n8n 中使用它进行哪些节点以及您想用这些节点完成什么操作。

您可能需要为 Pipedrive 节点使用的作用域:

对象 节点操作 UI 作用域 实际作用域
Activity Get data of an activity
Get data of all activities
Activities: Read only
Activities: Full Access
activities:read
activities:full
Activity Create
Delete
Update
Activities: Full Access activities:full
Deal Get data of a deal
Get data of all deals
Search a deal
Deals: Read only
Deals: Full Access
deals:read
deals:full
Deal Create
Delete
Duplicate
Update
Deals: Full Access deals:full
Deal Activity Get all activities of a deal Activities: Read only
Activities: Full Access
activities:read
activities:full
Deal Product Get all products in a deal Products: Read Only
Products: Full Access
products:read
products:full
File Download
Get data of a file
参考下面的注释 参考下面的注释
File Create
Delete
参考下面的注释 参考下面的注释
Lead Get data of a lead
Get data of all leads
Leads: Read only
Leads: Full access
leads:read
leads:full
Lead Create
Delete
Update
Leads: Full access leads:full
Note Get data of a note
Get data of all notes
参考下面的注释 参考下面的注释
Note Create
Delete
Update
参考下面的注释 参考下面的注释
Organization Get data of an organization
Get data of all organizations
Search
Contacts: Read Only
Contacts: Full Access
contacts:read
contacts:full
Organization Create
Delete
Update
Contacts: Full Access contacts:full
Person Get data of a person
Get data of all persons
Search
Contacts: Read Only
Contacts: Full Access
contacts:read
contacts:full
Person Create
Delete
Update
Contacts: Full Access contacts:full
Product Get data of all products Products: Read Only products:read

Files 和 Notes

Files 和 Notes 的作用域取决于它们与哪个对象相关:

  • Files 与 Deals、Activities 或 Contacts 相关。
  • Notes 与 Deals 或 Contacts 相关。

参考这些对象的作用域。

Pipedrive 节点还支持自定义 API 调用。为您打算进行的任何自定义 API 调用添加相关作用域。

参考作用域和权限说明了解更多信息。

Pipedrive Trigger 节点作用域#

Pipedrive Trigger 节点需要 Webhooks: Full access (webhooks:full) 作用域。