Step 1: Access the Installation Page
Visit the Autoplay installation page: https://app.autoplay.ai/install
You will be asked for the following details which we will retrieve in Step 2 and Step 3:
- Personal API key
- Host URL
- 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
- Go to your PostHog account (e.g. https://app.posthog.com).
- 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
- Navigate to the specific project in PostHog.
- Look at the URL in your browser:
https://app.posthog.com/project/abcd1234
- Copy the part after
/project/
→ Example:123564
3️⃣ Create a Personal API Key
- In PostHog, go to Settings → Personal API Keys.
- Click "Create API Key".
- Name it something like
Autoplay Integration Key
.
- Press Project, and link the correct project.
- 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
- 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
- Enter the following into the integration setup:
- Host URL
- Project ID
- Personal API Key
- Click "Connect".
- You should see a message: ✅ Success