P
PostHog API
Details
- URL
-
https://us.posthog.com - Docs
- https://posthog.com/docs/api.md
Authentication
Authorization: Bearer <credential> /personal_api_key=<credential> In PostHog, open Personal API keys, click + Create a personal API Key, choose scopes, and copy the key immediately. For MCP-specific manual setup, PostHog also links a preset at user API keys with MCP preset.
OAuth 2.0 oauth2 discovered
Authorization: Bearer <credential> OAuth 2.0 — self-onboarding
Point your MCP client at the server URL and approve access in the browser. The server accepts a Client ID Metadata Document (CIMD), so the client authenticates with its own hosted URL as the client_id — nothing to register.
token=<credential> Open your project's settings in PostHog at Project settings and copy the project token. PostHog uses this token for public ingestion and feature-flag evaluation endpoints; it is sent in the request payload rather than as a Bearer token.