API Reference posthog v2.9.1

View Source

Modules

Main API for working with PostHog

Behaviour and the default implementation of a PostHog API client. Uses Req.

PostHog configuration

Generic PostHog SDK error.

Convenience functions to work with Feature Flags API

Snapshot of feature flag evaluations for a single distinct_id.

Represents the result of a feature flag evaluation.

Req plugin that automatically captures $ai_generation events for LLMs.

Provides a plug that automatically extracts and sets relevant metadata from Plug.Conn.

LLM Analytics is an observability product for LLM-powered applications.

Supervisor that manages the processes required for PostHog event capture.

PostHog Test Utilities Module

PostHog error that includes a response from the API, either full or partial.

Mix Tasks

Packages source code into a binary file for source context in error tracking.