> ## Documentation Index
> Fetch the complete documentation index at: https://nango.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# PostHog (Capture API) - How do I link my account?

## Overview

To authenticate with PostHog's Capture API, you need two things:

1. **Hostname** - The domain your capture API requests are sent to.
2. **Project Token** - A public, write-only key (starts with `phc_`) used to send events. It doesn't grant access to read any of your data.

This guide will walk you through finding those values within PostHog.

### Prerequisites:

* You must set up an account with PostHog.

#### Step 1: Finding your hostname

Enter the value matching your PostHog setup:

| Setup       | Hostname                |
| ----------- | ----------------------- |
| US Cloud    | `us.i.posthog.com`      |
| EU Cloud    | `eu.i.posthog.com`      |
| Self-hosted | your own PostHog domain |

#### Step 2: Finding your Project Token

1. Go to your project's **Settings**, then the **Settings - General** page.
2. Copy the value labeled **Project token** (it starts with `phc_`).

#### Step 3: Enter credentials in the Connect UI

Once you have your **Hostname** and **Project Token**:

1. Open the form where you need to authenticate with PostHog.
2. Enter your **Hostname** and **Project Token** in their respective fields.
3. Submit the form, and you should be successfully authenticated.

<img src="https://mintcdn.com/nango/Pd3pVmsQ67c6dzTq/api-integrations/posthog-capture/form.png?fit=max&auto=format&n=Pd3pVmsQ67c6dzTq&q=85&s=7376a9291ccca45c4aa7b0ed7f154730" style={{maxWidth: "450px" }} width="982" height="1312" data-path="api-integrations/posthog-capture/form.png" />

You are now connected to PostHog's Capture API.
