n8n-docs/docs/integrations/builtin/credentials/posthog.md

1.8 KiB

title description contentType
PostHog credentials Documentation for PostHog credentials. Use these credentials to authenticate PostHog in n8n, a workflow automation platform. integration

PostHog credentials

You can use these credentials to authenticate the following nodes:

Prerequisites

Create a PostHog{:target=_blank .external-link} account or host PostHog on your server.

Supported authentication methods

  • API key

Refer to PostHog's API documentation{:target=_blank .external-link} for more information about the service.

Using API key

To configure this credential, you'll need:

  • The API URL: Enter the correct domain for your API requests:
    • On US Cloud, use https://us.i.posthog.com for public POST-only endpoints or https://us.posthog.com for private endpoints.
    • On EU Cloud, use https://eu.i.posthog.com for public POST-only endpoints or https://eu.posthog.com for private endpoints.
    • For self-hosted instances, use your self-hosted domain.
    • Confirm yours by checking your PostHog instance URL.
  • An API Key: The API key you use depends on whether you're accessing public or private endpoints: