PostHog 凭据#
¥PostHog credentials
你可以使用以下凭据验证以下节点:
¥You can use these credentials to authenticate the following nodes:
先决条件#
¥Prerequisites
创建 PostHog 账户或在你的服务器上托管 PostHog。
¥Create a PostHog account or host PostHog on your server.
支持的身份验证方法#
¥Supported authentication methods
- API 密钥
¥API key
相关资源#
¥Related resources
有关服务的更多信息,请参阅 PostHog API 文档。
¥Refer to PostHog's API documentation for more information about the service.
使用 API 密钥#
¥Using API key
要配置此凭据,你需要:
¥To configure this credential, you'll need:
- API URL:输入 API 请求的正确域名:
¥The API URL: Enter the correct domain for your API requests:
-
在美国云上,公共 POST 端点使用
https://us.i.posthog.com,私有端点使用https://us.posthog.com。¥On US Cloud, use
https://us.i.posthog.comfor public POST-only endpoints orhttps://us.posthog.comfor private endpoints. -
在欧盟云上,公共 POST 端点使用
https://eu.i.posthog.com,私有端点使用https://eu.posthog.com。¥On EU Cloud, use
https://eu.i.posthog.comfor public POST-only endpoints orhttps://eu.posthog.comfor private endpoints. -
对于自托管实例,请使用你的自托管域名。
¥For self-hosted instances, use your self-hosted domain.
-
通过检查你的 PostHog 实例 URL 来确认。
¥Confirm yours by checking your PostHog instance URL.
-
API 密钥:你使用的 API 密钥取决于你访问的是公共端点还是私有端点:
¥An API Key: The API key you use depends on whether you're accessing public or private endpoints:
-
对于仅接受 POST 请求的公共端点,请使用项目“常规设置”中的 项目 API 密钥。
¥For public POST-only endpoints, use a Project API key from your project's General Settings.
-
对于私有端点,请使用用户账户“个人 API 密钥设置”中的 个人 API 密钥。有关更多信息,请参阅 如何获取个人 API 密钥。
¥For private endpoints, use a Personal API key from your User account's Personal API Keys Settings. Refer to How to obtain a personal API key for more information.