How to Connect your Posthog

2 min read

Step 1: Access the Installation Page

Visit the Autoplay installation page: https://app.autoplay.ai/install

💡
We will soon be deprecating the option Create a new one with Autoplay so if you do not have a posthog account please visit https://posthog.com/

You will be asked for the following details which we will retrieve in Step 2 and Step 3:

  1. Personal API key
  1. Host URL
  1. Project ID

Step 2: Create Your Personal API Key

To integrate PostHog with Autoplay, you’ll need to provide three values:

Required:

  • Personal API Key
  • Host URL
  • Project ID

1️⃣ Get Your Host URL

  1. Go to your PostHog account (e.g. https://app.posthog.com).
  1. The Host URL is everything up to (and including) .com. → Example: https://app.posthog.com

This value stays the same for all projects under the same PostHog instance.


2️⃣ Find Your Project ID

  1. Navigate to the specific project in PostHog.
  1. Look at the URL in your browser:https://app.posthog.com/project/abcd1234
  1. Copy the part after /project/ → Example: 123564

3️⃣ Create a Personal API Key

  1. In PostHog, go to SettingsPersonal API Keys.
  1. Click "Create API Key".
  1. Name it something like Autoplay Integration Key.
  1. Press Project, and link the correct project.
  1. Under permissions, make sure the key has:
    • Read access to Project
    • Read access to Query
    • Read access to Session Recordings
    • Read access to Person
    • Read access to Cohort
  1. Click Create and copy the generated key.

This key will only be shown once—save it securely.


Step 3: Get your Host Url

In this URL: https://us.posthog.com/project/118223/settings/user-api-keys

The host url is everything up to and including “posthog.com”

Look at this example URL:

https://us.posthog.com/project/118223/settings/user-api-keys

Your host URL is the base part of the link — everything up to and including posthog.com.

➡️ In this case, the host URL is:

https://us.posthog.com

Step 4: Get your Project ID

Look at this example URL:

https://us.posthog.com/project/118223/settings/user-api-keys

Your Project ID is the number that comes right after /project/.

➡️ In this case, the Project ID is:

118223

✅ Final Step: Connect the Integration

  1. Enter the following into the integration setup:
    • Host URL
    • Project ID
    • Personal API Key
  1. Click "Connect".
  1. You should see a message: ✅ Success

Did this answer your question?