Identify your data region
Your data region determines the base URL for API requests. You can identify your region from your browser’s address bar when logged in to PostHog.
- US Region:
https://us.posthog.com/... - EU Region:
https://eu.posthog.com/...
Generate a personal API key
A personal API key authenticates requests to PostHog.
Navigate to Personal API keys
In PostHog, click Settings at the bottom of the left sidebar. Alternatively, if you are directed to the onboarding page, click the Default project dropdown in the top-right corner, then click the gear icon next to the default project name. On the Settings page, scroll down the left panel and select Personal API keys under the Account section.
Create a new API key
On the Personal API keys page, create a new key.
- Click Create personal API key.
- Enter a descriptive label (e.g.,
StackOne Integration).
Organization & project access
Select either All access or Organizations to grant the required access level. Do not select Projects only, as this will cause the connection to fail.
- All access (recommended): All organizations and projects your account has access to.
- Organizations: Select specific organizations to give access to.
- Projects: Not supported — selecting this option alone will result in a connection failure.
Select API scopes
Use the Select preset dropdown to choose All access, or configure individual scopes based on your use case:
Find your project token
The project token is required for event capture actions. This field is optional if you do not need capture functionality.
Linking the Account from the Hub
Navigate to the Hub
Fill out the fields
- Data Region
- Personal API Key
- Project Token (Optional)
If the account linking is successful, you will see the newly linked account in your Accounts page.