Calimatic Connect|Documentation
PricingSign In
PostHog

PostHog

Open-source product analytics and feature flags.

Analyticsoauthapi_key_authproxy

Connect PostHog

PostHog uses OAuth for authentication. Redirect your user to the login URL to start the authorization flow. After the user authorizes access, the callback is handled automatically.

# Redirect user to start OAuth flow
GET /auth/posthog/login?account_id=YOUR_ACCOUNT_ID&redirect_uri=https://your-app.com/callback
# Callback handled automatically at
GET /auth/posthog/callback

Make API Calls via Proxy

Use the proxy endpoint to make authenticated API calls to PostHog without managing tokens yourself. Calimatic Connect handles credential injection and token refresh automatically.

POST /connect/v1/proxy/posthog
# Headers
Authorization: YOUR_JWT_TOKEN
Content-Type: application/json
# Body
{
"method": "GET",
"path": "/me"
}

Check Status

Verify whether your PostHog connection is active and credentials are valid:

GET /connect/v1/providers/posthog/status
# Headers
Authorization: YOUR_JWT_TOKEN

Disconnect

Remove the PostHog connection and revoke stored credentials:

DELETE /connect/v1/providers/posthog/disconnect
# Headers
Authorization: YOUR_JWT_TOKEN