API Reference — posthog v2.23.4
API Reference posthog v#2.23.4 Copy Markdown View Source Modules PostHog Main API for working with PostHog PostHog. API. Client Behaviour and the default implementation of a PostHog API client. Uses Req . PostHog. Config PostHog configuration PostHog. Emails Send transactional email, such as a password reset or a receipt, and read its status. PostHog. Emails. Error PostHog did not queue the email or return its status, or the SDK could not tell whether it did.
PostHog. Emails. SendResult The queued email. A result means PostHog queued the email, not that it was delivered. PostHog. Emails. Status What happened to an email that PostHog.Emails.send/2 queued. PostHog. Emails. Warning A warning PostHog returned with a queued email. PostHog.Emails.send/2 also logs it. PostHog. Error Generic PostHog SDK error. PostHog. FeatureFlags Convenience functions to work with Feature Flags API PostHog.
FeatureFlags. Evaluations Snapshot of feature flag evaluations for a single distinct_id . PostHog. FeatureFlags. FlagDefinitionCacheProvider Optional shared cache contract for local feature flag definitions. PostHog. FeatureFlags. Result Represents the result of a feature flag evaluation. PostHog. Handler A logger handler . PostHog. Integrations. LLMAnalytics. Req Req plugin that automatically captures $ai_generation events for LLMs.
PostHog. Integrations. Plug Provides a plug that automatically extracts and sets relevant metadata from Plug.Conn . PostHog. LLMAnalytics LLM Analytics is an observability product for LLM-powered applications. PostHog. OpenFeature. Provider OpenFeature provider backed by PostHog feature flags. PostHog. OpenTelemetry. ContextSpanProcessor Adds PostHog IDs to application spans when they start. PostHog. Supervisor Supervisor that manages the processes required for PostHog event capture.
PostHog. Test PostHog Test Utilities Module PostHog. UnexpectedResponseError PostHog error that includes a response from the API, either full or partial. Mix Tasks mix posthog. package_source_code Packages source code into a binary file for source context in error tracking. mix posthog. public_api Checks the committed public API snapshot.