Skip to content

Analytics

PostHog
API integration

Ship Analytics features without building the integration. Full PostHog API access via Proxy, normalized data through Unified APIs, and 1260+ MCP-ready tools for AI agents — all extensible to your exact use case.

Talk to us
PostHog

Use Cases

Why integrate with PostHog

Common scenarios for SaaS companies building PostHog integrations for their customers.

01

Sync PostHog persons and groups into your product's user directory

If you're building a CRM, customer success platform, or revenue tool, you can pull PostHog's Persons (users) and Groups (organizations) into your product so your customers see real account structures alongside product usage context — without building a custom PostHog integration from scratch.

02

Enrich support workflows with PostHog user context

Helpdesk and support platforms can map their user records to PostHog Persons, giving agents instant visibility into who the user is, which organization they belong to, and their associated properties — all surfaced natively in the support UI.

03

Power account-level health scoring with organization data

Customer success and revenue intelligence platforms can pull PostHog Group (organization) data to build product health scores, identify at-risk accounts, and give account executives real context about how a company is using the product.

04

Build AI-powered copilots with user and org awareness

AI agent platforms and copilot products can query PostHog user and organization data to ground their responses in real context — knowing who the user is, what organization they belong to, and their properties before generating recommendations or troubleshooting steps.

05

Automate user and organization provisioning across tools

Workflow automation and iPaaS products can sync PostHog's user and organization directory with other systems, ensuring that when a new person or group appears in PostHog, downstream tools stay in sync without manual intervention.

What You Can Build

Ship these features with Truto + PostHog

Concrete product features your team can ship faster by leveraging Truto’s PostHog integration instead of building from scratch.

01

Account directory sync from PostHog Groups

Automatically import PostHog Groups (organizations) into your platform so customers see their real account hierarchy without manual CSV uploads.

02

User identity resolution panel

Surface PostHog Person properties — like email, name, and custom traits — directly inside your product's user detail view, giving your customers a unified profile.

03

Organization-aware feature gating

Pull PostHog Group properties (e.g., subscription tier, plan type) into your platform to drive access controls, entitlements, or tiered feature visibility for end users.

04

Cross-platform user directory search

Let your customers search and browse PostHog Persons and Groups alongside users from other connected tools using Truto's Unified User Directory API.

05

Account context cards for sales and support

Display a compact PostHog organization card — showing group properties and associated users — inside CRM deal views or support ticket sidebars.

SuperAI

PostHog AI agent tools

Comprehensive AI agent toolset with fine-grained control. Integrates with MCP clients like Cursor and Claude, or frameworks like LangChain.

list_all_post_hog_me

Get the authenticated PostHog user's profile and settings via the @me shortcut. Returns the user record including its id and attributes defined by the upstream User schema. No required parameters.

list_all_post_hog_members

List members of a PostHog organization. Returns: id, user, level, joined_at, updated_at, is_2fa_enabled, has_social_auth, last_login, search_match_type. Required: organization_id.

list_all_post_hog_projects

List comments and tasks across a PostHog project, filterable by scope, item, kind, author, or search text. Returns comment records with id, content, kind, scope, created_by, and completion fields. Required: project_id.

post_hog_projects_attach_comment

Create a comment in a PostHog project. Returns the comment with id, content, scope, is_task, created_at, and created_by. Required: project_id. Identical support messages are deduplicated — the original comment is returned instead of a duplicate.

post_hog_projects_attach_subscription

Create a subscription in a PostHog project for recurring insight, dashboard, or AI report deliveries. Returns: id, resource_type, dashboard, insight, insight_short_id, resource_name, target_type, frequency, summary, next_delivery_date, and 22 more. Required: project_id, target_type, target_value, frequency, interval, start_date.

post_hog_projects_bulk_update_tags

Bulk update tags on multiple PostHog objects. Returns: updated, skipped. Required: project_id, ids, action, tags.

post_hog_projects_list_subscriptions

List subscriptions in a PostHog project, filterable by insight, dashboard, resource type, delivery channel, creator, or search term. Returns: id, resource_type, target_type, frequency, summary, next_delivery_date. Required: project_id.

post_hog_projects_selector_match_changes

List selector match changes for PostHog actions. Returns: action_id, action_name, selectors. Required: action_ids, project_id.

list_all_post_hog_actions

List PostHog actions in a project. Returns: id, name, description, tags, post_to_slack, steps, created_at, created_by. Required: project_id.

create_a_post_hog_action

Create a PostHog action in a project. Returns the created action including its id, name, description, steps, created_at, and team_id. Required: project_id.

delete_a_post_hog_action_by_id

Delete a PostHog action by id. PostHog does not allow hard deletes for this object, so this sends PATCH with deleted=true (a soft delete); the action no longer appears in lists afterwards. Required: id, project_id.

get_single_post_hog_action_by_id

Get a single PostHog action by id. Returns the action including its id, name, description, steps, created_at, and team_id. Required: id, project_id.

post_hog_actions_partial_update

Partially update a PostHog action by id, modifying only the fields provided. Returns: id, name, description, tags, post_to_slack, slack_message_format, steps, created_at, created_by, deleted, is_calculating, last_calculated_at, team_id, is_action, bytecode_error, pinned_at, creation_context, and 2 more. Required: action_id, project_id.

update_a_post_hog_action_by_id

Update a PostHog action by id, replacing its full definition. Returns: id, name, description, tags, post_to_slack, slack_message_format, steps, created_at, created_by, deleted, is_calculating, last_calculated_at, team_id, is_action, bytecode_error, pinned_at, creation_context, user_access_level, status. Required: id, project_id.

list_all_post_hog_annotations

List PostHog annotations for a project, covering dashboard and insight annotations. Returns: id, content, date_marker, creation_type, dashboard_item, dashboard_id, dashboard_name, insight_short_id, insight_name, insight_derived_name, created_by, created_at, updated_at, deleted, scope, emoji, hidden_in_user_interface. Required: project_id.

create_a_post_hog_annotation

Create a new annotation in a PostHog project. Returns the created annotation including id, content, date_marker, creation_type, dashboard_name, created_by, created_at, and updated_at. Required: project_id.

delete_a_post_hog_annotation_by_id

Delete a PostHog annotation by id. PostHog does not allow hard deletes for this object, so this sends PATCH with deleted=true (a soft delete); the annotation no longer appears in lists afterwards. Required: id, project_id.

get_single_post_hog_annotation_by_id

Get a single annotation by id in a PostHog project. Returns: id, content, date_marker, creation_type, dashboard_item, dashboard_id, dashboard_name, insight_short_id, insight_name, insight_derived_name, created_by, created_at, updated_at, deleted, scope, emoji, hidden_in_user_interface. Required: project_id, id.

post_hog_annotations_partial_update

Partially update an annotation in a PostHog project, changing only the fields provided. Returns: id, content, date_marker, creation_type, dashboard_item, dashboard_id, dashboard_name, insight_short_id, insight_name, insight_derived_name, created_by, created_at, updated_at, deleted, scope, emoji, and 1 more. Required: project_id, annotation_id.

update_a_post_hog_annotation_by_id

Update an annotation by id in a PostHog project. Returns: id, content, date_marker, creation_type, dashboard_item, dashboard_id, dashboard_name, insight_short_id, insight_name, insight_derived_name, created_by, created_at, updated_at, deleted, scope, emoji, hidden_in_user_interface. Required: project_id, id.

list_all_post_hog_cohorts

List the cohorts defined in a PostHog project. Returns: id, name, description, groups, deleted, filters, query, version, pending_version, is_calculating, created_by, created_at, last_calculation, last_backfill_person_properties_at, last_error_message, count, last_import_total_count, search_match_type, and 7 more. Required: project_id.

create_a_post_hog_cohort

Create a cohort in a PostHog project. Returns the cohort with id, name, filters, is_calculating, created_by, created_at, last_calculation, count, cohort_type, and realtime. Required: project_id.

delete_a_post_hog_cohort_by_id

Delete a PostHog cohort by id. PostHog does not allow hard deletes for this object, so this sends PATCH with deleted=true (a soft delete); the cohort no longer appears in lists afterwards. Required: id, project_id.

get_single_post_hog_cohort_by_id

Get a single PostHog cohort by id. Returns: id, name, description, groups, deleted, filters, query, version, pending_version, is_calculating, created_by, created_at, last_calculation, last_backfill_person_properties_at, errors_calculating, last_error_message, count, cohort_type, realtime, and 7 more. Required: id, project_id.

post_hog_cohorts_partial_update

Partially update a PostHog cohort, modifying only the fields supplied. Returns: id, name, description, groups, deleted, filters, query, is_calculating, created_by, created_at, last_calculation, last_backfill_person_properties_at, errors_calculating, last_error_message, count, cohort_type, realtime, and 9 more. Required: cohort_id, project_id.

update_a_post_hog_cohort_by_id

Update a PostHog cohort by id. Returns the updated cohort with id, name, filters, is_calculating, and count. Required: id, project_id.

list_all_post_hog_dashboards

List dashboards in a PostHog project. Returns each dashboard with id, name, description, pinned, created_at, created_by, folder, and tags. Required: project_id.

create_a_post_hog_dashboard

Create a new dashboard in a PostHog project. Returns the created dashboard object including its id, name, pinned status, filters, tiles, and created_at. Required: project_id.

delete_a_post_hog_dashboard_by_id

Delete a PostHog dashboard by id. PostHog does not allow hard deletes for this object, so this sends PATCH with deleted=true (a soft delete); the dashboard no longer appears in lists afterwards. Required: id, project_id.

get_single_post_hog_dashboard_by_id

Get a single PostHog dashboard by id. Returns the dashboard object including its id, name, filters, tiles, and user_access_level. Required: project_id, id.

post_hog_dashboards_partial_update

Partially update a PostHog dashboard by dashboard_id, changing only the fields you send such as name, pinned, filters, or tiles. Returns the updated dashboard object including its id, name, pinned status, filters, and tiles. Required: project_id, dashboard_id.

update_a_post_hog_dashboard_by_id

Update a PostHog dashboard by id, replacing its configuration. Returns the updated dashboard object including its id, name, pinned status, filters, tiles, and tags. Required: project_id, id.

list_all_post_hog_event_definitions

List event definitions of a PostHog project. Returns: id, name, description, tags, verified, last_seen_at, created_at, updated_at. Required: project_id. On projects with 50,000+ event definitions, counts cap at 10,000 unless search, exclude_stale, verified, names, tags, or event_type=event_posthog is set.

create_a_post_hog_event_definition

Create a new event definition in a PostHog project. Returns the created definition with its id, name, description, tags, created_at, and verification metadata. Required: project_id, name.

delete_a_post_hog_event_definition_by_id

Delete a PostHog event definition by its UUID id within a project. Returns an empty 204 response on success. Required: id, project_id.

get_single_post_hog_event_definition_by_id

Get a single event definition in a PostHog project by id. Returns the full definition with its id, name, description, tags, last_seen_at, and calculation metadata. Required: project_id, id.

post_hog_event_definitions_partial_update

Partially update an event definition in a PostHog project, modifying only the fields you send. Returns the updated definition with its id, name, tags, and updated_at. Required: project_id, event_definition_id.

update_a_post_hog_event_definition_by_id

Fully update an event definition in a PostHog project by id. Returns the updated definition with its id, name, tags, verified, and updated_at. Required: project_id, id, name.

list_all_post_hog_events

List and filter PostHog events captured in a project. Returns: id, event, distinct_id, properties, timestamp, person, elements, elements_chain. Required: project_id.

list_all_post_hog_groups

List all groups of a specific group type in a PostHog project. Returns: id, group_key, group_type_index, properties, created_at. Required: project_id, group_type_index. Pagination is forward-only by cursor; the previous page is always null.

create_a_post_hog_group

Create a group in PostHog for group analytics. Returns: group_type_index, group_key, group_properties, created_at, status. Requires project_id, group_type_index, and group_key.

list_all_post_hog_insights

List insights in a PostHog project. Returns: id, short_id, name, query, result, created_at, tags, last_viewed_at. Required: project_id.

list_all_post_hog_persons

List persons in a PostHog project. Returns each person's id, name, distinct_ids, properties, created_at, last_seen_at, uuid, and matched_fields. Required: project_id. Read-only through this endpoint; create or update persons via the capture API or SDKs instead.

list_all_post_hog_property_definitions

List PostHog property definitions for a project. Returns: id, name, property_type, is_numerical, verified, updated_at. Required: project_id.

list_all_post_hog_surveys

List PostHog surveys configured for a project. Returns each survey with its id, name, type, questions, conditions, and created_at. Required: project_id.

list_all_post_hog_group_types

List the group types configured for a PostHog project. Returns each group type with its group_type_index, the value to pass as group_type_index when listing or filtering groups. Required: project_id.

post_hog_group_types_bulk_delete

Delete a group type from a PostHog project by its numeric index. Returns an empty 204 response on success. Required: project_id, group_type_index.

list_all_post_hog_session_recordings

List PostHog session recordings for a project. Returns: id, distinct_id, viewed, viewers, recording_duration, start_time, end_time, click_count, ongoing. Required: project_id.

list_all_post_hog_me_spends

Get a personal LLM spend analysis for the requesting user in PostHog. Returns: summary, by_product, by_tool, by_model, by_day, by_day_model, by_bucket, top_traces. Window defaults to the last 30 days, max 90; pass bucket_minutes (5/15/30/60) for a by_bucket series; refresh=true bypasses the 5-minute cache. Required: product.

create_a_post_hog_account_custom_property_value

Create a custom property value for an account in PostHog. Returns: id, account_id, definition_id, value, created_at, created_by_id, PersonalAPIKeyAuth. Required: project_id, account_id, definition, value

list_all_post_hog_account_custom_property_values

List custom property values configured on a PostHog account. Returns an array of custom property value records, each with id, created_at, and updated_at. Required: project_id, account_id.

get_single_post_hog_account_email_thread_by_id

Get the email messages in a PostHog account email thread. Returns the thread's messages with their id, sent_at, sender, direction, and content. Required: project_id, account_id, id.

list_all_post_hog_account_email_threads

List email threads in a PostHog account. Returns: count, next, previous, results. Required: account_id, project_id.

list_all_post_hog_account_meetings

List meetings for a specific account in PostHog. Returns: id, title, start_time, end_time, organizer_email, status, participants. Required: account_id, project_id.

create_a_post_hog_account_notebook

Create a PostHog account notebook. Returns: id, short_id, title, content, text_content, created_at, created_by, last_modified_at, last_modified_by. Required: project_id, account_id.

delete_a_post_hog_account_notebook_by_id

Delete a notebook belonging to a PostHog account by id. Returns an empty 204 response on success. Required: id, account_id, project_id, short_id.

get_single_post_hog_account_notebook_by_id

Get a single PostHog account notebook by id. Returns: id, short_id, title, content, text_content, created_at, created_by, last_modified_at, last_modified_by. Required: id, account_id, project_id, short_id.

list_all_post_hog_account_notebooks

List PostHog account notebooks for an account, newest first. Returns: id, short_id, title, content, text_content, created_at, created_by, last_modified_at, last_modified_by. Required: project_id, account_id.

create_a_post_hog_account_presence

Report the authenticated user's presence on a PostHog account. Returns the list of viewers currently on the account. Required: account_id, project_id, id.

create_a_post_hog_account_relationship

Create a relationship on a PostHog account within a project. Returns: id, definition, user, started_at, ended_at, source. Required: project_id, account_id, definition, user.

delete_a_post_hog_account_relationship_by_id

Delete an account relationship by id from a PostHog account. Returns an empty 204 response on success. Required: id, project_id, account_id.

list_all_post_hog_account_relationships

List account relationships for a PostHog account; only active assignments are returned unless include_history is set. Returns: id, definition, user, started_at, ended_at, source. Required: project_id, account_id.

list_all_post_hog_account_summaries

List PostHog account summaries for a specific account. Returns: id, slack_channel_id, cadence, period_start, period_end, content, message_count, messages, generated_at. Required: account_id, project_id.

get_single_post_hog_account_support_ticket_by_id

List messages for a support ticket in PostHog. Returns each message with id, content, author_name, direction, is_private, and created_at. Required: project_id, account_id, id.

list_all_post_hog_account_support_tickets

List the support tickets associated with a PostHog customer analytics account. Returns ticket records including id, created_at, and updated_at. Required: account_id, project_id.

create_a_post_hog_account_track_rules_preview

Preview how account track rules would affect event tracking in PostHog without applying them. Returns: config_version, eligible_active, skipped_churned, tracked, ignored, newly_ignored, restored, tracked_samples, ignored_samples, validation_errors, PersonalAPIKeyAuth. Required: project_id, schema_version, version, enabled, groups.

create_a_post_hog_account_track_rules_run

Trigger a run of account track rules in a PostHog project. Returns the created run with id, config_version, trigger, status, and tracking counts (tracked, ignored, restored). Requires project_id, idempotency_key, and confirmed. Required: project_id, idempotency_key, confirmed.

list_all_post_hog_account_track_rules_runs

List account track rule runs in a PostHog project. Returns each run's id, config_version, trigger, status, and tracking counts (tracked, ignored, restored). Required: project_id.

get_single_post_hog_accounts_by_external_id_by_id

Get a PostHog account by its exact external_id within a project. Returns: id, name, external_id, properties, tags, notebooks, slack_summary_cadence, churned_at, ignored_at, created_at, created_by, updated_at. Required: id, external_id. Leading and trailing whitespace in external_id is significant.

list_all_post_hog_accounts_presence_lists

List presence information for accounts in a PostHog project. Returns: account_id, viewers. Required: project_id, account_ids.

post_hog_action_emails_bulk_update

Partially update the email configuration of a Hog Flow action in PostHog by submitting bulk operations. Returns the updated Hog Flow including id, name, status, version, trigger, and actions. Required: project_id, hog_flow_id, action_id.

list_all_post_hog_action_references

List references for a specific PostHog action within a project. Returns an array of references with type, id, name, url, created_at, and created_by. Required: action_id, project_id, id.

create_a_post_hog_activate_authorize

Create a billing authorization for a PostHog organization. Returns: clientSecret, success. Required: organization_id.

list_all_post_hog_advanced_activity_logs_available_filters

List the pre-computed filter options for advanced activity logs in a PostHog project. Returns static_filters (the users, activity scopes, activity types, and API clients observed in the logs) and detail_fields (discovered detail fields with their value distributions). Required: project_id.

advanced_activity_logs_available_filters_advanced_activity_logs_

List the pre-computed filters available for PostHog advanced activity logs across every project in an organization. Returns: static_filters, detail_fields, github_login. Required: organization_id.

create_a_post_hog_advanced_activity_logs_export

Export advanced activity logs for a PostHog project. Returns the created export record including its id, user, scope, activity, and created_at. Required: project_id, user, activity, and scope.

create_a_post_hog_advanced_activity_logs_exports_export

Create an export of advanced activity logs across every project in a PostHog organization. Returns: id, user, unread, team_id, organization_id, was_impersonated, is_system, client, ip_address, activity, item_id, scope, detail, created_at, status. Required: organization_id, user, activity, scope.

list_all_post_hog_aeo_prompt_checks

List the checks for a PostHog AEO prompt, newest first. Each check includes the engine, answer_text, cited_urls, search_queries, target_urls, and the prompt_version it ran on. Required: project_id, aeo_prompt_id.

list_all_post_hog_aeo_prompt_stats

Get citation and brand-mention stats for a PostHog AEO prompt, with per-day counts for the last 30 days. Returns: engines, daily, consensus, sentiment, top_words, total_checks, brand_names, daily_from, daily_to. Required: project_id, aeo_prompt_id.

list_all_post_hog_aeo_prompt_versions

List all versions of a PostHog AEO prompt's text, newest first; a text edit adds a version and one is current. Returns: created_by, version, text, version_description, created_at, is_current. Required: project_id, aeo_prompt_id.

create_a_post_hog_aeo_prompts_bulk_import

Bulk import AEO prompts into a PostHog project, adding new prompts or updating the topic and visibility of existing ones; prompts whose text matches an archived prompt are skipped. Returns: created, updated, skipped. Required: project_id, prompts.

list_all_post_hog_aeo_prompts_topics

List the AEO prompt topics in a PostHog project, with the number of prompts in each; each item pairs a topic name (empty for prompts that have no topic) with its prompt count. Returns: topic, prompts, PersonalAPIKeyAuth. Required: project_id.

get_ai_observability_instrumentation_checklist_by_id

Grade every AI observability instrumentation check for a PostHog project. Returns: window_days, checks, PersonalAPIKeyAuth. Required: id.

post_hog_ai_observability_offline_experiments_complete

Complete an offline experiment in PostHog AI observability, marking it as finished for evaluation. Returns a receipt (ExperimentReceipt) with the resulting status. Required: offline_experiment_id, project_id, id.

create_a_post_hog_ai_observability_offline_experiment

Create an offline AI observability experiment in a PostHog project. Returns the receipt with id, status, created, started_at, and accepted item/result counts. Required: project_id, id, name, started_at.

get_single_post_hog_ai_observability_offline_experiment_by_id

Get an offline AI observability experiment by id in a PostHog project. Returns the full experiment with id, name, status, run_source, counts, suite_key, dataset fields, tags, and created_by. Required: id, project_id.

list_all_post_hog_ai_observability_offline_experiments

List offline AI observability experiments in a PostHog project, filterable by status, dataset, suite, tags, model or prompt version, and name search. Returns: count, next_cursor, results, PersonalAPIKeyAuth. Required: project_id.

update_a_post_hog_ai_observability_offline_experiment_by_id

Partially update an offline AI observability experiment in a PostHog project, e.g. its tags. Returns the updated experiment with id, name, status, tags, counts, and dataset fields. Required: project_id, id.

get_single_post_hog_ai_observability_trace_by_id

Get a PostHog AI observability trace by id, rendered as a step tree with roll-ups, timeline, totals, and person, without inputs or outputs. Returns: id, name, createdAt, sessionId, person, totals, hasError, errorCount, tree, timeline, totalMs, threadNodeIds, defaultNodeId, nodeIdsByAlias, git, PersonalAPIKeyAuth. Required: id, project_id.

post_hog_ai_observability_traces_search

Find text in the steps of a PostHog AI observability trace, ignoring case. Returns: total, matches, PersonalAPIKeyAuth. Required: project_id, trace_id, q. Max query length 200.

create_a_post_hog_alert_destination

Create a destination for a PostHog alert to send it to a Slack channel as well as by email. Returns: hog_function_ids. The Slack workspace must already be connected to the project. Required: alert_id, project_id, slack_workspace_id, slack_channel_id.

create_a_post_hog_alert_destinations_alert

Create a notification destination for a PostHog alert, atomically creating one HogFunction per alert event kind (firing, resolved, ...); PagerDuty destinations use incident opened/closed kinds instead. Returns: hog_function_ids. Required: alert_id, project_id, type.

create_a_post_hog_alert_test_delivery

Trigger a test delivery for a PostHog alert: sends a synthetic test notification to subscribed users and every active destination on the alert, accepted for asynchronous processing. Returns: destination_count, email_recipient_count, failed_delivery_channels. Required: alert_id, project_id.

create_a_post_hog_alerts_simulate

Simulate a detector on an insight's historical data in PostHog without creating any AlertCheck records. Returns: status, PersonalAPIKeyAuth. Requires project_id and a request body (AlertSimulate). Required: project_id, insight.

create_a_post_hog_alerts_simulates_simulate

Simulate a PostHog logs alert on historical data using the full state machine. Returns: buckets, fire_count, resolve_count, total_buckets, threshold_count, threshold_operator, status. Required: project_id, filters, threshold_count, threshold_operator, window_minutes, date_from. No alert check records are created.

list_all_post_hog_announcements_channels

List Slack channels the PostHog SupportHog bot can post to, labeled by customer account name. Returns: id, name, is_member, customer_name. Required: project_id.

list_all_post_hog_apm_endpoints

List PostHog APM endpoint health, one row per service and entry span name ordered worst first. Returns: results, environment, service, date_from, date_to. Required: project_id.

list_all_post_hog_apm_service_maps

List service-to-service call edges in a PostHog project's APM service map for an environment and time window. Returns: edges, trace_count, environment, date_from, date_to. Required: project_id.

list_all_post_hog_apm_services

List PostHog APM service health, one row per service in an environment and time window, ordered worst first. Returns: results, environments, environment, date_from, date_to. Required: project_id.

create_a_post_hog_artifacts_delete

Delete an artifact bundle file from a PostHog autoresearch training run by path. Removal is idempotent and the bundle is frozen once the run completes or fails. Returns: path, deleted. Required: training_run_id, pipeline_id, project_id, path.

create_a_post_hog_artifacts_get

Fetch a single file from a PostHog training run's artifact bundle, base64-encoded. Returns: path, size_bytes, sha256, content_base64. Required: training_run_id, pipeline_id, project_id, path.

create_a_post_hog_artifacts_upload

Upload one artifact bundle file to a PostHog autoresearch training run (file contents sent base64-encoded in content_base64). Returns: path, size_bytes, sha256. Re-uploading the same path overwrites it; the bundle is frozen once the run completes or fails. Required: training_run_id, pipeline_id, project_id, path, content_base64.

get_single_post_hog_assets_content_by_id

Get the rendered HTML content of an email sent by a PostHog hog flow (workflow). Returns the email body as a raw text/html string rather than a JSON object. Required: id, invocation_id, project_id.

post_hog_assignment_rules_reorders_bulk_update

Reorder error tracking assignment rules in a PostHog project. Returns an empty 204 response on success. Required: project_id.

create_a_post_hog_authorize_status

Check the authorization status of a PostHog billing activation. Returns: status, error, success. Required: organization_id.

list_all_post_hog_autoresearch_agent_models

List the training agent models a PostHog pipeline's agent may run on, with supported reasoning efforts, relative token cost, and the defaults used when pipeline settings are blank. Returns: default_model, default_model_label, default_reasoning_effort, models. Required: project_id.

create_a_post_hog_autoresearch_resolve_template

Resolve a PostHog autoresearch template key (with optional overrides) into a concrete pipeline config. Returns: template_key, display_name, description, suggested_name, resolved_activity_event, horizon_days, training_population, and 6 more. Required: project_id, template_key.

list_all_post_hog_autoresearch_templates

List all built-in PostHog autoresearch prediction templates. Returns: key, display_name, description, default_horizon_days, requires_user_event, requires_activity_resolution, notes. Required: project_id.

create_a_post_hog_autoresearch_validate

Validate a proposed PostHog autoresearch pipeline's target event and population before creating it. Returns: can_proceed, requires_acknowledgement, estimated_training_rows, base_rate, warnings, error, and 4 more. Required: project_id. Call this before creating the pipeline; an 'error' result means a run would fail or the data is too thin.

create_a_post_hog_backfills_estimate

Estimate a PostHog evaluation backfill by counting what a backfill over the given window would evaluate, without creating one. Returns: total_units, already_evaluated_units, unit, window_start, window_end, PersonalAPIKeyAuth. Requires evaluation_id, project_id, window_start, and window_end.

create_a_post_hog_backfills_estimates_estimate

Estimate a PostHog scanner backfill: enumerates exactly what a backfill over the given window would dispatch and its cost. Returns: total_sessions, total_credits, credits_per_observation, credits_remaining, and 2 more fields. Required: project_id, scanner_id, window_start, window_end. Requires project_id, scanner_id, window_start, and window_end.

post_hog_batch_export_backfills_cancel

Cancel a batch export backfill in PostHog, identified by its UUID. Returns: status, PersonalAPIKeyAuth. Required: batch_export_id, backfill_id, project_id, status, team, batch_export.

create_a_post_hog_batch_export_backfill

Create a new backfill for a PostHog batch export. Returns the created backfill including id, progress, status, start_at, and created_at. Required: batch_export_id, project_id, status, team, batch_export.

get_single_post_hog_batch_export_backfill_by_id

Get a single PostHog batch export backfill by id. Returns the backfill including id, progress, status, start_at, and created_at. Required: project_id, batch_export_id, and id. Backfills cannot be updated or deleted.

list_all_post_hog_batch_export_backfills

List PostHog batch export backfills for a batch export. Returns each backfill including id, progress, status, start_at, and created_at. Required: project_id and batch_export_id. Backfills cannot be updated or deleted.

list_all_post_hog_batch_export_logs

List log entries for a batch export in PostHog, filtered by time window, execution instance, log level, or message search. Returns: status. Defaults to the last 7 days of logs; up to 500 entries per page. Required: batch_export_id, project_id.

create_a_post_hog_batch_export_run_test_step

Run a test step for a batch export in PostHog to execute a single export step. Returns: status, PersonalAPIKeyAuth. Required: batch_export_id, project_id, name, destination, interval.

post_hog_batch_export_runs_cancel

Cancel a batch export run in PostHog. Returns an empty 200 response with no response body on success. Required: batch_export_id, run_id, project_id, id, data_interval_end, status.

get_single_post_hog_batch_export_run_by_id

Get a single PostHog batch export run by id. Returns the run's id, status, records_completed, records_failed, data_interval_start, data_interval_end, and created_at. Required: project_id, batch_export_id, id.

list_all_post_hog_batch_export_runs

List PostHog batch export runs for a batch export. Returns: id, status, data_interval_start, data_interval_end, records_completed, records_failed, latest_error, cursor, created_at, and finished_at. Required: project_id, batch_export_id. Defaults to the last 7 days of runs unless after/before are set.

post_hog_batch_export_runs_list_logs

List log entries for a batch export run in PostHog, filterable by time range, log level, execution instance, and message text. Returns an empty 200 response with no response body on success. Max 500 entries per call (default 50). Required: batch_export_id, run_id, project_id, id.

post_hog_batch_export_runs_retry

Retry a batch export run in PostHog, using the same mechanism as backfilling a single run. Returns an empty 200 response with no response body on success. Required: batch_export_id, run_id, project_id, id, data_interval_end, status.

create_a_post_hog_batch_export_unpause

Unpause a paused batch export in PostHog so it resumes scheduled export runs. Returns: status, PersonalAPIKeyAuth. Required: batch_export_id, project_id.

create_a_post_hog_batch_exports_run_test_step_new

Run a test step for a new batch export in a PostHog project. Sends a BatchExport payload and returns no response body on success. Required: project_id, name, destination, interval.

get_single_post_hog_batch_exports_test_by_id

Test batch exports for a PostHog project. Returns an empty 204 response on success. Required: id.

create_a_post_hog_billing_activate

Activate billing for a PostHog organization. Returns: success, must_setup_payment, products, error. Required: organization_id.

create_a_post_hog_billing_deactivate

Deactivate PostHog billing for the current organization. Returns: status. Required: plan, billing_limit.

list_all_post_hog_billing_features

Get the product features included in a PostHog organization's plans. Returns: available_product_features, PersonalAPIKeyAuth. Required: organization_id. Beta API gated by the organization-billing-api feature flag (ask PostHog support for access); shapes may change.

get_single_post_hog_billing_forecast_by_id

Get the billing forecast for the rest of the current billing period for a PostHog organization. Returns: billing_period, projected_total_amount_usd, projected_total_amount_usd_with_limit, products, computed_at, and 3 more. Required: id. In beta — requires the organization-billing-api feature flag, and response shapes may change.

list_all_post_hog_billing_get_invoices

Retrieve billing invoices from PostHog. Returns an empty response body on success.

list_all_post_hog_billing_invoices

List the PostHog organization's billing invoices. Returns: next, previous, results. Required: organization_id. The billing API is in beta and its shapes may change.

post_hog_billing_licenses_bulk_update

Update the PostHog billing license with a partial license payload. Returns an empty response body on success.

list_all_post_hog_billing_limits

Get the spend limits for a PostHog organization. Returns: results, PersonalAPIKeyAuth. Required: organization_id. Beta API gated behind the organization-billing-api feature flag — answers 403 without it, ask PostHog support for access; shapes may change while in beta.

list_all_post_hog_billing_periods

Get the current organization's billing period in PostHog. Returns: current_period_start, current_period_end, status. No required parameters.

list_all_post_hog_billing_portals

Retrieve the PostHog billing portal for the current organization. Returns an empty 200 response with no body on success.

get_single_post_hog_billing_product_by_id

Get a single PostHog billing product by its key within an organization. Returns: kind, key, usage_key, name, description, price_description, icon_key, image_url, unit, unit_amount_usd, tiers, features, addons, and 16 more. Beta: shapes may change; requires organization-billing-api feature flag access. Required: id, organization_id, product_key.

list_all_post_hog_billing_products

List the PostHog billing products and add-ons for an organization. Returns a results array of products with key, name, description, unit, and unit_amount_usd. Beta: shapes may change; requires organization-billing-api feature flag access. Required: organization_id.

list_all_post_hog_billing_projects

List PostHog organization projects with their usage, including deleted ones, so you know which ids a project breakdown or team_ids filter can name. Returns a paginated list with count, next, previous, and results. Required: organization_id. Beta endpoint; response shapes may change.

get_single_post_hog_billing_spend_by_id

Get an organization's PostHog spend so far this billing period. Returns: billing_period, usage_reported_through, current_total_amount_usd, current_total_amount_usd_after_discount, products. Required: id. In beta; answers 403 without the organization-billing-api feature flag.

list_all_post_hog_billing_spends

Fetch PostHog billing spend data as time series. Returns: status, type, customer_id, results, team_id_options, next, total_count. Max 1000 series per page.

get_single_post_hog_billing_subscription_by_id

Get a PostHog organization's billing subscription. Returns: customer_id, has_active_subscription, subscription_level, billing_plan, billing_provider, is_annual_plan_customer, billing_period, trial, free_trial_until, billing_portal_url, and 9 more. Beta: behind the organization-billing-api feature flag; shapes may change. Required: id.

get_single_post_hog_billing_usage_by_id

Get PostHog organization billing usage so far this billing period. Returns: billing_period, usage_reported_through, usage_summary, products. Required: id. In beta, gated behind the organization-billing-api feature flag.

list_all_post_hog_billing_usages

List PostHog billing usage time series for a date range, optionally broken down by type or team. Returns: status, type, customer_id, results, team_id_options, next, total_count. page_size requires a project breakdown.

post_hog_billing_usages_usage_export

Get a PostHog project's usage so far this billing period. Returns the usage summary in attributes, whose fields follow the upstream ProjectUsageSummary schema (the organization billing API is in beta and its shapes may change). Required: project_id.

list_all_post_hog_billings

Get the billing overview for your PostHog organization, including plan, subscription, and current usage details. Returns: customer_id, billing_plan, subscription_level, has_active_subscription, is_annual_plan_customer, free_trial_until, current_total_amount_usd, projected_total_amount_usd, products, and 22 more.

create_a_post_hog_broadcast_audience_suggestions_generate

Generate AI-written broadcast audience suggestions from a PostHog project's own events. Returns: status, suggestions. Required: project_id.

create_a_post_hog_builds_action

Apply a lifecycle action (retry, pin, unpin, or cancel) to a PostHog canvas build. Returns the updated build including id, build_status, artifact_url, pinned, and finished_at. Required: canvase_id, project_id, id, action, build_id.

list_all_post_hog_business_knowledge_gap_suggestions

List knowledge gap suggestions for a PostHog project — topics the support AI couldn't answer from the knowledge base. Returns: id, ticket_id, topic, normalized_topic, ticket_type, outcome, status, resolved_source_id, created_at. Required: project_id. Pass ticket_id to get per-ticket gap rows instead of the aggregated topic view.

create_a_post_hog_business_knowledge_library

Create a business knowledge library in a PostHog project. Returns the created library with its id, name, is_default flag, source_count, and repos. Required: project_id, name.

delete_a_post_hog_business_knowledge_library_by_id

Delete a business knowledge library in PostHog. Removes the library and its links; sources, documents, and selected repositories stay. Returns an empty 204 response on success. Required: id, project_id.

get_single_post_hog_business_knowledge_library_by_id

Get a single business knowledge library in a PostHog project by id. Returns: id, name, is_default, source_count, repos. Required: id, project_id.

list_all_post_hog_business_knowledge_libraries

List business knowledge libraries in a PostHog project; the default library comes first. Returns: id, name, is_default, source_count, repos. Required: project_id.

update_a_post_hog_business_knowledge_library_by_id

Rename a PostHog business knowledge library or replace its sources and repositories; send only the fields to change. Returns: id, name, is_default, source_count, repos. Required: id, project_id. source_ids replaces every source; repos replaces this environment's repositories.

post_hog_business_knowledge_repositories_search

Search selected GitHub repositories in PostHog business knowledge by matching file names, path fragments, or identifiers against the cached default-branch file list and README text; it does not search file contents. Returns results whose hit paths feed the file read endpoint. Required: project_id, query.

create_a_post_hog_business_knowledge_sandbox

Start a PostHog business knowledge sandbox run to ask a question against this project's business knowledge. Returns: task_id, run_id. Required: project_id, question. The endpoint returns immediately; poll the run with the get method for the answer. Fails if the user already has an unfinished run.

get_single_post_hog_business_knowledge_sandbox_by_id

Get a PostHog business knowledge sandbox run by id to poll a run started by the current user. Returns: task_id, run_id, status, reply, sources, searches, error, docs_search_called. Required: id, project_id. Runs started before AI data processing was turned off remain readable.

post_hog_business_knowledge_settings_bulk_update

Update the business knowledge settings for a PostHog project, such as whether it learns from resolved support tickets. Returns: learn_from_support_enabled, support_enabled. Required: project_id.

list_all_post_hog_business_knowledge_settings

Get the business knowledge settings for a PostHog project. Returns: learn_from_support_enabled, support_enabled, PersonalAPIKeyAuth. Required: project_id.

create_a_post_hog_business_knowledge_source

Create a new knowledge source in PostHog from text content. Returns: id, team_id, name, source_type, is_generated, status, error_message, document_count, chunk_count, created_at, updated_at, source_url, last_refresh_at, last_refresh_status, last_refresh_error, and 3 more fields. Required: project_id, name, text. Requires project_id, name, and text.

delete_a_post_hog_business_knowledge_source_by_id

Delete a PostHog business knowledge source by its id (a UUID identifying the knowledge source). Returns an empty 204 response on success. Required: project_id, id.

get_single_post_hog_business_knowledge_source_by_id

Get a single PostHog knowledge source by id. Returns: id, team_id, name, source_type, is_generated, status, error_message, document_count, chunk_count, created_at, updated_at, source_url, last_refresh_at, last_refresh_status, last_refresh_error, refresh_interval, and 3 more fields. Required: id, project_id. Requires project_id and id.

list_all_post_hog_business_knowledge_sources

List knowledge sources in a PostHog project. Returns: id, team_id, name, source_type, is_generated, status, error_message, document_count, chunk_count, created_at, updated_at, source_url, last_refresh_at, last_refresh_status, and 3 more fields. Required: project_id. Requires project_id. library_id and unfiled are mutually exclusive.

update_a_post_hog_business_knowledge_source_by_id

Partially update a PostHog knowledge source by id. Returns: id, team_id, name, source_type, is_generated, status, error_message, document_count, chunk_count, created_at, updated_at, source_url, last_refresh_at, last_refresh_status, last_refresh_error, refresh_interval, and 3 more fields. Required: id, project_id. Requires project_id and id.

post_hog_bypass_rules_reorders_bulk_update

Reorder error tracking bypass rules in a PostHog project. Sends the new rule ordering as a JSON body and returns an empty 204 response on success. Required: project_id.

create_a_post_hog_calendar_sync_backfill

Start an admin-only Gmail and Google Calendar backfill for a connected Google account in PostHog over an inclusive UTC date range. Returns: status. Required: project_id, integration_id, start_date, end_date.

create_a_post_hog_calendar_sync_interval

Set the Google account sync interval for a PostHog project's calendar sync. Returns: integration_id, sync_interval_minutes. Required: project_id, integration_id, sync_interval_minutes.

create_a_post_hog_calendar_sync_sync_now

Trigger an immediate sync run for a connected Google Calendar in PostHog, outside the hourly schedule. Returns: status. Required: project_id, integration_id.

list_all_post_hog_canvase_builds

Read a PostHog canvas's build lifecycle — the live build pointers plus recent builds; poll after publishing until the build is ready or failed. Returns: published_build_id, current_version_id, builds. Required: canvase_id, project_id.

get_single_post_hog_canvase_comment_by_id

Get a comment thread on a PostHog canvas: the root comment and its replies, oldest first. Returns: id, resolved, comments, next. Max 100 comments per page. Required: id, canvase_id, project_id, root_comment_id.

create_a_post_hog_canvase_draft

Stage a complete PostHog canvas source project as a draft version and build it without publishing; the canvas's live head and build never move. Promote the version later to make it live. Returns: version_id, build, diagnostics, capability_widening, PersonalAPIKeyAuth. Required: canvase_id, project_id, id, project.

list_all_post_hog_canvase_drafts

List a PostHog canvas's staged draft versions, newest first, each with its latest build status. Returns: version_id, prompt, created_by, created_at, build_status, build_id, PersonalAPIKeyAuth. Required: canvase_id, project_id, id.

create_a_post_hog_canvase_edit

Publish diff-aware file edits (replace text, write, delete, or rename files) against a PostHog canvas's current source project. Returns: canvas, current_version_id, diagnostics, build. Operations apply in order. Required: canvase_id, project_id, expected_current_version_id.

get_single_post_hog_canvase_layout_by_id

Get a PostHog grid canvas's layout document and its current_version_id. Returns: canvas, layout, current_version_id, component_lifecycles. Required: id, project_id. Always call before editing and pass the returned version id as expected_current_version_id when publishing or patching so concurrent edits are not overwritten.

create_a_post_hog_canvase_promote

Promote a draft version of a PostHog canvas to become its live head. A draft whose build is ready goes live immediately; otherwise a fresh build is queued. Returns the build: id, build_status, artifact_url, created_at. Requires project_id, canvase_id, version_id, and expected_current_version_id. Required: canvase_id, project_id, id, version_id,…

create_a_post_hog_canvase_publish_current_version

Queue a build for a PostHog canvas's current source version without changing its source or metadata. Returns the canvas build with id, source_version_id, build_status, artifact_url, and created_at. Requires project_id, canvase_id, and expected_current_version_id. Required: canvase_id, project_id, id, expected_current_version_id.

create_a_post_hog_canvase_report_error

Report a runtime error observed while rendering a PostHog canvas build. The report is deduplicated per build and error type in the authoring task's thread. Returns: report_outcome. Reports never trigger an agent run — dispatch fixing via request_fix. Required: canvase_id, project_id, build_id, error_type.

create_a_post_hog_canvase_request_agent

Route a viewer-approved change request to a PostHog canvas's authoring task. Returns: request_outcome, task_id. Processes asynchronously. Required: canvase_id, project_id, prompt.

create_a_post_hog_canvase_request_fix

Wake a PostHog canvas's authoring agent to fix a failing build or runtime error, staging the fix as a draft for review. Returns: dispatch_outcome, task_id. Only the authoring task's creator may dispatch. Required: canvase_id, project_id, build_id.

get_single_post_hog_canvase_source_by_id

Read a PostHog canvas's source project by id. Returns: canvas, project, current_version_id. Always call this before editing and publish with the returned version id to avoid overwriting concurrent edits. Required: id, project_id.

get_single_post_hog_canvase_state_by_id

Read a PostHog canvas's runtime key-value state (the ph.state store), returning shared entries plus the caller's own user-scoped entries. Returns: entries, next_offset, next_cursor, complete. Required: id, project_id.

create_a_post_hog_canvase_validate

Validate a candidate source project for a PostHog canvas without publishing it. Returns: valid, diagnostics, PersonalAPIKeyAuth. Side-effect free. Required: canvase_id, project_id, id, project.

list_all_post_hog_canvase_versions

List a PostHog canvas's published source-version history, newest first (metadata only; draft versions are excluded). Returns: id, parent_version_id, prompt, task_id, draft, created_by, created_at. Required: canvase_id, project_id.

get_single_post_hog_canvase_view_by_id

Get everything needed to open a PostHog canvas in one round trip. Returns: canvas, published_build, current_version_id, has_active_build, source, layout, component_lifecycles, sandbox_document_url, PersonalAPIKeyAuth. Supports revalidation by sending the response's ETag as If-None-Match. Required: id, project_id.

list_all_post_hog_canvases_actions

List the canvas action registry in PostHog — every action verb and PostHog MCP tool a canvas may declare and invoke. Returns: actions, tools, status. Required: project_id.

list_all_post_hog_canvases_connectors

List the PostHog canvas connector catalog: every provider and tool a canvas may declare and call, with the caller's connection state. Returns: connectors, PersonalAPIKeyAuth. Required: project_id.

create_a_post_hog_canvases_home

Get or provision the caller's PostHog home canvas. Idempotent: returns the existing home canvas, or creates a grid canvas in the caller's personal channel and points the home preference at it. Returns: id, name, kind, description, channel, template_id, created_at, url, and 9 more. Required: project_id. Sandbox tokens cannot provision a home canvas.

create_a_post_hog_certification_certify

Mark a data catalog certification as certified (prefer this source) in PostHog. Returns the updated certification record: id, status, created_at. Required: certification_id, project_id, id.

create_a_post_hog_certification_deprecate

Mark a PostHog data-catalog certification as deprecated, signaling callers should avoid that source. Returns the updated DataCatalogCertification record, including id, status, and review details. Required: certification_id, project_id, id.

create_a_post_hog_chat_ask

Ask a question in a PostHog playground chat, appending a new turn and starting a sandbox run. Returns the chat with id, title, created_at, has_open_turn, and turns. Only one open answer per chat and up to 3 per person; a second question while open fails with 409. Required: chat_id, project_id, question.

list_all_post_hog_code_sandbox_pricings

Get the PostHog sandbox compute pricing rate card. Returns the current sandbox compute rate card (current) and the expired rate-card history (history).

post_hog_cohort_add_persons_to_static_cohorts_bulk_update

Add persons to a static cohort in PostHog. Returns an empty 204 response on success. Required: project_id, cohort_id.

list_all_post_hog_cohort_blocking_workflows

List active workflows that block deleting a PostHog cohort or editing it so it stops updating in real time. Returns: results, total, hidden, has_more. Required: cohort_id, project_id.

get_single_post_hog_cohort_calculation_history_by_id

Get the calculation history for a single PostHog cohort by id. Returns an empty response body on success (the API documents no response fields for this endpoint). Required: id, project_id.

list_all_post_hog_cohort_people

List the persons that belong to a specific PostHog cohort within a project. Returns: results, next, previous. Required: cohort_id, project_id.

post_hog_cohort_remove_person_from_static_cohorts_bulk_update

Remove a person from a PostHog static cohort. The person to remove is specified in the JSON request body. Returns: status. Required: project_id, cohort_id.

get_single_post_hog_cohort_used_in_by_id

Retrieve where a PostHog cohort is used within a project. Returns: feature_flags, insights, cohorts, test_account_filters, workflows. Required: id, project_id.

get_single_post_hog_cohorts_activity_by_id

List the project-wide cohort activity feed in PostHog — the recorded log of cohort changes across the project. Returns a paginated response containing next, previous, and results. Required: id.

create_a_post_hog_comment_reopen

Reopen a completed task-comment in PostHog, clearing its completed_at and completed_by fields. Returns the comment object including its id, completed_at, completed_by, created_at, and updated_at. Fails with 400 if the comment is not a task or is already open. Required: comment_id, project_id, id.

create_a_post_hog_comment_send_to_slack

Mirror a PostHog comment discussion to a Slack channel as a new Slack thread; later replies sync across both sides. Returns: id, scope, item_id, slack_channel_id, slack_channel_name, slack_thread_ts, created_at, and 4 more. Each discussion mirrors to exactly one Slack thread. Required: comment_id, project_id, integration_id, channel_id.

get_single_post_hog_comment_thread_by_id

Get the discussion thread of a specific comment in PostHog. Returns an empty 200 response on success. Required: id, project_id.

get_single_post_hog_comments_count_by_id

Get the comment count for a PostHog project. Returns an empty response body on success. Required: id.

create_a_post_hog_connectors_call

Call a declared connector tool on a PostHog canvas as the viewer. Returns: approval_token, status, result, detail, truncated, connect_path, PersonalAPIKeyAuth. The provider and tool must be declared in the canvas's connectors capability. Required: canvase_id, project_id, id, provider, tool.

get_single_post_hog_content_by_id

Download a PostHog organization invoice as a PDF. Returns the raw PDF binary content. In beta: the billing API answers 403 without the organization-billing-api feature flag — ask PostHog support for access. Required: id, organization_id, invoice_id.

list_all_post_hog_contents

Download the content of a PostHog export (exported asset). Returns the raw exported file content as a binary download; the API documents no JSON response body. Required: project_id, export_id.

list_all_post_hog_contents_content

Download a completed dataset JSONL export in PostHog. Returns the raw JSONL content of the export file. Required: project_id, dataset_id, export_id.

get_single_post_hog_context_layer_channel_page_by_id

Get the wiki page for a PostHog channel in the organization's context wiki. Returns: path, exists, PersonalAPIKeyAuth. Returns 404 if the channel has no page in the context wiki. Required: id, organization_id, channel_id.

create_a_post_hog_context_layer_commit

Land agent commits from a git bundle into the PostHog context layer wiki. Returns: head_sha. Required: organization_id, bundle. Commits that conflict with the current head are rejected; re-pull and retry.

list_all_post_hog_context_layer_dreams

List dream runs for a PostHog organization's context layer, including the active dreaming task when present plus every landed run newest first. Returns: head_sha, active_run, unpublished_run, dreams. Required: organization_id.

list_all_post_hog_context_layer_dreams_context_layer

Read one dreaming run in PostHog's context layer, identified by its 40-character hex merge-commit sha. Returns: run, files, status. Required: organization_id, sha.

create_a_post_hog_context_layer_enable

Enable the context layer for a PostHog organization: create the organization's wiki with the default structure and import existing channel CONTEXT.md documents. Returns: head_sha. Required: organization_id. Idempotent — repeating the call does not re-import.

get_single_post_hog_context_layer_export_by_id

Export the wiki for a PostHog organization. Returns a short-lived download url for the wiki's current bundle (the whole repo and its history as a single standard git file) plus the head_sha commit it was built from. Required: id.

post_hog_context_layer_pages_bulk_update

Create or replace a Markdown page in a PostHog organization's context wiki. Returns: head_sha, status. Required: organization_id, path, content, with path and content forming the JSON body.

list_all_post_hog_context_layer_pages

Read a Markdown page from a PostHog organization's context wiki. Returns: path, content, head_sha, updated_at, offset, total_length, next_offset, complete. Required: organization_id, path. Reads are chunked; pass head_sha from a previous chunk to continue.

list_all_post_hog_context_layer_proposals

List your pending context layer wiki edit proposals in PostHog. Returns: id, task_id, path, original_content, content, base_head, created_at. Required: organization_id.

get_single_post_hog_context_layer_status_by_id

Get the current head of an organization's context wiki in PostHog — a git repo of Markdown pages hosted by PostHog. Returns the upstream ContextLayerStatus object; the docs do not enumerate its fields. Fails with 404 if the context layer is not enabled. Required: id.

get_single_post_hog_context_layer_tree_by_id

Get the wiki page tree for a PostHog organization's context layer — a git repo of Markdown pages hosted by PostHog. Returns: head_sha, paths, status, PersonalAPIKeyAuth. Required: id. Fails with 404 when the context layer is not enabled.

create_a_post_hog_conversation_append_message

Appends a client-generated message to an existing PostHog conversation without triggering AI processing, e.g. persisting a support ticket confirmation message. Returns: content, status. Required: project_id, conversation, content.

create_a_post_hog_conversation_open

Open or resume a PostHog sandbox conversation. With content, processes the message turn (first message, follow-up, or terminal resume); without content, warms a sandbox that idles awaiting the first message. Returns: task_id, run_id, trace_id, run_status, just_created_run. Required: project_id, conversation.

create_a_post_hog_conversation_queue

Queue a conversation in PostHog by creating its queue entry. Returns: id, status, title, topic, user, created_at, updated_at, type, is_internal, slack_thread_key, slack_workspace_domain, messages, has_unsupported_content, agent_mode, agent_runtime, is_sandbox, pending_approvals, task. Required: project_id, conversation.

delete_a_post_hog_conversation_queue_by_id

Delete a queue entry of a PostHog conversation by id. Returns an empty 204 response on success. Required: id, conversation, project_id, queue_id.

list_all_post_hog_conversation_queues

Get the message queue for a PostHog conversation. Returns: id, status, title, topic, user, created_at, updated_at, type, is_internal, slack_thread_key, slack_workspace_domain, messages, has_unsupported_content, agent_mode, agent_runtime, is_sandbox, pending_approvals, task. Required: project_id, conversation.

update_a_post_hog_conversation_queue_by_id

Update a queue entry of a PostHog conversation via partial update. Returns: id, status, title, topic, user, created_at, updated_at, type, is_internal, slack_thread_key, slack_workspace_domain, messages, has_unsupported_content, agent_mode, agent_runtime, is_sandbox, pending_approvals, task. Required: id, conversation, project_id, queue_id.

list_all_post_hog_conversations_ai_context_account_properties

List PostHog account-target customer analytics properties that can be included in AI reply context. Returns each record with its id and content-specific attributes. Required: project_id. Capped at the first 500 properties by name.

get_single_post_hog_conversations_ai_reply_playbook_by_id

Get the AI support-reply playbook for a PostHog project, including the inherited instructions and the team's custom addendum if any. Returns: inherited_instructions, custom_instructions, is_customized, default_version, posthog_overlay_version, docs_source, max_chars. Required: id.

delete_a_post_hog_conversations_ticket_by_id

Delete a PostHog conversations ticket. Soft-deletes the ticket; a daily sweeper hard-deletes it after the grace window. Accepts the ticket's UUID or numeric ticket number as id. Returns an empty 204 response on success. Required: id, project_id.

get_single_post_hog_conversations_ticket_by_id

Get a single PostHog conversation ticket by id and mark it as read by the team. Returns: id, ticket_number, channel_source, channel_detail, distinct_id, status, priority, assignee, anonymous_traits, identity_verified, ai_resolved, created_at, message_count, person, and 25 more. Required: id, project_id.

list_all_post_hog_conversations_tickets

List PostHog conversation tickets with person data attached. Returns: id, ticket_number, channel_source, channel_detail, distinct_id, status, priority, assignee, anonymous_traits, created_at, updated_at, person, and 27 more. Filterable by status, priority, assignee, channel, SLA, tags, and free-text search; supports ordering. Required: project_id.

post_hog_conversations_tickets_list_messages

List the messages in a PostHog conversation ticket's thread, ordered chronologically. Returns: id, message_type, content, author_type, author_name, author_email, is_private, created_at. Required: ticket_id, project_id.

post_hog_conversations_tickets_partial_update

Partially update a PostHog conversation ticket, e.g. change its status, priority, assignee, tags, SLA due time, or snooze state. Returns the updated ticket: id, ticket_number, status, priority, assignee, tags, updated_at. Required: ticket_id, project_id.

update_a_post_hog_conversations_ticket_by_id

Update a PostHog conversation ticket, including assignee changes. Returns the updated ticket with id, ticket_number, status, priority, assignee, distinct_id, and created_at. Required: id, project_id.

create_a_post_hog_conversations_view

Create a conversation view in a PostHog project. Returns the created view with id, short_id, name, filters, created_at, created_by, and is_favorited. Required: project_id, name.

delete_a_post_hog_conversations_view_by_id

Delete a PostHog conversation view by id. Returns an empty 204 response on success. Required: id, project_id, short_id. The id is the view short_id, not its UUID.

get_single_post_hog_conversations_view_by_id

Get a single conversation view in a PostHog project by id. Returns: id, short_id, name, filters, created_at, created_by, is_favorited, PersonalAPIKeyAuth. Required: id, project_id, short_id. The id is the view short_id, not its UUID.

list_all_post_hog_conversations_views

List conversation views in a PostHog project. Returns views with id, short_id, name, filters, created_at, created_by, and is_favorited. Required: project_id.

update_a_post_hog_conversations_view_by_id

Update a conversation view in a PostHog project by id, changing its name, filters, or favorite status. Returns the updated view with id, short_id, name, filters, created_at, created_by, and is_favorited. Required: id, project_id, short_id. The id is the view short_id, not its UUID.

create_a_post_hog_coupons_claim

Claim a billing coupon in PostHog. Returns: status. Required: plan, billing_limit.

list_all_post_hog_coupons_overviews

Retrieve an overview of billing coupons for your PostHog organization. Returns an empty 204 response on success.

list_all_post_hog_credits_overviews

Get the billing credits overview in PostHog. Returns: status.

create_a_post_hog_credits_purchase

Purchase PostHog credits. Requires a request body (the vendor's spec references a Billing schema without enumerating its fields). Returns: status. Required: plan, billing_limit.

create_a_post_hog_cross_project_dashboard_tile

Create a tile on a PostHog cross-project dashboard. Returns the created tile including id, project_id, insight_id, layouts, color, and filters_overrides. Requires organization_id, dashboard_id, project_id, and insight_id. Required: dashboard_id, organization_id, project_id, insight_id.

delete_a_post_hog_cross_project_dashboard_tile_by_id

Delete a single tile from a cross-project dashboard in PostHog. Tiles are edited one at a time rather than as a whole-set replace, so concurrent editors cannot overwrite each other's changes. Returns an empty 204 response on success. Required: id, dashboard_id, organization_id.

get_single_post_hog_cross_project_dashboard_tile_by_id

Get a single tile on a PostHog cross-project dashboard by id. Returns: id, project_id, insight_id, layouts, color, filters_overrides. Required: id, organization_id, dashboard_id.

list_all_post_hog_cross_project_dashboard_tiles

List tiles on a PostHog cross-project dashboard. Returns: id, project_id, insight_id, layouts, color, filters_overrides. Required: organization_id, dashboard_id.

update_a_post_hog_cross_project_dashboard_tile_by_id

Update a tile on a PostHog cross-project dashboard by id. Returns the updated tile including id, project_id, insight_id, layouts, color, and filters_overrides. Required: id, organization_id, dashboard_id.

post_hog_current_bulk_update

Update the project-wide sending rules that every PostHog workflow and broadcast follows when it sends a message. Returns: project_id, marketing_frequency_cap_max_messages, marketing_frequency_cap_window_days, email_tracking_consent_mode, capture_workflows_engagement_events. Required: project_id.

get_single_post_hog_current_by_id

Get the aggregated welcome-screen payload for an invited user in a PostHog organization. Returns: organization_name, inviter, team_members, recent_activity, popular_dashboards, products_in_use, suggested_next_steps, is_organization_first_user. Required: id.

list_all_post_hog_current

Get the Signals scout metadata for a PostHog project. Returns: enrolled, banner_message, limits. Required: project_id.

list_all_post_hog_current_broadcast_audience_suggestions

Get the current broadcast audience suggestions for a PostHog project — audiences written by AI from the project's own events. Returns the current suggestions record: id and attributes (the AI-written broadcast audiences). Required: project_id.

list_all_post_hog_current_project_profile

Get the current project profile for a PostHog project — a deterministic team inventory of product mix, integrations, warehouse sources, signal coverage, and inbox surface. Returns: summary (emit gate and inbox report counts), payload (full inventory; omitted when summary_only=true), stale, expires_at, emit_eligibility. Required: project_id.

list_all_post_hog_current_workflow_data_suggestions

List the current AI-generated workflow data suggestions for a PostHog project — workflow ideas written from the project's own events. Returns: id, attributes (suggestion fields are AI-generated per project and not enumerated in the upstream docs). Required: project_id.

list_all_post_hog_current_workflow_sending_rules

Get the project-wide sending rules every PostHog workflow and broadcast follows when sending messages. Returns: project_id, marketing_frequency_cap_max_messages, marketing_frequency_cap_window_days, email_tracking_consent_mode, capture_workflows_engagement_events. Required: project_id.

list_all_post_hog_custom_property_definitions_values

List suggested values for a custom property definition in PostHog. Returns: results, refreshing. Required: key, project_id.

create_a_post_hog_custom_property_source_backfill

Start a backfill for a PostHog person or group custom property source: reads the whole warehouse table and populates properties for historical rows, queueing a follow-up if one is already running. Returns: status, already_running. Required: project_id, custom_property_source_id.

list_all_post_hog_custom_property_source_runs

List the sync runs of a PostHog custom property source, newest first. Returns: id, job_id, trigger, status, started_at, finished_at, rows_read, changed, produced, error, created_at. Required: project_id, custom_property_source_id.

create_a_post_hog_custom_property_source_sync

Trigger a sync for a PostHog custom property source: runs the source's upstream read now (an import for a table binding, a materialization for a view binding). Person and group sources only; table-binding imports are billable warehouse syncs. Returns: status, already_running. Required: project_id, custom_property_source_id.

list_all_post_hog_customer_task_activities

List activity records for a specific customer task in PostHog. Returns: id, activity_type, changes, actor, created_at. Required: project_id, customer_task_id.

create_a_post_hog_customer_tasks_bulk_update

Bulk update selected customer tasks in a PostHog project within a single transaction. Returns: updated_count. Requires project_id, task_ids, and updates; no tasks change if any task fails validation. Required: project_id, task_ids, updates.

create_a_post_hog_dashboard_copy_group

Copy a group of tiles and its settings to another PostHog dashboard. Returns the target dashboard object including its id, name, filters, and tiles. Required: dashboard_id, project_id, fromDashboardId, groupKey.

create_a_post_hog_dashboard_copy_tile

Copy an existing dashboard tile (insight, text card, or widget tile) to another dashboard in PostHog. Returns the dashboard object including its id, name, filters, and tiles. Required: dashboard_id, project_id, id, fromDashboardId, tileId.

create_a_post_hog_dashboard_create_text_tile

Add a markdown text tile to a PostHog dashboard. Returns the created tile including its id, text, layouts, color, and badge. Required: dashboard_id, project_id, body.

create_a_post_hog_dashboard_delete_tile

Soft-delete a single tile from a PostHog dashboard. Works for text, insight, and button tiles — the underlying insight, text, or button object is preserved and only the tile is hidden from the dashboard. To delete the whole dashboard, use the dashboard delete endpoint instead. Returns an empty 204 response on success. Required: dashboard_id,…

post_hog_dashboard_move_tiles_bulk_update

Move a tile to another PostHog dashboard via a partial update of the source dashboard. Returns the updated dashboard object including id, name, filters, and its tiles array. Required: project_id, dashboard_id.

create_a_post_hog_dashboard_move_tile

Move a tile to another PostHog dashboard. Returns the updated dashboard object including id, name, filters, and its tiles array. Required: dashboard_id, project_id, id, to_dashboard, tile.

create_a_post_hog_dashboard_reorder_tile

Reorder the tiles on a PostHog dashboard. Returns the updated dashboard object including its id, name, tiles, filters, and creation_mode. Required: dashboard_id, project_id, tile_order.

list_all_post_hog_dashboard_run_insights

Run all insights on a PostHog dashboard and return their computed results, one entry per insight tile. Returns: results, PersonalAPIKeyAuth. Required: project_id, dashboard_id. Serves cached results by default; pass refresh=force_blocking to always recalculate.

list_all_post_hog_dashboard_run_widgets

Run the widgets of a PostHog dashboard and fetch their fresh per-tile results. Returns: results, PersonalAPIKeyAuth. Required: dashboard_id, project_id, tile_ids, id. Supports json/txt format and server-sent-event streaming.

list_all_post_hog_dashboard_sharings

List sharing configurations for a PostHog dashboard. Returns entries with access_token, enabled, password_required, share_passwords, user_access_level, and created_at. Required: dashboard_id, project_id.

list_all_post_hog_dashboard_stream_tiles

Stream a PostHog dashboard's metadata and tiles via Server-Sent Events, sending the dashboard metadata first and then each tile as it renders. The response is a live text/event-stream rather than a fixed JSON body, so its payload cannot be enumerated as fields. Required: dashboard_id, project_id.

create_a_post_hog_dashboard_subscribe_nudge

Send the requesting user an in-app notification suggesting they subscribe to a PostHog dashboard. Deduplicated server-side: at most one nudge per user and dashboard is ever sent, so repeat calls return 200 with created=false. Returns: created, status, PersonalAPIKeyAuth. Required: dashboard_id, project_id.

create_a_post_hog_dashboard_templates_copy_between_project

Copy a team-scoped dashboard template from one PostHog project into another project in the same organization. Returns the newly created template: id, template_name, scope, team_id, created_at. Required: project_id, source_template_id. Source and destination projects must differ; conflicting template names are auto-suffixed with (copy).

get_single_post_hog_dashboard_templates_json_schema_by_id

Get the dashboard template JSON schema for a PostHog project. Returns: status. Required: id.

create_a_post_hog_dashboard_update_text_tile

Update the markdown body, layout, or color of an existing text tile on a PostHog dashboard. Returns the updated tile with its id, insight, text, layouts, color, and show_description flag. Required: dashboard_id, project_id, tile_id.

create_a_post_hog_dashboards_bulk_delete

Soft-delete up to 100 dashboards at once in a PostHog project, optionally deleting insights left without a dashboard. Returns: deleted, skipped. Required: project_id, ids.

create_a_post_hog_dashboards_bulk_update_tag

Bulk add, remove, or set tags on multiple dashboards in PostHog. Returns: updated, skipped. Requires project_id, ids, action (add, remove, or set), and tags. Required: project_id, ids, action, tags.

create_a_post_hog_dashboards_create_from_template_json

Create a PostHog dashboard from a JSON template definition. Returns: status. Required: project_id. The dashboard template JSON is passed in the request body; its field-level schema is published by the dashboard_templates json_schema endpoint.

create_a_post_hog_dashboards_create_unlisted_dashboard

Create an unlisted PostHog dashboard from a template tag; only one unlisted dashboard per tag is allowed per team and the call fails when one already exists for that tag. Returns: status. Required: project_id.

get_single_post_hog_dashboards_widget_catalog_by_id

List registered dashboard widget types and their per-type config_schema documentation for a PostHog project. Returns: results, PersonalAPIKeyAuth. Required: id.

create_a_post_hog_data_catalog_certification

Create a trust mark certification on a warehouse table or view in PostHog. Returns: id, table, saved_query, target_type, target_name, status, proposed_status, notes, certified_by, certified_at, created_by, created_at, PersonalAPIKeyAuth. Required: project_id.

delete_a_post_hog_data_catalog_certification_by_id

Delete a data catalog certification (a trust mark on a warehouse table or view) in PostHog by its UUID id. Returns an empty 204 response on success. Required: id, project_id.

get_single_post_hog_data_catalog_certification_by_id

Get a single data catalog certification (trust mark on a warehouse table or view) in PostHog by id. Returns: id, table, saved_query, target_type, target_name, status, proposed_status, notes, certified_by, certified_at, created_by, created_at, PersonalAPIKeyAuth. Required: id, project_id.

list_all_post_hog_data_catalog_certifications

List data catalog certifications (trust marks) on warehouse tables and views in a PostHog project; soft-deleted targets are excluded. Returns: id, table, saved_query, target_type, target_name, status, proposed_status, notes, certified_by, certified_at, created_by, created_at, PersonalAPIKeyAuth. Required: project_id.

post_hog_data_catalog_metrics_approve

Approve a PostHog data catalog metric, blessing it as canonical. Returns: id, name, display_name, description, unit, owner, definition, definition_kind, referenced_table_names, status, is_drifted, approved_at, approved_by, source_insight_short_id, and 9 more. Required: project_id, name. Returns 409 while the metric is drifted from its insight.

post_hog_data_catalog_metrics_bulk_change_owner

Assign a single owner to many PostHog data catalog metrics at once, keeping their approvals. Returns: updated, skipped, PersonalAPIKeyAuth. Required: project_id, names, owner. Unknown metrics are skipped.

post_hog_data_catalog_metrics_bulk_delete

Delete a data catalog metric in PostHog by its name. Returns an empty 204 response on success. Required: project_id, name. Deleting a metric frees its name for reuse; references to the old name stop resolving.

post_hog_data_catalog_metrics_bulk_update

Fully update (replace) a PostHog data catalog metric addressed by its name (e.g. mrr). Returns the updated metric including id, name, definition_kind, status, and updated_at. Required: project_id, name, description.

create_a_post_hog_data_catalog_metric

Create a PostHog data catalog metric. Returns: id, name, display_name, description, unit, owner, definition, definition_kind, referenced_table_names, status, is_drifted, approved_at, approved_by, created_at, and 9 more. Required: project_id, name, description. Returns 409 when a live metric already holds the name unless overwrite is true.

list_all_post_hog_data_catalog_metrics

List PostHog data catalog metrics in a project. Returns: id, name, display_name, description, unit, owner, definition, definition_kind, referenced_table_names, status, is_drifted, approved_at, approved_by, source_insight_short_id, last_run_at, created_source, ai_model, confidence, reasoning, created_by, created_at, and 2 more. Required: project_id.

post_hog_data_catalog_metrics_partial_update

Partially update a PostHog data catalog metric, addressed by its name (e.g. mrr). Returns the updated metric including id, name, definition_kind, status, and updated_at. Required: project_id, name.

list_all_post_hog_data_catalog_metrics_data_catalog

Get a data catalog metric in a PostHog project by its name. Returns: id, name, display_name, description, unit, owner, definition, definition_kind, status, is_drifted, approved_at, approved_by, source_insight_short_id, last_run_at, created_source, ai_model, confidence, reasoning, created_by, created_at, and 2 more. Required: project_id, name.

create_a_post_hog_data_catalog_relationship_proposal

Create a reviewed join-fact relationship proposal in PostHog; accepting it later promotes it to a real DataWarehouseJoin. Returns: id, source_table_name, joining_table_name, field_name, confidence, status, reviewed_at, and 11 more. Required: project_id, source_table_name, source_table_key, joining_table_name, joining_table_key, field_name.

get_single_post_hog_data_catalog_relationship_proposal_by_id

Get a single relationship proposal by id in a PostHog project. Returns: id, source_table_name, source_table_key, joining_table_name, joining_table_key, field_name, configuration, confidence, reasoning, evidence, status, reviewed_by, reviewed_at, rejection_reason, created_join, created_by, created_at, PersonalAPIKeyAuth. Required: id, project_id.

list_all_post_hog_data_catalog_relationship_proposals

List reviewed join-fact relationship proposals in a PostHog project. Returns: id, source_table_name, source_table_key, joining_table_name, joining_table_key, field_name, configuration, confidence, reasoning, evidence, status, reviewed_by, reviewed_at, rejection_reason, created_join, created_by, created_at, PersonalAPIKeyAuth. Required: project_id.

post_hog_data_catalog_relationship_proposals_reject

Reject a relationship proposal in PostHog; the rejection persists so the pair is never re-proposed. Returns: id, source_table_name, source_table_key, joining_table_name, joining_table_key, field_name, configuration, confidence, reasoning, status, reviewed_at, rejection_reason, and 6 more. Required: relationship_proposal_id, project_id, id.

create_a_post_hog_data_deletion_requests_preview

Validate a one-column HogQL query in a PostHog project and count the event UUIDs it selects without starting a deletion. Returns: count. Required: project_id, query.

get_single_post_hog_data_modeling_jobs_recent_by_id

Get the most recent non-running data modeling job for each saved query in a PostHog project. Returns: id, saved_query_id, saved_query_name, saved_query_deleted, status, engine, run_mode, full_refresh_reason, rows_materialized, error, created_at, last_run_at, updated_at, workflow_id, workflow_run_id, rows_expected, and 5 more. Required: id.

get_single_post_hog_data_modeling_jobs_running_by_id

Get all currently running data modeling jobs from the v2 backend in a PostHog project. Returns: id, saved_query_id, saved_query_name, saved_query_deleted, status, engine, run_mode, full_refresh_reason, rows_materialized, error, created_at, last_run_at, updated_at, workflow_id, workflow_run_id, rows_expected, read_bytes, and 4 more. Required: id.

create_a_post_hog_data_quality_check_run

Run a data quality check in PostHog now. Returns the suite run to poll for the report, including its id and attributes. Required: data_quality_check_id, project_id.

list_all_post_hog_data_quality_check_runs

List recent runs of a PostHog data quality check, newest first. Returns: id, quality_check, check_name, suite_run, subject_type, subject_uuid, subject_name, check_type, column_name, check_config, check_severity, status, failed_row_count, observed_value, duration_ms, started_at, and 6 more. Required: project_id, data_quality_check_id, id.

list_all_post_hog_data_quality_checks_check_types

List the data quality check types a PostHog project can author, each with the JSON schema of its config. Returns: check_type, description, requires_column, config_schema. Required: project_id.

list_all_post_hog_data_quality_checks_healths

List data quality check health rollups for every subject in a PostHog project that has checks. Returns: subject_type, subject_uuid, health, checks_total, checks_failing. Required: project_id.

list_all_post_hog_data_quality_checks_metric_subjects

List data quality metric subjects in a PostHog project, covering check authoring, running, results, health, and schedules. Returns: id, name, display_name. Required: project_id.

get_single_post_hog_data_quality_checks_output_schema_by_id

Get the columns a data quality check subject's query returns in PostHog, for authoring a check against them. Returns: columns, PersonalAPIKeyAuth. Required: id. Metrics only.

post_hog_data_quality_checks_schedules_bulk_update

Update the schedule for a subject's data quality checks in a PostHog project — change the run interval or stop automatic runs. Returns: id, interval, enabled, next_run_at, last_run_at, last_suite_run. Required: project_id.

get_single_post_hog_data_quality_checks_schedule_by_id

Get the schedule that every enabled data quality check on a subject runs on in a PostHog project. Returns: id, interval, enabled, next_run_at, last_run_at, last_suite_run. Required: id.

list_all_post_hog_data_quality_checks_schedules

List the data quality check schedules of every subject in a PostHog project — one request for the overview instead of one per subject. Returns: id, interval, enabled, next_run_at, last_run_at, last_suite_run, subject_type, subject_uuid. Required: project_id.

list_all_post_hog_data_quality_checks_subjects

List the PostHog subjects in a project you can author a data quality check on, with each subject's columns. Returns: subject_type, id, name, display_name, time_column, columns, editable, PersonalAPIKeyAuth. Required: project_id. Max 1000 per page.

list_all_post_hog_data_quality_run_check_runs

List every check execution in a PostHog data quality suite run. Returns: id, quality_check, check_name, suite_run, subject_type, subject_uuid, subject_name, check_type, column_name, check_config, check_severity, status, failed_row_count, observed_value, duration_ms, started_at, finished_at, and 4 more. Required: data_quality_run_id, project_id.

get_single_post_hog_data_warehouse_check_database_name_by_id

Check whether a data warehouse database name is available in PostHog. Returns: name, available. Required: id, name.

get_single_post_hog_data_warehouse_check_schema_name_by_id

Check if a data warehouse schema name is free within a PostHog project's managed warehouse. Returns: name, available. Required: id, name.

list_all_post_hog_data_warehouse_completed_activities

List completed (non-running) PostHog data warehouse activity runs — finished source syncs and materialized view runs. Returns: results, next, previous. Required: project_id. Max 50 rows per page.

list_all_post_hog_data_warehouse_data_health_issues

List data health issues for a PostHog project's data warehouse pipeline — the failed or disabled items (materializations, syncs, sources, destinations, transformations) shown in the Pipeline status side panel. Returns: results, count, PersonalAPIKeyAuth. Required: project_id.

get_single_post_hog_data_warehouse_data_ops_dashboard_by_id

Get the data ops overview dashboard ID for a PostHog project, creating the dashboard if it doesn't exist yet. Required: id.

post_hog_data_warehouse_data_quality_gates_bulk_update

Update the PostHog team's data warehouse quality gate, controlling whether a materialization whose error-severity checks fail is still published. Returns: gate_materialization_on_checks. Required: project_id.

get_single_post_hog_data_warehouse_data_quality_gate_by_id

Get the PostHog team's data warehouse quality gate, which controls whether a materialization whose error-severity checks fail is still published. Returns: gate_materialization_on_checks. Required: id.

post_hog_data_warehouse_delete_orgs_bulk_delete

Delete an organization's data warehouse provisioning record in PostHog, freeing its warehouse name. Returns: status, org. Required: project_id. Intended to run after the organization's teardown.

create_a_post_hog_data_warehouse_deprovision

Start deprovisioning the organization's managed data warehouse in PostHog. Returns: status, org, PersonalAPIKeyAuth. Required: project_id. Restricted to organization admins; deprovisioning runs asynchronously.

list_all_post_hog_data_warehouse_job_stats

Get success and failed data warehouse job statistics for a PostHog project. Returns: days, cutoff_time, total_jobs, successful_jobs, failed_jobs, external_data_jobs, modeling_jobs, breakdown, status. Required: project_id. Stats window must be 1, 7, or 30 days (default 7).

get_data_warehouse_managed_warehouse_data_status_by_id

Get events, persons, and imported source readiness for the PostHog managed warehouse. Returns: overall_readiness_state, events, persons, sources, generated_at. Required: id.

list_all_data_warehouse_managed_warehouse_monitoring_timeseries

Get one allow-listed managed warehouse monitoring metric for a PostHog project over a trailing time window. Returns: schema_version, org_id, metric, unit, start, end, step_seconds, series. Required: metric, project_id.

get_data_warehouse_managed_warehouse_monitoring_by_id

Get a live managed warehouse monitoring snapshot for a PostHog project, returning tenant-safe worker, session, queue, and capacity data. Returns: schema_version, org_id, as_of, warehouse, limits, totals, workers, coverage. Required: id.

list_all_data_warehouse_managed_warehouse_source_schemas

Get per-schema backfill and live import status for one managed warehouse source in PostHog — the drill-down detail behind the per-source rollup status endpoint. Returns: schemas, PersonalAPIKeyAuth. Required: project_id, source_id.

data_warehouse_managed_warehouse_trino_monitoring_timeseries_lis

Get a PostHog managed warehouse Trino monitoring time series for one allow-listed metric over a trailing time window. Returns: schema_version, org_id, metric, unit, start, end, step_seconds, series. Required: project_id, metric.

get_data_warehouse_managed_warehouse_trino_monitoring_by_id

Get the live Trino monitoring snapshot for a PostHog managed warehouse, including query totals, limits, and in-flight queries. Returns: schema_version, org_id, as_of, trino, available, limits, totals, queries, queries_truncated. Required: id.

create_a_post_hog_data_warehouse_onboard_team

Onboard a PostHog project onto the organization's existing managed warehouse. Returns: onboarded, schema_name. Required: project_id, schema_name. Restricted to organization admins.

list_all_post_hog_data_warehouse_property_values

List distinct values of one column in a PostHog data warehouse table. Required: project_id, table_name, key (the column name).

create_a_post_hog_data_warehouse_provision

Provision a managed PostHog data warehouse for the organization, shared by all its teams. Returns: status, org, username, password. Required: project_id, database_name, schema_name. Provisioning is asynchronous (202 Accepted).

create_a_post_hog_data_warehouse_reset_password

Reset the root password for the managed PostHog data warehouse. Returns: username, password. Required: project_id.

list_all_post_hog_data_warehouse_running_activities

List PostHog data warehouse activity jobs that are currently running (status 'Running'), optionally filtered by cutoff time. Returns: results, next, previous. Required: project_id. Max 50 rows per request.

list_all_post_hog_data_warehouse_total_rows_stats

Get aggregated statistics for the data warehouse total rows processed in PostHog's current billing period. Returns: billing_available, billing_interval, billing_period_start, billing_period_end, total_rows, tracked_billing_rows, pending_billing_rows, materialized_rows_in_billing_period, breakdown_of_rows_by_source, status. Required: project_id.

get_single_post_hog_data_warehouse_warehouse_status_by_id

Get the current provisioning status of the managed PostHog data warehouse for a project, including its onboarding state. Returns: org_id, state, status_message, s3_state, metadata_store_state, identity_state, secrets_state, ready_at, failed_at, connection, trino, has_backfill, table_suffix, team_onboarded, schema_name. Required: id.

create_a_post_hog_dataset_export

Create an asynchronous JSONL export pinned to an immutable dataset revision in PostHog. Returns: id, status, dataset_revision, filename, created_at, expires_after, exception. Pass revision (integer) to select the dataset revision; poll with get to check status. Required: dataset_id, project_id.

get_single_post_hog_dataset_export_by_id

Check the status of a PostHog dataset export by id; only exports created by the current user can be retrieved. Returns: id, status, dataset_revision, filename, created_at, expires_after, exception. Required: id, dataset_id, project_id, export_id.

list_all_post_hog_dataset_item_versions

List every immutable version of a PostHog dataset item, newest first. Returns: id, version, input, expected_output, archived, created_at. Required: project_id, dataset_item_id.

list_all_post_hog_dataset_revisions

List immutable dataset revisions for a PostHog dataset, newest first. Returns: id, dataset_id, revision, created_at, created_by, team_id. Required: dataset_id, project_id.

get_single_post_hog_desktop_accese_by_id

Check PostHog Desktop access for the selected project and organization. Returns a Desktop access evaluation payload whose fields are not documented in the API reference. Required: id. May return a 503 error when the desktop access service is unavailable.

get_single_post_hog_desktop_feedback_attachment_by_id

Download a Desktop feedback attachment image from PostHog. Returns the unexpired attachment as raw binary image data (content type image/*), not a JSON object. Required: id, project_id, media_id.

create_a_post_hog_destinations_delete

Remove a destination from a PostHog alert, stopping delivery to that destination while the alert keeps its email recipients. Returns an empty 204 response on success. Required: alert_id, project_id, id, hog_function_ids.

create_a_post_hog_destinations_deletes_delete

Delete a notification destination of a PostHog logs alert by deleting its HogFunction group atomically. Returns an empty 204 response on success. Required: alert_id, project_id, hog_function_ids.

list_all_post_hog_document_windows

List a window of business knowledge chunks centered on a given ordinal in a PostHog knowledge document. Returns: chunk_id, ordinal, content, heading_path, source_name, document_title, url. Required: around_ordinal, document_id, project_id.

list_all_post_hog_elements_stats

List PostHog element interaction stats: counts of $autocapture, $rageclick, and $dead_click events grouped by element chain, ordered by count. Returns: results, next, previous. Required: project_id. Defaults to all three event types over the last 7 days; narrow with include.

list_all_post_hog_elements_values

List the distinct values recorded for a PostHog element property (tag_name, text, href, or attr_id) in a project. Returns an array of element values, each with: name. Required: key, project_id.

create_a_post_hog_endpoint_materialization_preview

Preview the materialization transform for a PostHog endpoint, showing how the query will look after materialization including range pair detection and bucket functions. Returns: can_materialize, reason, transformed_query, execution_query, display_execution_query, range_pairs, aggregates, PersonalAPIKeyAuth. Required: project_id, name.

list_all_post_hog_endpoint_materialization_status

Get the materialization status for a PostHog endpoint by its URL-safe name. Returns: name, enabled, ready, status, can_materialize, reason, last_materialized_at, error, saved_query_id. Required: name, project_id.

list_all_post_hog_endpoint_openapis

Get the OpenAPI 3.0 specification for a PostHog endpoint, typically to generate a typed SDK client. Returns the generated OpenAPI document with endpoint-specific fields. Required: project_id, name.

create_a_post_hog_endpoint_run

Execute a saved PostHog endpoint with optional materialization. Returns: name, execution_id, results, columns, hasMore, endpoint_version, PersonalAPIKeyAuth. Required: project_id, name. Runs the latest endpoint version when version is not set.

list_all_post_hog_endpoint_runs

Execute a saved PostHog endpoint to retrieve its current results. Returns: name, execution_id, results, columns, hasMore, endpoint_version. Required: project_id, name. Runs the latest endpoint version when version is not set.

list_all_post_hog_endpoint_versions

List all versions for an endpoint in PostHog. Returns each version with id, version, version_id, is_active, created_at, and created_by. Required: name, project_id.

create_a_post_hog_endpoints_last_execution_time

Get the most recent execution time per endpoint in PostHog. Returns query_status for the submitted request. Timestamps are recorded by the run path for personal-API-key calls; for per-version usage, query the query_log table directly. Required: project_id, names.

list_all_post_hog_engineering_analytics_attention_pull_requests

List open GitHub pull requests that need attention in PostHog engineering analytics — failing CI first, then stuck (open, non-draft, non-bot, older than 7 days), newest first, capped. Returns: items, total, limit. Required: project_id. Cost and billable minutes can lag new CI by up to 5 minutes.

get_engineering_analytics_author_friction_detail_by_id

Get one author's friction over pull requests merged in the last 30 days in PostHog engineering analytics, alongside the median of their teams and their highest-friction pull requests. Returns: author, teams, pull_requests, available, window_days, ranked_author_count, has_membership_data, and 2 more. Bots are excluded. Required: id, author.

get_single_post_hog_engineering_analytics_author_friction_by_id

List each author's friction score in PostHog engineering analytics for pull requests merged in the last 30 days, covering CI failures, waits, merge-queue time, and rework. Returns: items, teams, available, window_days, ranked_author_count, github_team, and 1 more. Required: id. Bots are excluded; authors need at least 3 merged pull requests.

list_all_post_hog_engineering_analytics_author_llm_spends

List a GitHub author's pull requests with agent LLM token spend attributed by git branch and AI session in PostHog engineering analytics. Returns: items, truncated, limit. Required: author, project_id. Window defaults to the last 30 days, newest first; max 200 per request.

list_all_post_hog_engineering_analytics_author_workflow_costs

List a GitHub author's estimated CI costs split by workflow in PostHog engineering analytics, highest spend first. Returns: workflow_name, billable_minutes, estimated_cost_usd, costed_jobs, unsettled_jobs, excluded_jobs. Required: project_id, author. Empty list when the job-level source isn't synced; window defaults to -30d.

list_all_post_hog_engineering_analytics_broken_tests

List live CI failures in PostHog's broken-tests triage panel, grouped into distinct failures over the last 2 days and classified by current behavior, ranked most urgent first. Returns: rows, breaking_master_jobs, window_days, truncated, limit. Required: project_id. Fingerprinting is pytest-only for now.

list_all_post_hog_engineering_analytics_ci_cards

Get headline counts for the open-PR backlog in PostHog engineering analytics: open PRs, distinct repos, stuck PRs (older than 7 days), and PRs with failing CI. Returns: open_prs, repos, stuck, failing_ci. Required: project_id. The failing_ci count can lag until late CI completions settle.

get_engineering_analytics_ci_data_freshnesis_by_id

Get a repository's CI data freshness in PostHog engineering analytics: when its stored workflow runs and workflow jobs were last synced from their source — each timestamp marks the start of the last completed sync (the older of the GitHub and Depot CI times when both apply). Use these times, not the request time, to gauge how current CI answers…

list_all_post_hog_engineering_analytics_ci_failure_logs

Get the thinned CI failure logs for a pull request in PostHog, grouped by failed job. Returns: repo, jobs, pr_number, runs_attributed, logs_available, truncated. Required: pr_number, repo, project_id. logs_available is false when CI hasn't failed, the logs aged out of retention, or a fork PR has no run association.

post_hog_engineering_analytics_ci_signals_configs_bulk_update

Enable or disable all CI signal detectors in a PostHog project in one transaction. Returns: configured, enabled, sync_status. Required: project_id, enabled.

get_engineering_analytics_ci_signals_config_by_id

Get the atomic CI Signals configuration for a PostHog project, including the aggregate GitHub warehouse sync status. Returns: configured, enabled, sync_status. Required: id.

get_engineering_analytics_ci_timing_context_by_id

Get how long a CI workflow, matrix, job, or step usually takes in PostHog, compared with recent default-branch runs of the same workflow. Returns: recent, default_branch, runs_scanned, sampled, sample_count, and 6 more. Cached for 5 minutes. Required: id, ci_engine, kind, repo, run_attempt, run_id.

get_engineering_analytics_current_branch_health_by_id

Get the current default-branch CI verdict for a PostHog project, counting every workflow whose latest completed run in the last 24 hours failed or timed out. Returns: default_branch, settled_workflows, failing_workflows, failing_workflow_names. Required: id. The window is fixed and ignores analytics date filters.

get_engineering_analytics_delivery_comparison_by_id

Get a PostHog delivery comparison: an author's median ready-to-merged time, split at first approval, beside team and repo medians. Returns: author_medians, teams, repo_medians, pull_request, author, has_membership_data, team_basis, and 3 more. Required: id, author. Bots and drafts excluded; date_from defaults to -30d; pr_number requires repo.

get_single_post_hog_engineering_analytics_delivery_summary_by_id

Get PostHog delivery and CI friction metrics for one author or GitHub team over a window, each figure benchmarked against the whole repository. Returns: cost_per_merged_pr_usd, lead_time, scope_kind, scope, merged_pr_count, total_cost_usd, and 20 more. Required: id. Pass exactly one of author or github_team; bots and drafts are excluded.

get_single_post_hog_engineering_analytics_dora_by_id

Get DORA deploy metrics for a PostHog project: deployment frequency, merge-to-deploy lead time, and failure-rate/restore proxies, each with its previous-window twin. Returns: deployment_frequency_series, deployment_count, median_merge_to_deploy_seconds, and 28 more. Required: id. deploy_data_available is false when the deploy tables aren't synced.

list_all_post_hog_engineering_analytics_flaky_tests

List the active flaky-test queue for a PostHog project: pytest and Jest tests worth acting on, over a window (default -7d, max 30 days). Returns: items, truncated, limit. Required: project_id.

list_all_post_hog_engineering_analytics_job_aggregates

List per-job aggregates for one PostHog workflow over a window (default -30d), busiest first, with matrix shards aggregated per de-sharded job name. Returns: job_name, job_count, shard_count, run_share, p95_seconds, failure_rate, estimated_cost_usd, and 6 more. Required: project_id, workflow_name. Empty when the job-level source isn't synced.

list_all_post_hog_engineering_analytics_job_log_insights

Get what one GitHub Actions job's log says it did in PostHog — cache restores and migrations applied, per job and per step. Returns: job, steps, log_read, attributed_to_steps, log_truncated. log_read is false, never an error, when no log is readable. Required: job_id, project_id, repo, run_id.

get_engineering_analytics_llm_spend_coverage_by_id

Get LLM spend coverage for a PostHog engineering analytics repository: the cost and count of $ai_generation events stamped with the repo and the portion credited to pull requests. Returns: cost_usd, attributed_cost_usd, generations, attributed_generations. Required: id. Defaults to a -30 day window ending now.

list_all_post_hog_engineering_analytics_master_failures

List default-branch CI failures in PostHog engineering analytics, grouped error-tracking style by workflow and failing job. Returns: repo, workflow_name, failed_job, run_count, first_seen, last_seen, latest_run_id, latest_ci_engine. Required: project_id. Window defaults to the last 24 hours; max 366 days; PR-branch failures excluded.

get_single_post_hog_engineering_analytics_pr_cost_by_id

Get a pull request's estimated CI cost in PostHog, summed over its workflow-run jobs (billable self-hosted Linux runners only). Returns: by_workflow, by_run, llm_spend, jobs_available, billable_minutes, and 4 more. Required: id, pr_number, repo. Figures are zero/null with jobs_available false when the job-level source isn't synced yet.

get_single_post_hog_engineering_analytics_pr_lifecycle_by_id

Get the lifecycle timeline of a single pull request in PostHog engineering analytics: header plus ordered events (opened, CI started/finished, merged or closed). Returns: pull_request, events, metric_quality. Required: id, pr_number, repo. Partial view — review and comment events are not yet available.

list_all_post_hog_engineering_analytics_pr_runs

List PostHog engineering analytics CI workflow runs attributed to a pull request across all its commits (grouped by head SHA), newest first. Returns: repo, id, workflow_name, head_sha, head_branch, status, conclusion, run_started_at, updated_at, duration_seconds, run_attempt, pr_number, and 8 more. Required: pr_number, repo, project_id.

get_engineering_analytics_pull_request_friction_by_id

Get a merged pull request's friction metrics in PostHog engineering analytics, expressed as a multiple of the typical pull request. Returns: pull_request, available, window_days. Required: id, pr_number, repo. Covers PRs merged in the last 30 days.

list_all_post_hog_engineering_analytics_pull_request_timelines

List pull request timelines in PostHog engineering analytics: what each PR waited on from ready-for-review to merge or now — review, CI, red checks, merge queue. Returns: items, scope_kind, scope, generated_at, merged_pr_count, and 8 more. Required: project_id. Pass exactly one of author, github_team, or pr_number; pr_number also requires repo.

list_all_post_hog_engineering_analytics_pull_requests

List PostHog engineering analytics pull requests: open PRs plus any merged or closed since date_from (default -30d), newest first, each with its head-SHA CI rollup. Returns: items, truncated, limit. Required: project_id. Pass state to list one state only; limit is 1–1000.

get_single_post_hog_engineering_analytics_quarantine_by_id

Get a PostHog project's flaky-test quarantine file (.test_quarantine.json). Returns: entries, repo, available, parse_errors, parse_warnings, source_url, generated_at. Required: id. available is false when the repo has no quarantine file (not an error); malformed entries are reported in parse_errors.

get_single_post_hog_engineering_analytics_repo_overview_by_id

Get repo-level engineering analytics aggregates for a PostHog project over a window (default -30d). Returns: cost_series, time_to_green_series, success_rate_series, run_count, success_rate, merged_pr_count, revert_share, estimated_cost_usd, median_time_to_green_seconds, default_branch, and 55 more. Required: id. Max 366-day window.

get_engineering_analytics_repo_run_activity_by_id

Get default-branch health for a PostHog repo as compact chart points over a window, newest first, with all workflow runs of a commit collapsed into one point per head SHA. Returns: points, truncated, limit. Required: id. Window capped at 366 days.

list_all_post_hog_engineering_analytics_resolve_branches

Resolve a git branch to the pull request(s) it belongs to in PostHog engineering analytics, matching the PR's head ref with open PRs ranked first. Returns a possibly-empty list of matches with repo, number, title, and state. Required: project_id, branch.

list_all_post_hog_engineering_analytics_run_failure_logs

List the thinned CI failure logs of one workflow run in PostHog, grouped by failed job. Returns: jobs, run_id, logs_available, truncated, ci_engine. Required: project_id, run_id. ci_engine is required when run_id exists in both engines; logs_available is false when the run didn't fail or its logs aged out of retention.

list_all_post_hog_engineering_analytics_sources

List the PostHog team's selectable GitHub repositories for engineering analytics, oldest first — one entry per repository a source is configured to sync. Returns: id, repo, prefix, synced. Required: project_id. Includes repositories whose tables aren't fully synced yet.

get_single_post_hog_engineering_analytics_team_ci_activity_by_id

Get one owning team's CI test activity in PostHog: per-test current-vs-prior signal pairs over a window and its equal-length prior twin. Returns: tests, owner_team, truncated_tests. Required: id, owner_team. The window may span at most 30 days.

list_all_post_hog_engineering_analytics_team_ci_healths

List per-owning-team CI health rollups in PostHog: owned flaky, regression, failed, recovery, and quarantined counts (absolute, never rates) with prior-window twins for deltas. Returns: items, truncated, limit. Required: project_id. Window capped at 30 days; limit 1-200, default 100.

get_single_post_hog_engineering_analytics_team_merge_trend_by_id

Get a team's daily time-to-merge trend in PostHog engineering analytics (median and average open-to-merge seconds for merged PRs). Returns: points, owner_team, has_membership_data. Required: id, owner_team. The date window may span at most 30 days; bots are excluded and only team-level aggregates are returned.

get_single_post_hog_engineering_analytics_trunk_quarantine_by_id

Get the Trunk quarantine debt by owning team in PostHog: every test Trunk currently quarantines in CI, rolled up per owning team with the most indebted first. Returns: teams, tests, available, owners_resolved, ttl_days, repository, and 4 more. Required: id. available is false when no source has the QuarantinedTests endpoint synced — not an error.

list_all_post_hog_engineering_analytics_workflow_healths

List per-workflow CI health for a PostHog project over a time window (default last 24 hours, max 366 days). Returns: repo, buckets, workflow_name, run_count, successful_run_count, conclusive_run_count, success_rate, p50_seconds, p95_seconds, last_failure_at, latest_run_failed, latest_run_conclusion, latest_run_id, and 10 more. Required: project_id.

list_all_post_hog_engineering_analytics_workflow_jobs

List jobs of a PostHog engineering analytics workflow run attempt, with per-job duration, runner tier, and estimated cost. Returns: steps, id, run_id, name, status, conclusion, started_at, completed_at, duration_seconds, runner_label, estimated_cost_usd, and 7 more. Empty list if the job-level source isn't synced yet. Required: project_id, run_id.

get_engineering_analytics_workflow_run_activity_by_id

Get compact per-run activity points for a single PostHog workflow over a time window, newest first, for the run-activity chart. Returns: points, truncated, limit. date_from defaults to -30d; run_scope accepts all, default_branch, merge_queue, or pull_request. Required: id, repo, workflow_name.

list_all_post_hog_engineering_analytics_workflow_runner_costs

List a PostHog workflow's estimated CI cost broken down by runner tier, highest spend first, over a window (date_from defaults to -30d). Returns: provider, runner_label, job_count, billable_minutes, estimated_cost_usd. Required: project_id, repo, workflow_name. Returns an empty list when the job-level source isn't synced.

get_single_post_hog_engineering_analytics_workflow_run_by_id

Get a single PostHog engineering analytics workflow run by id. Returns: repo, id, workflow_name, head_sha, head_branch, status, conclusion, run_started_at, updated_at, duration_seconds, run_attempt, pr_number, commit_pr_number, is_merge_queue, and 6 more. Run-level only: per-job and per-step detail are not tracked yet. Required: id, run_id.

list_all_post_hog_engineering_analytics_workflow_runs

List PostHog engineering analytics runs of a single workflow within a repo over a window (date_from defaults to -30d), newest first. Returns: repo, id, workflow_name, head_sha, head_branch, status, conclusion, run_started_at, duration_seconds, run_attempt, pr_number, commit_pr_number, and 8 more. Required: project_id, repo, workflow_name.

create_a_post_hog_error_tracking_alert

Create an error tracking alert in a PostHog project. Returns the created alert with id, name, enabled, triggers, destinations, and created_at. Required: project_id, name, triggers, destinations.

delete_a_post_hog_error_tracking_alert_by_id

Delete an error tracking alert in PostHog by id. Returns an empty 204 response on success. Required: project_id, id.

get_single_post_hog_error_tracking_alert_by_id

Get a single error tracking alert by id in a PostHog project. Returns the alert with id, name, enabled, triggers, filters, throttle_seconds, and created_at. Required: id, project_id.

list_all_post_hog_error_tracking_alerts

List error tracking alerts in a PostHog project. Returns alerts with id, name, enabled, triggers, destinations, and created_at. Required: project_id.

post_hog_error_tracking_alerts_partial_update

Partially update an error tracking alert in a PostHog project. Returns the updated alert with id, name, enabled, triggers, destinations, and updated_at. Required: alert_id, project_id.

update_a_post_hog_error_tracking_alert_by_id

Update an error tracking alert in PostHog by id. Returns: id, name, enabled, triggers, filters, throttle_seconds, destinations, created_at, updated_at, PersonalAPIKeyAuth. Required: id, project_id, name, triggers, destinations.

create_a_post_hog_error_tracking_assignment_rule

Create an error tracking assignment rule in a PostHog project. Returns: id, filters, assignee, order_key, disabled_data, created_at, updated_at, PersonalAPIKeyAuth. Required: project_id, filters, assignee.

delete_a_post_hog_error_tracking_assignment_rule_by_id

Delete an error tracking assignment rule in PostHog by id. Returns an empty 204 response on success. Required: project_id, id.

get_single_post_hog_error_tracking_assignment_rule_by_id

Get a single error tracking assignment rule by id in a PostHog project. Returns: id, filters, assignee, order_key, disabled_data, created_at, updated_at. Required: id, project_id.

list_all_post_hog_error_tracking_assignment_rules

List error tracking assignment rules in a PostHog project. Returns: id, filters, assignee, order_key, disabled_data, created_at, updated_at. Required: project_id.

post_hog_error_tracking_assignment_rules_partial_update

Partially update an error tracking assignment rule in a PostHog project, sending only the fields you want to change. Returns an empty 204 response on success. Required: project_id, assignment_rule_id.

update_a_post_hog_error_tracking_assignment_rule_by_id

Update an error tracking assignment rule in PostHog. Returns an empty 204 response on success. Required: project_id, id.

list_all_post_hog_error_tracking_built_in_filters

List PostHog error tracking built-in filters for a project. Returns: key, name, description, evaluation, enabled, disabled_reason. Required: project_id.

update_a_post_hog_error_tracking_built_in_filter_by_id

Enable or disable a PostHog error tracking built-in filter by id. Returns: key, name, description, evaluation, enabled, disabled_reason. Required: id, project_id, key.

create_a_post_hog_error_tracking_bypass_rule

Create an error tracking bypass rule in a PostHog project to exempt matching error events from rate limiting. Returns the created rule with id, filters, order_key, disabled_data, created_at, and updated_at. Required: project_id, filters.

delete_a_post_hog_error_tracking_bypass_rule_by_id

Delete an error tracking bypass rule in PostHog by id. Returns an empty 204 response on success. Required: project_id, id.

get_single_post_hog_error_tracking_bypass_rule_by_id

Get a single error tracking bypass rule by id in a PostHog project. Returns: id, filters, order_key, disabled_data, created_at, updated_at. Required: id, project_id.

list_all_post_hog_error_tracking_bypass_rules

List error tracking bypass rules for a PostHog project. Returns: id, filters, order_key, disabled_data, created_at, updated_at. Required: project_id.

post_hog_error_tracking_bypass_rules_partial_update

Partially update an error tracking bypass rule in PostHog by id, modifying only the fields provided. Returns an empty 204 response on success. Required: project_id, bypass_rule_id.

update_a_post_hog_error_tracking_bypass_rule_by_id

Update an error tracking bypass rule in PostHog. Returns an empty 204 response on success. Required: id, project_id.

create_a_post_hog_error_tracking_external_reference

Create an external reference linking a PostHog error tracking issue to an external system. Returns: id, integration, external_url, external_id, title. Required: project_id, integration_id, config, issue.

delete_a_post_hog_error_tracking_external_reference_by_id

Delete a PostHog error tracking external reference by id. PostHog does not allow hard deletes for this object, so this sends PATCH with deleted=true (a soft delete); the error tracking external reference no longer appears in lists afterwards. Required: id, project_id.

get_single_post_hog_error_tracking_external_reference_by_id

Get a single PostHog error tracking external reference by id. Returns: id, integration, external_url, external_id, title. Required: id, project_id.

list_all_post_hog_error_tracking_external_references

List PostHog error tracking external references for a project. Returns: id, integration, external_url, external_id, title. Required: project_id.

delete_a_post_hog_error_tracking_fingerprint_by_id

Delete a PostHog error tracking fingerprint by id. PostHog does not allow hard deletes for this object, so this sends PATCH with deleted=true (a soft delete); the error tracking fingerprint no longer appears in lists afterwards. Required: id, project_id.

get_single_post_hog_error_tracking_fingerprint_by_id

Get a single error tracking fingerprint by id in a PostHog project. Returns: id, fingerprint, issue_id, created_at, PersonalAPIKeyAuth. Required: id, project_id.

list_all_post_hog_error_tracking_fingerprints

List error tracking fingerprints in a PostHog project. Returns: id, fingerprint, issue_id, created_at. Required: project_id.

create_a_post_hog_error_tracking_grouping_rule

Create a PostHog error tracking grouping rule. Returns the created rule with id, filters, assignee, description, issue, order_key, disabled_data, created_at, and updated_at. Required: project_id, filters.

delete_a_post_hog_error_tracking_grouping_rule_by_id

Delete a PostHog error tracking grouping rule by id within a project. Returns an empty 204 response on success. Required: project_id, id.

get_single_post_hog_error_tracking_grouping_rule_by_id

Get a single PostHog error tracking grouping rule by id. Returns the rule with id, filters, assignee, description, issue, order_key, disabled_data, created_at, and updated_at. Required: id, project_id.

list_all_post_hog_error_tracking_grouping_rules

List PostHog error tracking grouping rules for a project. Returns the matching grouping rules in results. Required: project_id.

post_hog_error_tracking_grouping_rules_partial_update

Partially update a PostHog error tracking grouping rule by grouping_rule_id within a project. Returns an empty 204 response on success. Required: grouping_rule_id, project_id.

update_a_post_hog_error_tracking_grouping_rule_by_id

Update a PostHog error tracking grouping rule by id within a project. Returns an empty 204 response on success. Required: id, project_id.

post_hog_error_tracking_issues_bulk_create

Bulk update error tracking issues in a PostHog project by applying an action to a list of issue ids. Returns: success. Required: project_id, action, ids.

delete_a_post_hog_error_tracking_issue_by_id

Delete a PostHog error tracking issue by id. PostHog does not allow hard deletes for this object, so this sends PATCH with deleted=true (a soft delete); the error tracking issue no longer appears in lists afterwards. Required: id, project_id.

get_single_post_hog_error_tracking_issue_by_id

Get a single PostHog error tracking issue by id. Returns: id, status, severity, name, description, first_seen, assignee, external_issues, cohort. Required: id, project_id.

post_hog_error_tracking_issues_get_activity

Retrieve the activity log recorded for a single error tracking issue in PostHog. Returns an empty response body on success. Required: project_id, issue_id.

list_all_post_hog_error_tracking_issues

List PostHog error tracking issues in a project. Returns: id, status, severity, name, description, first_seen, assignee, external_issues, cohort. Required: project_id.

post_hog_error_tracking_issues_merge

Merge error tracking issues into a target issue in a PostHog project. Returns: success. Required: project_id, issue_id, ids.

post_hog_error_tracking_issues_partial_update

Partially update a PostHog error tracking issue by issue_id, modifying only the submitted fields. Returns: id, status, severity, name, description, first_seen, assignee, external_issues, cohort. Required: issue_id, project_id.

post_hog_error_tracking_issues_split

Split an error tracking issue into multiple issues in a PostHog project. Returns: success, new_issue_ids. Required: project_id, issue_id.

update_a_post_hog_error_tracking_issue_by_id

Update a PostHog error tracking issue by id. Returns the updated issue with id, status, severity, name, description, first_seen, assignee, external_issues, and cohort. Required: id, project_id.

post_hog_error_tracking_issues_update_assign

Assign an error tracking issue in a PostHog project. Returns: success. Required: project_id, issue_id.

list_all_post_hog_error_tracking_recommendations

List error tracking recommendations for a PostHog project. Returns recommendation entries including id, type, status, completed, computed_at, and created_at. Required: project_id.

post_hog_error_tracking_recommendations_restore

Restore a dismissed error tracking recommendation in PostHog. Returns: id, type, meta, completed, status, computed_at, dismissed_at, created_at, updated_at, PersonalAPIKeyAuth. Required: project_id, recommendation_id.

create_a_post_hog_error_tracking_release

Create an error tracking release in a PostHog project. Returns: id, hash_id, team_id, created_at, metadata, version, project, PersonalAPIKeyAuth. Required: version, project, project_id.

delete_a_post_hog_error_tracking_release_by_id

Delete an error tracking release in PostHog by id. Returns an empty 204 response on success. Required: project_id, id.

get_single_post_hog_error_tracking_release_by_id

Get a single error tracking release by id in a PostHog project. Returns: id, hash_id, team_id, created_at, metadata, version, project, PersonalAPIKeyAuth. Required: id, project_id.

list_all_post_hog_error_tracking_releases

List error tracking releases in a PostHog project. Returns: id, hash_id, team_id, created_at, metadata, version, project, PersonalAPIKeyAuth. Required: project_id.

post_hog_error_tracking_releases_partial_update

Partially update an error tracking release in PostHog, applying only the fields sent. Returns an empty 204 response on success. Required: release_id, project_id.

update_a_post_hog_error_tracking_release_by_id

Update an error tracking release in PostHog. Returns an empty 204 response on success. Required: id, project_id.

create_a_post_hog_error_tracking_severity_rule

Create an error tracking severity rule in a PostHog project. Returns: id, filters, severity, order_key, disabled_data, created_at, updated_at. Requires project_id, filters, and severity. Required: project_id, filters, severity.

delete_a_post_hog_error_tracking_severity_rule_by_id

Delete an error tracking severity rule in PostHog by id. Returns an empty 204 response on success. Required: id, project_id.

get_single_post_hog_error_tracking_severity_rule_by_id

Get a single error tracking severity rule by id in a PostHog project. Returns: id, filters, severity, order_key, disabled_data, created_at, updated_at. Required: id and project_id.

list_all_post_hog_error_tracking_severity_rules

List error tracking severity rules for a PostHog project. Returns: results. Required: project_id.

post_hog_error_tracking_severity_rules_partial_update

Partially update an error tracking severity rule in PostHog by id. Returns an empty 204 response on success. Required: project_id, severity_rule_id.

update_a_post_hog_error_tracking_severity_rule_by_id

Update an error tracking severity rule in PostHog by id. Returns an empty 204 response on success. Required: id, project_id.

list_all_post_hog_error_tracking_spike_detection_configs

Retrieve the error tracking spike detection configuration for a PostHog project. Returns: snooze_duration_minutes, multiplier, threshold. Required: project_id.

list_all_post_hog_error_tracking_spike_events

List error tracking spike events detected in a PostHog project. Returns a paginated response with count, next, previous, and results. Required: project_id.

delete_a_post_hog_error_tracking_stack_frame_by_id

Delete a PostHog error tracking stack frame by id. PostHog does not allow hard deletes for this object, so this sends PATCH with deleted=true (a soft delete); the error tracking stack frame no longer appears in lists afterwards. Required: id, project_id.

get_single_post_hog_error_tracking_stack_frame_by_id

Get a single PostHog error tracking stack frame by id. Returns: id, raw_id, created_at, contents, resolved, context, symbol_set_ref, release. Required: id, project_id.

list_all_post_hog_error_tracking_stack_frames

List PostHog error tracking stack frames for a project. Returns a paginated list with count, next, previous, and results. Required: project_id.

create_a_post_hog_error_tracking_suppression_rule

Create an error tracking suppression rule in a PostHog project. Returns: id, filters, order_key, disabled_data, sampling_rate, created_at, updated_at, PersonalAPIKeyAuth. Required: project_id.

delete_a_post_hog_error_tracking_suppression_rule_by_id

Delete an error tracking suppression rule in a PostHog project by id. Returns an empty 204 response on success. Required: id, project_id.

get_single_post_hog_error_tracking_suppression_rule_by_id

Get a single error tracking suppression rule by id in a PostHog project. Returns: id, filters, order_key, disabled_data, sampling_rate, created_at, updated_at. Required: id, project_id.

list_all_post_hog_error_tracking_suppression_rules

List error tracking suppression rules in a PostHog project. Returns the paginated collection with count, next, previous, and results. Required: project_id.

post_hog_error_tracking_suppression_rules_partial_update

Partially update an error tracking suppression rule in PostHog, changing only the fields sent in the request body. Returns an empty 204 response on success. Required: project_id, suppression_rule_id.

update_a_post_hog_error_tracking_suppression_rule_by_id

Update a PostHog error tracking suppression rule in the given project by id. Returns an empty 204 response on success. Required: id, project_id.

delete_a_post_hog_error_tracking_symbol_set_by_id

Delete a PostHog error tracking symbol set by id within a project. Returns an empty 204 response on success. Required: id, project_id.

get_single_post_hog_error_tracking_symbol_set_by_id

Get a single error tracking symbol set in PostHog by id. Returns: id, ref, team_id, created_at, last_used, failure_reason, has_uploaded_file, release, PersonalAPIKeyAuth. Required: id, project_id.

list_all_post_hog_error_tracking_symbol_sets

List error tracking symbol sets in a PostHog project. Returns a paginated list: count, next, previous, and results. Required: project_id.

post_hog_evaluation_backfills_cancel

Cancel a running PostHog evaluation backfill; evaluations already dispatched still finish. Returns the backfill record: id, status, created_at, updated_at. Required: evaluation_id, backfill_id, project_id.

create_a_post_hog_evaluation_backfill

Create a PostHog evaluation backfill that re-runs one evaluation over a closed historical time window. Returns: id, status, status_reason, target, window_start, window_end, conditions, rerun_existing, total_count, completed_count, remaining_count, created_at, and 6 more. Required: project_id, evaluation_id, window_start, window_end.

get_single_post_hog_evaluation_backfill_by_id

Get a single PostHog evaluation backfill by id. Returns: id, status, status_reason, target, window_start, window_end, conditions, rerun_existing, total_count, dispatched_count, completed_count, evaluation_skipped_count, skipped_count, failed_count, remaining_count, created_by, created_at, finished_at. Required: project_id, evaluation_id, id.

list_all_post_hog_evaluation_backfills

List evaluation backfills (historical runs of one evaluation over a closed time window) in a PostHog project. Returns: count, next, previous, results. Required: project_id, evaluation_id.

list_all_post_hog_evaluation_runs

List a PostHog evaluation's latest graded runs in a period, newest first, optionally filtered to passed or failed outcomes. Returns: results, PersonalAPIKeyAuth. Required: project_id, evaluation_id, id. Max 50 runs, default 5.

get_single_post_hog_evaluation_score_distribution_by_id

Get how a PostHog evaluation's scores spread across its configured scale during a period. Returns a histogram with the scale's min and max plus one bucket per score range with its label and count. Required: id, project_id. The evaluation must be numeric with a minimum and maximum score.

get_single_post_hog_evaluations_overview_by_id

Get the PostHog evaluations overview for a project: each evaluation's results over a period, compared with the preceding period of equal length. Returns: start, end, previousStart, previousEnd, interval, buckets, evaluations, totals, passRateOverview. Required: id. Period is capped at 91 days.

create_a_post_hog_evaluations_test_hog

Test Hog evaluation code in PostHog against sample events without saving it. Returns: results, message, PersonalAPIKeyAuth. Required: project_id, source.

list_all_post_hog_event_definition_metrics

List the metrics associated with an event definition in PostHog. The upstream 200 response carries no body. Required: event_definition_id, project_id.

create_a_post_hog_event_definitions_bulk_update_tag

Add, remove, or replace tags across multiple PostHog event definitions in one bulk request. Returns: updated, skipped. Requires project_id, ids, action, and tags. Required: project_id, ids, action, tags.

create_a_post_hog_event_definitions_bulk_update_verified

Bulk mark PostHog event definitions as verified or unverified in one request. Returns: updated, skipped. Requires an enterprise license. Required: project_id, ids, verified.

get_single_post_hog_event_definitions_by_name_by_id

Get a PostHog event definition by its exact name. Returns the event definition including its id, name, created_at, last_seen_at, last_updated_at, tags, and action details. Required: id, name.

get_single_post_hog_event_definitions_golang_by_id

Retrieve the golang event definitions for a PostHog project by id. Returns an empty 204 response on success. Required: id.

list_all_post_hog_event_definitions_primary_properties

List team-configured primary properties for PostHog event definitions. Returns primary_properties, a mapping of event name to the primary property configured on that EventDefinition, including only events with a non-null primary_property. Required: project_id. Fall back to core taxonomy defaults client-side for event names not present in the…

get_single_post_hog_event_definitions_python_by_id

Get the Python event definitions for a PostHog project by id. Returns no response body on success. Required: id.

get_single_post_hog_event_definitions_typescript_by_id

Get the generated TypeScript types file for a project's event definitions in PostHog. Returns a content-type-specific TypeScript file with no structured JSON body. Required: id.

list_all_post_hog_event_filter_metrics

Get time-series metrics for the team's single event filter in PostHog. Returns the AppMetricsResponse time-series payload; the API reference defines it via schema reference without expanding its fields. Required: project_id.

create_a_post_hog_event_stream_add_account

Add an account to a PostHog event stream so its events post to the caller's Slack channel. Returns the updated event stream including id, enabled, event_names, account_ids, and created_at. Required: event_stream_id, project_id, account_id.

create_a_post_hog_event_stream_remove_account

Remove an account from a PostHog event stream (each team member owns at most one stream). Returns the updated stream object: id, enabled, account_ids, event_names, slack_channel_name, updated_at. Required: event_stream_id, project_id, account_id.

create_a_post_hog_event_stream_send_test_message

Send a test message through a PostHog event stream — a live feed of selected accounts' events delivered to a Slack channel — to verify its delivery configuration. Returns the test message result with its status (e.g. "Ok"). Required: event_stream_id, project_id.

list_all_post_hog_events_values

List values of an event property from recent events in PostHog. Returns: results, refreshing, PersonalAPIKeyAuth. PostHog's API reference types this payload only as EventPropertyValuesResponse and does not expand the item fields. Required: project_id, key.

create_a_post_hog_experiment_copy_to_project

Copy a PostHog experiment into another project in the same organization as a new draft. Returns: id, name, description, start_date, end_date, feature_flag_key, feature_flag, holdout, holdout_id, exposure_cohort, running_time_calculation, excluded_variants, created_at, status, and 28 more. Required: experiment_id, project_id, target_team_id.

create_experiment_create_exposure_cohort_for_experiment

Create an exposure cohort for a PostHog experiment. Returns: status, PersonalAPIKeyAuth. Required: experiment_id, project_id, name, feature_flag_key.

create_a_post_hog_experiment_end

End a running PostHog experiment without shipping a variant, freezing results at end_date without modifying its feature flag. Returns the experiment: id, name, feature_flag_key, end_date, status. Returns 400 if the experiment is not running. Required: experiment_id, project_id.

get_single_post_hog_experiment_flag_cleanup_target_by_id

Get the repository a flag-cleanup pull request for a PostHog experiment would be opened in. Returns: repository, source, candidates. Required: project_id, id. If multiple repos are connected and none is saved (source=ambiguous), pass repository on end/ship_variant.

get_single_post_hog_experiment_flag_cleanup_task_by_id

Get the status of the flag-cleanup Desktop task opened for a PostHog experiment. Returns: task_id, run_status, is_terminal, pr_url, can_view_task. Poll until is_terminal is true; returns 404 when no cleanup task was opened. Required: id, project_id.

create_a_post_hog_experiment_freeze_exposure

Freeze exposure on a running PostHog experiment: snapshot already-exposed users into a static cohort and narrow the linked feature flag; metrics keep flowing. Returns: id, name, description, start_date, end_date, metrics, and 37 more. Returns 400 if not running, already frozen, or group-aggregated. Required: experiment_id, project_id.

list_all_post_hog_experiment_health_inputs

Get the inputs that PostHog experiment health checks read, to debug why a finding shows or not. Staff only. Returns: is_launched, is_running, has_ended, is_paused, archived, flag, exposures, project, and 16 more. Exposure data is served from cache; a background calculation may run when it is stale. Required: experiment_id, project_id.

get_single_post_hog_experiment_health_by_id

Get the health check findings for a PostHog experiment: configuration and feature-flag problems that would produce untrustworthy results, each with code, severity, detail, evidence, and suggested fix actions, plus the result of every check. Returns: findings, checks, PersonalAPIKeyAuth. Required: id, project_id.

get_single_post_hog_experiment_in_session_exposure_by_id

Get how the recordings tab's in-session exposure scope reads on a PostHog experiment. Returns: available, unavailable_reason, uses_stamped_fallback. Required: id, project_id.

create_a_post_hog_experiment_launch

Launch a draft PostHog experiment: activates its linked feature flag, sets start_date to the current server time, and transitions the experiment to running. Returns: id, name, description, start_date, end_date, status, 37 more. Required: experiment_id, project_id. Returns 400 if already launched or the feature flag has fewer than 2 variants.

create_a_post_hog_experiment_metrics_recalculation

Trigger a batch recalculation of all metrics for a PostHog experiment. Returns: id, experiment_id, status, total_metrics, metric_errors, created_at, is_existing, and 6 more. No results array is included at queue time; re-triggers within five minutes of the last completed run return 429 Retry-After. Required: experiment_id, project_id, id.

get_single_post_hog_experiment_metrics_recalculation_by_id

Get a metrics recalculation run for a PostHog experiment by id. Returns: id, experiment_id, status, total_metrics, completed_metrics, failed_metrics, metric_errors, created_at, metric_retries, results, rows_read, estimated_rows_total, and 4 more. Poll this to track recalculation progress. Required: id, experiment_id, project_id, recalculation_id.

create_a_post_hog_experiment_migrate

Migrate a legacy PostHog experiment onto the new experiments engine by creating a copy with the same configuration and its metrics converted to the new format. Returns the new experiment object including id, name, status, metrics, and 3 more fields. Returns 400 if the experiment already uses the new engine. Required: experiment_id, project_id.

create_a_post_hog_experiment_recalculate_timesery

Recalculate the timeseries for a PostHog experiment. Returns an empty 200 response on success. Requires project_id, experiment_id, and a request body following the Experiment schema. Required: experiment_id, project_id, name, feature_flag_key.

get_single_post_hog_experiment_running_time_target_by_id

Get the running time target sample for a PostHog experiment — the sample its running time estimate is compared against. Returns: minimum_detectable_effect, recommended_sample_size, current_sample_size, outlook. Required: id, project_id.

create_a_post_hog_experiment_session_bucket

Create a session bucket for a PostHog experiment, returning the bounded, most-recent-first session IDs of session recordings matching the bucket. Returns: session_ids, truncated, considered_metrics, excluded_metrics, date_from, date_to, filter_test_accounts, and 1 more. Read-only despite using POST. Required: experiment_id, project_id, bucket.

create_a_post_hog_experiment_session_event_delta

Fetch the recordings worth watching for a PostHog experiment, grouped into summary cards. Read-only despite the POST verb — it takes no request body and reports no effect sizes. Returns a structured card payload whose field set the source documentation does not enumerate. Required: experiment_id, project_id, id.

create_a_post_hog_experiment_ship_variant

Ship a PostHog experiment variant: updates the linked feature flag to give the selected variant 100% of the distribution and ends a running experiment. Returns the experiment: id, name, feature_flag_key, status, end_date. Returns 400 for draft experiments, unknown variant_key, or missing feature…. Required: experiment_id, project_id,…

list_all_post_hog_experiment_timeseries_results

Fetch timeseries results for one metric of a PostHog experiment. The upstream spec documents no response body for this endpoint, so its fields are not enumerated. Required: fingerprint, experiment_id, metric_uuid, project_id, id.

create_a_post_hog_experiment_unarchive

Unarchive an archived PostHog experiment, restoring it to the default list view. Returns the experiment record including id, name, status, archived, start_date, end_date, and created_at. Required: project_id, experiment_id, id. Returns 400 if the experiment is not currently archived.

create_a_post_hog_experiment_unfreeze_exposure

Reopen enrollment on an exposure-frozen PostHog experiment: removes the snapshot-cohort condition and freeze markers so new users can enroll again while enrolled users keep their variants, returning the experiment with its status back to 'running'. Fails with 400 if the experiment is not running or its exposure…. Required: experiment_id,…

create_a_post_hog_experiments_bulk_update_tag

Bulk update tags on multiple PostHog experiments in a project, adding, removing, or replacing tags per the chosen action. Returns: updated, skipped. Required: project_id, ids, action, tags.

create_a_post_hog_experiments_calculate_running_time

Estimate the recommended sample size and running time for a PostHog experiment. Returns: baseline_value, variance, recommended_sample_size, recommended_running_time_days. Required: project_id, metric_type, minimum_detectable_effect. Pure statistical calculation — reads and writes no experiment data.

create_a_post_hog_experiments_create_from_prompt

Create a PostHog experiment comparing multiple versions of an LLM prompt against metric templates (cost, latency, eval_pass_rate). Returns the created draft experiment with id, name, status, feature_flag_key, and metrics. Required: project_id, prompt_name, versions, templates.

list_all_post_hog_experiments_matching_ids

Get the IDs of all PostHog experiments matching the current list filters in a project. Returns: ids, total. Required: project_id. Accepts the same filters as the experiments list endpoint.

list_all_post_hog_experiments_prompt_templates

List PostHog LLM metric templates that can be passed to create_from_prompt. Returns: key, label, description. Required: project_id.

create_a_post_hog_experiments_session_context

Resolve experiment context for a batch of PostHog session recordings in one request. Returns: results. Required: project_id, session_ids. Sessions with missing recording metadata, inaccessible recordings, or beyond the batch's recording-day budget are omitted from the response.

get_single_post_hog_experiments_session_context_by_id

Resolve which experiments (and variants) a PostHog session recording saw, derived from the session's $feature_flag_called events and stamped $feature/ event properties — this flag evaluation may differ from an experiment's exposure criteria. Returns: session_id, results, PersonalAPIKeyAuth. Required: id, session_id.

create_a_post_hog_experiments_setup_context

Fetch the context that decides how to configure a new experiment in a PostHog project. Returns: team_defaults, sdk_profile, target_surface, candidate_metric, previous_experiments, shared_metrics, PersonalAPIKeyAuth. Required: project_id. POST is read-only — the body describes a planned experiment, no resource is created.

list_all_post_hog_experiments_stats

Retrieve experiment stats for a PostHog project. Returns an empty 200 response on success. Required: project_id.

create_a_post_hog_external_data_destination_add_source

Attach warehouse sources to an external data destination in PostHog. Returns: attached, skipped, tables_resyncing, resync_failures. Required: external_data_destination_id, project_id, source_ids.

create_a_post_hog_external_data_destination_test_connection

Test the credentials and target of an existing PostHog external data destination and return the result of each test step. Returns: steps. Required: external_data_destination_id, project_id.

get_external_data_destinations_connect_link_by_id

Get a secure browser connect link for a PostHog external data destination so the user can enter credentials without secrets passing through the agent. Returns: destination_type, integration_kind, connect_url, instructions. Required: id, destination_type.

post_hog_external_data_schema_delete_datas_bulk_delete

Delete the data associated with an external data schema in PostHog. Returns an empty 204 response on success. Required: external_data_schema_id, project_id.

post_hog_external_data_schema_destinations_bulk_update

Replace the destination override for an external data schema table in PostHog. Returns: destination_ids, inherits_from_source, effective_destination_ids. Required: project_id, external_data_schema_id. Send destination_ids as null to clear the override so the table follows its source again.

list_all_post_hog_external_data_schema_destinations

Get the destination override for an external data schema table in PostHog. Returns: destination_ids, inherits_from_source, effective_destination_ids. Required: external_data_schema_id, project_id.

create_a_post_hog_external_data_schema_incremental_field

Create incremental fields for an external data schema in PostHog. Returns an empty response on success. Required: external_data_schema_id, project_id.

list_all_post_hog_external_data_schema_logs

List execution logs for an external data schema in PostHog, filterable by time range, log level, execution instance, or message search. Returns a paginated envelope with results (log entries), next, and previous. Defaults to the last 7 days; max 500 entries per page. Required: external_data_schema_id, project_id.

create_a_post_hog_external_data_schema_reload

Trigger a sync for a PostHog external data schema using its configured sync method. Most syncs add or merge new rows into the existing warehouse table; use resync instead to force a full rebuild from the source. Returns: status, PersonalAPIKeyAuth. Required: external_data_schema_id, project_id.

create_a_post_hog_external_data_schema_resync

Request a full resync of an external data schema in PostHog. For backfillable sources this drops the warehouse table and re-imports every row from the source, deleting existing data; webhook-only schemas keep their table and resume ingestion. Returns: status, PersonalAPIKeyAuth. To sync without a…. Required: external_data_schema_id, project_id, id.

post_hog_external_data_source_bulk_update_schemas_bulk_update

Bulk update the table schemas of an external data source in PostHog. Returns the updated source object with id, name, label, table, status, and sync settings. Required: project_id, external_data_source_id, schemas.

get_single_post_hog_external_data_source_cdc_status_by_id

Get live CDC health for an external data source in PostHog. Returns: enabled, management_mode, slot_name, publication_name, lag_warning_threshold_mb, lag_critical_threshold_mb, schedule_paused, slot_exists, publication_exists, lag_bytes, published_tables. Required: project_id, id. Responds 400 when the source database is unreachable.

create_external_data_source_check_cdc_prerequisites_for_source

Validate CDC prerequisites for an existing PostHog external data source using its stored credentials. Returns an empty 200 response on success. Required: external_data_source_id, project_id, client_secret, account_id.

create_a_post_hog_external_data_source_create_webhook

Create a webhook for an external data source in PostHog. Returns: success, webhook_url, error, pending_inputs. Required: external_data_source_id, project_id, client_secret, account_id.

create_a_post_hog_external_data_source_delete_webhook

Delete the webhook configured for an external data source in PostHog. Returns: success, external_deleted, error. Required: external_data_source_id, project_id, client_secret, account_id.

post_hog_external_data_source_destinations_bulk_update

Replace the destinations that every table on this PostHog external data source syncs to by sending a destination_ids array. Tables with their own destination override ignore this set until it is cleared. Returns: destination_ids. Required: project_id, external_data_source_id.

list_all_post_hog_external_data_source_destinations

List the destinations that every table on this PostHog external data source syncs to. Tables with their own destination override ignore this set until it is cleared. Returns: destination_ids. Required: external_data_source_id, project_id.

create_a_post_hog_external_data_source_disable_cdc

Disable change data capture (CDC) on a PostHog external data source, cancelling any running CDC extraction workflow and removing its schedule so a new sync strategy must be chosen to resume. Returns an empty 200 response on success. Required: external_data_source_id, project_id, client_secret, account_id.

create_a_post_hog_external_data_source_enable_cdc

Enable change data capture (CDC) on an existing external data source in PostHog, provisioning engine-side CDC resources and ensuring the extraction schedule exists. Returns: success, schedules_ready. Required: external_data_source_id, project_id, client_secret, account_id.

list_all_post_hog_external_data_source_jobs

List sync jobs for an external data source in PostHog. Returns job records with id, created_at, and updated_at. Required: external_data_source_id, project_id.

create_a_post_hog_external_data_source_refresh_schema

Refresh the schema/table list for a PostHog external data source, fetching the current tables from the source and creating any new ExternalDataSchema rows without syncing data. Returns: status, PersonalAPIKeyAuth. Required: external_data_source_id, project_id, client_secret, account_id.

create_a_post_hog_external_data_source_reload

Trigger a reload (data sync) for an external data source in PostHog. Returns an empty 200 response with no body on success. Required: external_data_source_id, project_id, id, client_secret, account_id.

create_a_post_hog_external_data_source_repair_cdc

Repair CDC on a PostHog external data source whose replication resources were lost: recreates the slot/publication and resets CDC schemas to snapshot mode for a full re-sync. Returns: success, schemas_reset, PersonalAPIKeyAuth. Only proceeds on detected breakage; concurrent repairs are rejected. Required: external_data_source_id, project_id.

create_a_post_hog_external_data_source_resume_cdc

Resume a CDC external data source in PostHog paused by a non-retryable failure (e.g. bad credentials); re-probes the source and unpauses streaming without re-snapshotting. Returns: success, status. Refused if the slot/publication are gone — use Repair CDC instead. Required: external_data_source_id, project_id.

external_data_source_revenue_analytics_configs_bulk_update

Update the revenue analytics configuration for an external data source in PostHog with a partial JSON payload. Returns an empty 200 response on success (the operation documents no response body). Required: project_id, external_data_source_id.

create_a_post_hog_external_data_source_update_cdc_setting

Update CDC tuning settings (cdc_auto_drop_slot, cdc_lag_warning_threshold_mb, cdc_lag_critical_threshold_mb) on a PostHog external data source without disabling CDC. Returns an empty 204 response on success. Engine-specific identifiers (e.g. slot name) are immutable. Required: external_data_source_id, project_id, client_secret, account_id.

create_a_post_hog_external_data_source_update_webhook_input

Update the webhook inputs for an external data source in PostHog. Returns: success. Required: external_data_source_id, project_id, client_secret, account_id.

get_single_post_hog_external_data_source_webhook_info_by_id

Get webhook info for an external data source in PostHog. Returns: supports_webhooks, exists, auto_creation_blocked_reason, hog_function, webhook_url, schema_mapping, inputs, external_status, missing_events, missing_inputs, PersonalAPIKeyAuth. Required: project_id, id.

create_a_post_hog_external_data_sources_check_cdc_prerequisite

Validate CDC prerequisites against a live Postgres connection in PostHog before creating an external data source — the same checks the source wizard and self-managed setup popup surface. Returns the check outcome including status. Required: project_id.

get_single_post_hog_external_data_sources_connect_link_by_id

Generate a secure browser link for connecting a PostHog data warehouse source; the user authenticates in their browser so secrets never pass through the agent. Returns: source_type, auth_method, connect_url, instructions. Stripe, Postgres, Hubspot). Required: id, source_type.

list_all_post_hog_external_data_sources_connections

List external data source connection options available in a PostHog project. Returns: id, schema_name, prefix, engine, source_type, access_method, supports_hogql, is_builtin_managed_warehouse, description. Required: project_id.

create_a_post_hog_external_data_sources_credential_account

List the PostHog IntegrationAccounts that a data source's typed-in credentials can reach. Returns: accounts, PersonalAPIKeyAuth. Required: project_id, source_type, credentials. Sent as POST so credentials stay out of the URL and logs.

create_a_post_hog_external_data_sources_database_schema

Create a database schema for an external data source in PostHog as part of the lower-level source setup flow. Returns no response body on success. The request body follows PostHog's DatabaseSchemaRequest schema; its fields are not enumerated in the docs. Required: project_id, source_type.

list_all_external_data_sources_direct_connection_options

List the source types that can be added as a direct data connection in PostHog, driven by the direct-SQL capability surface so options stay in sync with supported engines. Returns: source_type, label, icon_path. Required: project_id.

create_a_post_hog_external_data_sources_draft_custom_manifest

Draft a Custom REST source manifest from API documentation using an LLM in PostHog; nothing is created and the manifest is returned for review before the source is built. Returns: draft_status, manifest_json, resource_names, attempts, error. Required: project_id.

list_all_post_hog_external_data_sources_exists

Check whether any external data sources exist for a PostHog project. Returns: exists, PersonalAPIKeyAuth. Required: project_id.

list_all_post_hog_external_data_sources_oauth_accounts

List the accounts and properties a connected OAuth integration exposes for PostHog external data sources. Returns: accounts, PersonalAPIKeyAuth. Required: project_id, integration_id, source_type.

create_a_post_hog_external_data_sources_preview_resource

Preview a bounded sample of rows for one resource of a Custom REST source in PostHog before creating the source, letting you verify data_selector, primary_key, and cursor_path against live data. Returns: rows, row_count, columns, error, PersonalAPIKeyAuth. Required: project_id, source_type, resource_name. Only source_type 'Custom' is supported.

create_a_post_hog_external_data_sources_setup

Create a PostHog external data warehouse source in one call: validates credentials, discovers and enables tables with sensible sync defaults, and auto-registers a webhook for webhook-capable sources. Returns: id, webhook, PersonalAPIKeyAuth. Required: project_id, source_type. For fine-grained table/sync control, use the database_schema + create…

create_a_post_hog_external_data_sources_source_prefix

Create a source table prefix for external data sources in PostHog. Returns an empty 204 response on success. Required: project_id, client_secret, account_id.

create_a_post_hog_external_data_sources_store_credential

Validate and store data warehouse source credentials in PostHog without creating the source. Returns: credential_id, source_type, created_at, expires_at, PersonalAPIKeyAuth. Requires project_id, source_type, and payload. The credential is single-use and expires after 24 hours if not consumed. Required: project_id, source_type, payload.

list_all_post_hog_external_data_sources_stored_credentials

List PostHog external data source credentials stored via the source connect page that haven't been consumed yet. Returns metadata only — never the secrets: credential_id, source_type, created_at, expires_at. Required: project_id. Newest first; scoped to the creator and removed once consumed or expired.

get_single_post_hog_external_data_sources_wizard_by_id

Get the external data source wizard configuration for a PostHog project. Returns a map keyed by source type name (e.g. Postgres, Stripe) where each entry holds that source type's wizard configuration. Required: id. The unfiltered response describes every supported source and is very large — filter by source_type (e.g. 'Postgres,Stripe') unless…

create_a_post_hog_external_references_link_issue

Link a PostHog error tracking error to an issue that already exists in the connected provider. Returns: id, integration, external_url, external_id, title, PersonalAPIKeyAuth. Required: project_id, integration_id, issue, external_context.

list_all_post_hog_external_references_search_issues

Search a connected provider for existing issues to link an error to in PostHog. Returns: issues, PersonalAPIKeyAuth. Required: integration_id, project_id. Repository is required for GitHub, ignored by other providers.

list_all_post_hog_feature_flag_activities

List the activity log entries recorded for a PostHog feature flag. Returns: results, next, previous, total_count, PersonalAPIKeyAuth. Required: flag_id, project_id, id.

create_a_post_hog_feature_flag_create_static_cohort_for_flag

Create a static cohort for a feature flag in PostHog. Returns the creation result with its status. Required: flag_id, project_id.

list_all_post_hog_feature_flag_dependent_flags

List active PostHog feature flags that depend on a given flag. Returns: id, key, name. Required: flag_id, project_id.

get_single_post_hog_feature_flag_remote_config_by_id

Get the remote configuration for a specific feature flag in PostHog. Returns an empty 204 response on success. Required: id, project_id.

create_a_post_hog_feature_flag_roll_out_to_everyone

Roll out a PostHog feature flag to every user by adding a 100% release condition with no property filters. Returns: id, name, key, filters, deleted, active, version, status, and 24 more. Multivariate flags also need variant_key; flags gated on early access are refused and a stale version returns 409. Required: flag_id, project_id, id, version.

create_a_post_hog_feature_flag_set_release_condition_rollout

Set what percentage of one release condition's audience a PostHog feature flag is served to. Returns the updated flag: id, key, name, filters, version, updated_at. Requires project_id, flag_id, condition_index, rollout_percentage, and version; a stale version is refused with 409. Required: flag_id, project_id, id, condition_index,…

get_single_post_hog_feature_flag_status_by_id

Get the current status of a feature flag in PostHog. Returns: status, reason, reason_states_rollout, rollout. Required: id, project_id.

create_a_post_hog_feature_flag_test_evaluation

Test how a PostHog feature flag evaluates for a specific user, optionally at a historical timestamp. Returns: flag_key, result, reason, reason_description, condition_index, payload, person_properties, evaluation_distinct_id, conditions, conditions_unavailable_reason, PersonalAPIKeyAuth. Required: flag_id, project_id, id.

create_a_post_hog_feature_flag_unarchive

Unarchive a PostHog feature flag, restoring it to the default flag list with archived set to false; the flag stays disabled until enabled separately. Returns: id, name, key, filters, active, and 27 more. Refused when a release condition targets a deleted cohort; an already-unarchived flag is returned unchanged. Required: project_id, flag_id.

list_all_post_hog_feature_flag_versions

Get a specific historical version of a PostHog feature flag, reconstructed by version number. Returns: id, key, name, filters, active, deleted, version, ensure_experience_continuity, is_historical, version_timestamp, and 10 more. Not available for flags with encrypted payloads. Required: flag_id, project_id, version_number, id.

list_all_post_hog_feature_flags_activities

List activity log entries for feature flags in a PostHog project. Returns a paginated response with results, next, previous, and total_count. Required: project_id.

create_a_post_hog_feature_flags_bulk_delete

Bulk delete feature flags in a PostHog project by filter criteria or explicit ids. Returns: deleted, errors. Required: project_id.

create_a_post_hog_feature_flags_bulk_key

Get PostHog feature flag keys in bulk by feature flag IDs. Returns: keys, warning, PersonalAPIKeyAuth. Required: project_id.

create_a_post_hog_feature_flags_bulk_update_tag

Bulk update tags on multiple PostHog feature flags within a project. Returns: updated, skipped. Requires project_id, ids, action (add, remove, or set), and tags. Required: project_id, ids, action, tags.

list_all_post_hog_feature_flags_evaluation_reasons

Get feature flag evaluation reasons for a user in a PostHog project, scoped to the given distinct_id. Requires project_id and distinct_id. Returns an empty 204 response on success. Required: distinct_id, project_id.

list_all_post_hog_feature_flags_matching_ids

Get the IDs of all PostHog feature flags matching the current filters, using the same filtering logic as the feature flag list endpoint; only flags the user has permission to edit are matched. Returns an empty response body on success (200, no body per the upstream spec). Required: project_id.

list_all_post_hog_feature_flags_my_flags

List evaluated feature flags in a PostHog project, one item per flag with the flag object and its evaluated value. Returns: feature_flag, value, PersonalAPIKeyAuth. Required: project_id. Omitting flag_keys returns every flag with its evaluated value, which can be a very large payload on projects with many flags.

create_a_post_hog_feature_flags_user_blast_radius

Calculate the user blast radius for a feature flag condition in a PostHog project — how many users match the flag. Returns: affected, total, PersonalAPIKeyAuth. Required: project_id, condition.

create_a_post_hog_feature_request_add_account

Add an account to a feature request in PostHog, linking the account to the request with optional supporting evidence. Returns the updated feature request including id, title, request_status, account_links, evidence_count, version, and can_update. Required: project_id, feature_request_id, account_id, expected_version.

create_a_post_hog_feature_request_add_evidence

Add evidence to a feature request in PostHog. Returns the updated feature request including id, title, description, request_status, evidence_count, and product_areas. Required: project_id, feature_request_id, evidence_source, expected_version, account_link_id.

list_all_post_hog_feature_request_histories

List the change history of a PostHog feature request. Returns: id, changes, is_initial, change_source, actor_id, actor_name, changed_at. Required: project_id, feature_request_id.

create_a_post_hog_feature_request_link_github

Link a GitHub issue to a feature request in PostHog. Returns the updated feature request including id, title, request_status, and github_link. Required: project_id, feature_request_id, integration_id, issue_url, expected_version.

create_a_post_hog_feature_request_pause_github

Pause GitHub integration for a PostHog feature request. Returns the updated feature request including id, title, request_status, github_link, and version. Required: project_id, feature_request_id, expected_version.

create_a_post_hog_feature_request_remove_evidence

Remove an evidence item from a PostHog feature request. Returns the updated feature request including id, title, description, request_status, version, and evidence_count. Requires project_id, feature_request_id, evidence_id, and expected_version. Required: feature_request_id, project_id, expected_version, evidence_id.

create_a_post_hog_feature_request_resume_github

Resume GitHub integration for a specific feature request in PostHog. Returns the feature request object including id, title, request_status, request_priority, github_link, and version. Required: project_id, feature_request_id, expected_version.

list_all_post_hog_feature_request_status_histories

List status history entries for a PostHog feature request. Returns: id, previous_status, request_status, change_source, actor_id, actor_name, changed_at. Required: project_id, feature_request_id.

create_a_post_hog_feature_request_unlink_github

Unlink a GitHub issue from a PostHog feature request. Returns the updated feature request including id, title, request_status, github_link, and version. Required: project_id, feature_request_id, expected_version.

create_a_post_hog_feature_request_update_evidence

Update an evidence item attached to a PostHog feature request. Returns the updated feature request including id, title, request_status, evidence_count, and version. Required: project_id, feature_request_id, evidence_id, evidence_source, expected_version.

get_single_post_hog_file_download_batch_export_download_by_id

Download the exported file (or one of its parts) from a PostHog file download batch export run. Returns the raw file content as a binary stream, not JSON fields; without a part specified, the single file (or the first by key) is returned. Required: id, project_id.

list_all_post_hog_file_download_batch_export_logs

List log entries for a PostHog file download batch export run, filterable by time window, log level, execution instance, and message text. Returns an empty response body on success. Defaults to the last 7 days of entries. Required: batch_export_id, project_id, id.

create_a_post_hog_file_download_batch_exports_count_row

Count how many rows a PostHog HogQL batch export would produce if started now. Returns: count. Required: project_id, model, hogql_query. May time out for very complex queries or very large exports.

create_a_post_hog_file_system_count_by_path

Count all files in a folder in a PostHog project by supplying the folder's path in the request body. Returns: status, PersonalAPIKeyAuth. Required: project_id, path.

create_a_post_hog_file_system_count

Count all files in a folder of a PostHog project's file system. Returns an empty 200 response on success. Note: the upstream spec marks a JSON request body as required but documents no fields for it. Required: file_system_id, project_id, path.

list_all_post_hog_file_system_frequents

List frequently viewed files in a PostHog project. Returns: id, path, depth, type, ref, href, meta, shortcut, created_at, created_by, last_viewed_at, user_access_level, PersonalAPIKeyAuth. Required: project_id. Max 20 items per call.

create_a_post_hog_file_system_home_folder

Create or fetch the current user's home folder in PostHog's file system. Returns the home folder object with its id, href, shortcut_position, and related shortcut counts. Required: project_id.

create_a_post_hog_file_system_link

Link a file system entry in a PostHog project, addressed by its UUID. Returns: status, PersonalAPIKeyAuth. Required: file_system_id, project_id, path.

create_a_post_hog_file_system_log_view

Log a view of a file system entry in a PostHog project. Returns an empty response on success. Required: project_id, path.

get_single_post_hog_file_system_log_view_by_id

Get a file system log view in a PostHog project. Returns an empty response on success. Required: id.

create_a_post_hog_file_system_move

Move a PostHog file-system entry identified by file_system_id to a new path. Returns an empty 204-style response with no body on success. Required: file_system_id, project_id, id, path.

create_a_post_hog_file_system_shortcut_bulk_update

Bulk create and delete the current user's file system shortcuts in PostHog in a single transaction. Returns the full shortcut list in display order with id, path, type, href, order, and created_at. Required: project_id. Any unknown id in remove_ids rejects the whole request.

create_a_post_hog_file_system_shortcut_reorder

Reorder the current user's file system shortcuts in PostHog. Returns an array of file system shortcut objects in the new top-to-bottom display order. Required: project_id, ordered_ids. Unknown IDs in ordered_ids are rejected.

create_a_post_hog_file_system_undo_delete

Undo a file-system deletion in the given PostHog project, restoring the file or folder that was previously soft-deleted. Returns an empty 204-style response with no body on success. Required: project_id, path.

get_single_post_hog_file_system_unfiled_by_id

Get the unfiled file system items for a PostHog project — entries not filed in any folder. Returns the paginated list envelope with next, previous, and results. Required: id.

get_single_post_hog_fingerprints_resolve_by_id

Resolve an error tracking fingerprint to the issue it currently belongs to in a PostHog project. Returns: id, fingerprint, issue_id, created_at. Required: id, fingerprint.

list_all_post_hog_flag_value_values

Get the possible values for a PostHog feature flag, returned as objects with a name field under results. Required: project_id, key (the feature flag ID).

create_a_post_hog_gap_suggestion_accept

Accept a knowledge gap suggestion in PostHog for a topic the support AI couldn't answer from the knowledge base. Returns: id, ticket_id, topic, normalized_topic, ticket_type, outcome, status, resolved_source_id, created_at. Required: gap_suggestion_id, project_id.

create_a_post_hog_gap_suggestion_dismise

Dismiss a knowledge gap suggestion in PostHog, marking a topic the support AI couldn't answer as not worth addressing. Returns the updated KnowledgeGapSuggestion. Required: gap_suggestion_id, project_id.

create_a_post_hog_gap_suggestions_accept_topic

Accept all pending business knowledge gap suggestions for a normalized topic cluster in PostHog. Returns the action result including normalized_topic and the count of suggestions updated. Required: project_id, normalized_topic.

create_a_post_hog_gap_suggestions_dismiss_topic

Dismiss all pending business knowledge gap suggestions for a normalized topic cluster in PostHog. Returns: normalized_topic, updated. Required: project_id, normalized_topic.

get_single_post_hog_git_provider_file_links_resolve_github_by_id

Resolve a GitHub file link for a PostHog error tracking frame by matching a code snippet against repository files. Returns: found, url, error. Required: id, code_sample, file_name, owner, repository.

get_single_post_hog_git_provider_file_links_resolve_gitlab_by_id

Resolve a GitLab source file for a PostHog error-tracking stack frame by searching repository files for a code sample. Returns: found, url, error. Required: id, code_sample, file_name, owner, repository.

post_hog_grouping_rules_reorders_bulk_update

Reorder the error tracking grouping rules of a PostHog project. Returns an empty 204 response on success. Required: project_id.

get_single_post_hog_groups_activity_by_id

Get the activity log for a group in a PostHog project. Returns an empty 204 response on success. Required: id, group_type_index.

get_single_post_hog_groups_find_by_id

Find a PostHog group in a project by its key and type index. Returns: group_type_index, group_key, group_properties, created_at, notebook. Required: id, group_key, group_type_index.

list_all_post_hog_groups_property_values

List the distinct values recorded for one group property in a PostHog project, under results. Required: project_id, group_type_index, key (the group property name).

list_all_post_hog_groups_relateds

List groups related to a given user in PostHog. Returns a list of related actors with id, type, properties, created_at, and matched_recordings. Required: project_id, id.

create_a_post_hog_groups_type_metric

Create a group usage metric for a group type in PostHog. Returns: id, name, format, interval, display, filters, math, math_property, PersonalAPIKeyAuth. Required: project_id, group_type_index, name, filters.

delete_a_post_hog_groups_type_metric_by_id

Delete a PostHog group usage metric by id for a specific group type. Returns an empty 204 response on success. Required: id, project_id, group_type_index.

get_single_post_hog_groups_type_metric_by_id

Get a single group usage metric by id in PostHog. Returns: id, name, format, interval, display, filters, math, math_property, PersonalAPIKeyAuth. Required: id, project_id, group_type_index.

list_all_post_hog_groups_type_metrics

List group usage metrics for a group type in PostHog. Returns: id, name, format, interval, display, filters, math, math_property, PersonalAPIKeyAuth. Required: project_id, group_type_index.

post_hog_groups_type_metrics_partial_update

Partially update a group usage metric in PostHog. Returns: id, name, format, interval, display, filters, math, math_property, status. Required: metric_id, project_id, group_type_index.

update_a_post_hog_groups_type_metric_by_id

Update a group usage metric in PostHog by id. Returns the updated metric including id, name, format, interval, display, filters, math, and math_property. Required: id, project_id, group_type_index, name, filters.

post_hog_groups_types_create_detail_dashboards_bulk_update

Create a detail dashboard for a PostHog group type in a project. Returns: group_type, group_type_index, name_singular, name_plural, detail_dashboard, default_columns, created_at. Required: project_id, group_type_index.

post_hog_groups_types_set_default_columns_bulk_update

Set the default columns for a PostHog group type by updating its group type configuration. Returns: group_type, group_type_index, name_singular, name_plural, detail_dashboard, default_columns, created_at. Required: project_id, group_type_index, default_columns.

post_hog_groups_types_update_metadatas_bulk_update

Update metadata for one or more group types in a PostHog project. Returns the updated metadata including group_type, group_type_index, name_singular, name_plural, detail_dashboard, default_columns, and created_at. Required: project_id.

create_a_post_hog_groups_update_property

Update a property on a PostHog group. Returns the updated group object including group_type_index, group_key, group_properties, and created_at. Requires project_id, group_key, group_type_index, and a key/value payload. Required: group_key, group_type_index, project_id, key, value.

create_a_post_hog_health_issue_resolve

Resolve a health issue in a PostHog project. Returns the resolved health issue including its id, kind, severity, status, resolved_at, and snoozed_until. Required: health_issue_id, project_id.

create_a_post_hog_health_issues_refresh

Schedule a refresh of the health issues for a PostHog project. Returns: status, PersonalAPIKeyAuth. Required: project_id. Jobs run asynchronously; a refresh triggered again shortly after a recent one is rejected with a try-again-later error.

get_single_post_hog_health_issues_summary_by_id

Get a summary of active health issues for a PostHog project: aggregated counts of active, non-dismissed issues split into unsnoozed and snoozed groups, broken down by severity and kind. Returns: unsnoozed, snoozed. Required: id.

list_all_post_hog_heatmap_capture_pages

List heatmap capture pages in a PostHog project. Returns a paginated array of page records, each with an id plus schema-specific attributes defined by the HeatmapCapturePages schema. Required: project_id.

post_hog_heatmap_capture_settings_bulk_update

Update heatmap capture settings for a PostHog project, such as capture_mode and url_allowlist. Returns: capture_mode, url_allowlist, enforcement_enabled, can_capture_all_urls, capture_url_limit. Required: project_id.

list_all_post_hog_heatmap_capture_settings

Get the heatmap capture settings for a PostHog project. Returns the project's HeatmapCaptureSettings object used by web analytics heatmap capture. Required: project_id.

get_single_post_hog_heatmap_screenshot_content_by_id

Fetch the rendered heatmap screenshot (JPEG bytes) for a saved heatmap in a PostHog project. Returns the JPEG image, or heatmap metadata (id, name, status, has_content) with a 202 while the screenshot is still being generated. Required: project_id, id. Width defaults to 1024; the closest available render is used if no exact match exists.

post_hog_heatmap_screenshot_settings_bulk_update

Update heatmap screenshot settings for a PostHog project. Returns: allowed_hostnames, cookie_delivery_enabled, has_secret. Required: project_id.

list_all_post_hog_heatmap_screenshot_settings

Get the heatmap screenshot settings for a PostHog project. Returns the project's settings record with its id and settings attributes (fields defined upstream). Required: project_id.

list_all_post_hog_heatmaps_events

List the individual session interactions behind one or more PostHog heatmap coordinates, so you can jump to the session recordings that produced a hotspot. Returns: session_id, distinct_id, timestamp, pointer_relative_x, current_url, type. Required: points, project_id.

list_all_post_hog_hog_flow_assets

List the message assets (captured emails) sent by a PostHog Hog flow, filtered by time range, email step, recipient, or workflow run. Returns asset objects with id, subject, recipient, sent_at, and invocation_id. Max 500 assets per page, default 50; results older than the 30-day retention window are excluded…. Required: hog_flow_id, project_id.

post_hog_hog_flow_batch_jobs_cancel

Cancel a hog flow batch job in PostHog: stops further audience enrollment and flags in-flight runs for termination by the workflow workers; steps that already executed are not undone and already-finished batch runs are left untouched. Returns: status, marked, remaining, done. Required: batch_job_id, hog_flow_id, project_id.

create_a_post_hog_hog_flow_batch_job

Create a batch job for a PostHog hog flow. Returns: id, status, hog_flow, filters, variables, created_at, created_by, updated_at, PersonalAPIKeyAuth. Required: hog_flow_id, project_id, id, hog_flow.

list_all_post_hog_hog_flow_batch_jobs

List batch jobs for a PostHog hog flow. Returns: id, status, hog_flow, filters, variables, created_at, created_by, updated_at, PersonalAPIKeyAuth. Required: hog_flow_id, project_id, id.

create_a_post_hog_hog_flow_convert_to_broadcast

Convert a PostHog workflow (hog flow) to a broadcast: the flow keeps its id, runs and metrics, leaves the workflows list and opens in the broadcast editor. This cannot be undone. Returns: id, origin_product, status, PersonalAPIKeyAuth. Required: hog_flow_id, project_id.

create_a_post_hog_hog_flow_discard_draft

Discard the draft of a HogFlow (workflow) in PostHog, leaving the live version unchanged. Returns the HogFlow record for the discarded draft, including its id (UUID). Required: hog_flow_id, project_id, id.

post_hog_hog_flow_graphs_bulk_update

Apply a bulk partial update to a PostHog Hog flow's graph. Returns the updated flow object with id, name, version, status, edges, actions, and updated_at. Required: project_id, hog_flow_id.

get_single_post_hog_hog_flow_in_flight_by_id

Retrieve the currently in-flight HogFlow executions for a Hog flow in PostHog, including totals and a breakdown by action. Returns: count, by_action, position_unknown, PersonalAPIKeyAuth. Required: id and project_id.

get_single_post_hog_hog_flow_invocation_result_by_id

Get a single hog flow invocation result for a PostHog hog flow. Returns: invocation_globals, invocation_id, status, error_kind, error_message, distinct_id, person_id, scheduled_at, started_at, finished_at, duration_ms, attempts, is_retry. Required: id, hog_flow_id, project_id, invocation_id.

list_all_post_hog_hog_flow_invocation_results

List the invocation results of a hog flow (workflow) in PostHog, filterable by time range, status, distinct_id, or error text. Returns each invocation's id, status, distinct_id, and error_message. Defaults to the last 7 days; up to 500 results per page. Required: hog_flow_id, project_id.

get_single_post_hog_hog_flow_invocation_results_count_by_id

Count hog flow invocations in PostHog matching the same filters as the list endpoint, without its 500-row cap. Returns: count, PersonalAPIKeyAuth. Time range defaults to -7d on scheduled time; widen after for older runs. Required: id, project_id.

create_a_post_hog_hog_flow_invocation

Trigger a HogFlow invocation for a PostHog workflow, sending a HogFlowInvocation request body. Returns an empty 200 response on success. Required: hog_flow_id, project_id.

list_all_post_hog_hog_flow_logs

List execution log entries for a Hog flow (workflow) in PostHog. Returns log entry records keyed by id, with the remaining fields defined upstream in the attributes payload. Defaults to the last 7 days of entries; max 500 entries per request (default 50). Required: hog_flow_id, project_id.

list_all_post_hog_hog_flow_metrics

List time-series metrics for a PostHog hog flow, bucketed by hour, day, or week over a time range. Returns metric series entries with name and kind. Defaults to the last 7 days at day granularity. Required: hog_flow_id, project_id.

create_a_post_hog_hog_flow_optimization

Set whether PostHog may suggest changes to a Hog flow. Turning it off stops new suggestions while already-made suggestions are kept for resolution. Returns: enabled, scout_status, sample. Required: hog_flow_id, project_id, enabled.

get_single_post_hog_hog_flow_optimization_by_id

Get the current optimization settings for a Hog flow, showing whether PostHog may suggest changes to the workflow. Returns: enabled, scout_status, sample. Required: project_id, id.

post_hog_hog_flow_proposals_approve

Approve a workflow proposal in a PostHog hog flow so it reaches the flow's draft. Returns: id, title, rationale, content, evidence, step_id, base_version, is_stale, status, source_id, created_at, resolved_at, resolved_by, applied_version, rejection_reason, PersonalAPIKeyAuth. Required: hog_flow_id, project_id, proposal_id, id.

create_a_post_hog_hog_flow_proposal

Create a workflow proposal in a PostHog hog flow for agent-authored changes; staging one changes nothing until a human approves it. Returns: id, title, rationale, content, evidence, step_id, base_version, is_stale, status, source_id, created_at, resolved_at, and 4 more. Required: hog_flow_id, project_id, id, title, rationale, content, base_version.

get_single_post_hog_hog_flow_proposal_by_id

Get a single workflow proposal of a PostHog hog flow by id. Returns: id, title, rationale, content, evidence, step_id, base_version, is_stale, status, source_id, created_at, resolved_at, resolved_by, applied_version, rejection_reason, PersonalAPIKeyAuth. Required: id, hog_flow_id, project_id, proposal_id.

list_all_post_hog_hog_flow_proposals

List workflow proposals of a PostHog hog flow, i.e. agent-authored changes awaiting a human's decision. Returns: id, title, rationale, content, evidence, step_id, base_version, is_stale, status, source_id, created_at, resolved_at, resolved_by, applied_version, rejection_reason, PersonalAPIKeyAuth. Required: hog_flow_id, project_id, id.

post_hog_hog_flow_proposals_reject

Reject a workflow proposal in a PostHog hog flow. Returns: id, title, rationale, content, evidence, step_id, base_version, is_stale, status, source_id, created_at, resolved_at, resolved_by, applied_version, rejection_reason, PersonalAPIKeyAuth. Required: hog_flow_id, project_id, proposal_id, id.

create_a_post_hog_hog_flow_rerun

Rerun past invocations of a PostHog hog flow from their stored payloads. Returns: rerun_job_id, queued_count, skipped_count. Required: hog_flow_id, project_id, filter.

create_a_post_hog_hog_flow_resume_email_sending

Resume email sending for a workflow PostHog paused automatically in a project. Returns the email pause status (`status`). Resuming re-arms the detector rather than exempting the workflow, so one still generating complaints or hard bounces pauses again within minutes. Required: hog_flow_id, project_id, id.

list_all_post_hog_hog_flow_revisions

List the revision history of a PostHog Hog Flow. Returns each revision's version, created_at, and created_by. Required: hog_flow_id, project_id.

post_hog_hog_flow_revisions_restore

Restore a PostHog Hog Flow to a specific prior version. Returns the updated flow object with its id, name, status, actions, and schedules. Required: hog_flow_id, project_id, version.

list_all_post_hog_hog_flow_revisions_hog_flows

Get a specific saved revision (version) of a PostHog hog flow (workflow). Returns the revision record including id, created_at, and updated_at. Required: project_id, hog_flow_id, version.

create_a_post_hog_hog_flow_run

Fire a schedule-triggered PostHog hog flow immediately, outside its regular schedule. Returns: status, invocation_id, PersonalAPIKeyAuth. Restricted to active workflows with a schedule trigger; send an Idempotency-Key header to dedupe retries. Required: hog_flow_id, project_id, id.

create_a_post_hog_hog_flow_schedule

Create a new schedule for a Hog Flow in PostHog. Returns the created schedule with id, rrule, starts_at, status, next_run_at, created_at, and updated_at. Required: hog_flow_id, project_id, rrule, starts_at.

delete_a_post_hog_hog_flow_schedule_by_id

Delete a hog flow schedule in PostHog by id. Returns an empty 204 response on success. Required: id, hog_flow_id, project_id, schedule_id.

list_all_post_hog_hog_flow_schedules

List schedules for a Hog Flow in PostHog. Returns each schedule with id, rrule, starts_at, status, next_run_at, created_at, and updated_at. Required: hog_flow_id, project_id.

update_a_post_hog_hog_flow_schedule_by_id

Partially update a schedule of a Hog Flow in PostHog. Returns the updated schedule with id, rrule, starts_at, status, next_run_at, created_at, and updated_at. Required: id, hog_flow_id, project_id, schedule_id.

create_a_post_hog_hog_flows_apply_utm_default

Apply UTM defaults to Hog flows in a PostHog project. Returns: emails_updated, workflows_updated, active_workflows_updated, emails_turned_on, emails_off, workflows_without_access, workflows_failed. Required: project_id.

list_all_post_hog_hog_flows_broadcast_conversion_candidates

List PostHog Hog Flow workflows that could become broadcasts (one email to a batch audience, with nothing the broadcast editor would drop). Returns: id, name, status. Required: project_id. Only workflows the caller may edit are listed.

create_a_post_hog_hog_flows_bulk_delete

Bulk delete Hog flows in a PostHog project. Returns the affected HogFlow record including its id, name, version, status, and actions. Required: project_id and actions.

create_a_post_hog_hog_flows_bulk_update_tag

Bulk update tags on multiple PostHog hog flows: add to existing tags, remove specific tags, or replace all tags. Returns: updated, skipped. Required: project_id, ids, action, tags.

get_single_post_hog_hog_flows_email_sending_suspension_by_id

Get the email sending suspension status for Hog flows in a PostHog project. Returns: email_sending_suspended, email_sending_suspended_at, email_sending_suspension_reason. Required: id.

get_single_post_hog_hog_flows_reputation_by_id

Get email reputation for PostHog Hog Flow workflows: 30-day bounce/complaint rates plus the AWS SES sending verdict. Returns: aws, reputation, workflows, isps, isp_shared_domains, isp_withheld_domains, email_sending_suspended, email_sending_suspended_at, sending_allowance, and 1 more. Required: id. Workflows capped at the worst 50.

list_all_post_hog_hog_flows_send_calendars

List scheduled sends for the PostHog send calendar. Returns calendar-card entries for active batch and schedule workflows with a non-transactional email step, with id, name, trigger_type, email_to, schedules, and batch_jobs. Required: project_id, start, end. End may be at most 92 days after start.

create_a_post_hog_hog_flows_user_blast_radius

Calculate the user blast radius for a PostHog Hog flow, estimating how many persons the flow's filters would affect. Returns: affected, total, limit, dedupe_key, confirm_token, realtime_cohort, realtime_cohort_with_other_conditions, PersonalAPIKeyAuth. Required: project_id, filters.

create_a_post_hog_hog_function_discard_draft

Discard the pending draft of a Hog function in PostHog, restoring the function to its last published version. Returns the updated Hog function record including id, type, enabled, created_at, and updated_at. Required: hog_function_id, project_id.

create_a_post_hog_hog_function_enable_backfill

Enable backfills for a Hog function in a PostHog project. Returns: status. Required: hog_function_id, project_id.

create_a_post_hog_hog_function_invocation

Invoke a PostHog hog function by creating an invocation run. Returns: status, logs, invocation_id, PersonalAPIKeyAuth. Required: hog_function_id, project_id, id.

list_all_post_hog_hog_function_logs

List log entries for a Hog Function in PostHog. Returns an empty 204 response on success. Only the last 7 days of logs are read by default. Required: hog_function_id, project_id.

list_all_post_hog_hog_function_metrics

Retrieve time-series execution metrics for a PostHog hog function over a configurable window, bucketed by hour, day, or week and optionally grouped by metric name or kind. Returns the AppMetricsResponse time-series payload; its response fields are not enumerated in the API reference. Required: project_id, hog_function_id, id.

create_a_post_hog_hog_function_rerun

Rerun past invocations of a PostHog hog function from their stored payloads. Returns: rerun_job_id, queued_count, skipped_count. Only worker-executed function types can be rerun; disabled or non-rerunnable types are rejected with 400. Required: hog_function_id, project_id, filter.

list_all_post_hog_hog_function_revisions

List the revision history of a PostHog hog function. Returns: version, created_at, created_by. Required: hog_function_id, project_id.

post_hog_hog_function_revisions_restore

Restore a PostHog hog function to a specific revision by version number. Returns the restored function including id, name, hog, version, enabled, and created_at. Required: hog_function_id, project_id, version, id.

list_all_post_hog_hog_function_revisions_hog_functions

Get a specific revision of a PostHog hog function by its version number. Returns the revision snapshot including id, version, and created_at. Required: project_id, hog_function_id, version.

get_single_post_hog_hog_functions_icon_by_id

Get a Hog Function icon in a PostHog project by id. Returns an empty 200 response on success. Required: id.

list_all_post_hog_hog_functions_icons

List Hog Function icons in a PostHog project. Returns an empty 200 response on success. Required: project_id.

list_all_post_hog_hog_functions_masked_secrets

List Hog functions in PostHog that store a secret mask in place of a real credential. Returns: id, name, type, enabled, input_keys, draft_input_keys. Required: project_id. Masked values cannot be restored — affected inputs must be re-entered.

post_hog_hog_functions_rearranges_bulk_update

Update the execution order of multiple Hog functions in a PostHog project. Returns the updated Hog functions with their id, name, enabled state, and execution_order. Required: project_id.

create_a_post_hog_instrumentation_checklist_dismise

Dismiss an AI observability instrumentation checklist check in PostHog, marking it as not applicable to the project. Returns: window_days, checks, PersonalAPIKeyAuth. Required: check, project_id.

create_a_post_hog_instrumentation_checklist_restore

Restore a dismissed AI observability instrumentation check in PostHog, bringing it back into grading. Returns the checklist with window_days and checks. Required: check, project_id.

post_hog_integration_environment_mappings_bulk_update

Bulk update the environment mapping for an organization-level integration in PostHog (e.g. Vercel, AWS Marketplace). Returns an acknowledgement with status "Ok". Required: integration_id, organization_id.

list_all_post_hog_invites_check_acceses

Check PostHog Desktop access in PostHog. This compatibility endpoint serves released PostHog Desktop clients. Returns: has_access, has_loops_access.

create_a_post_hog_invites_delegate

Create an admin-level onboarding delegation invite in PostHog that sends a dedicated delegation email and records the inviting user as having delegated setup. Returns: id, target_email, first_name, emailing_attempt_made, level, is_expired, created_by, created_at, updated_at, message, and 2 more. Required: organization_id, target_email.

create_a_post_hog_invocations_cancel

Cancel in-flight invocations of a PostHog hog flow (workflow), by specific invocation_ids or all at once. Cancellation is asynchronous; already-executed steps are not undone. Returns: marked, remaining, done. Required: hog_flow_id, project_id.

post_hog_issue_cohorts_bulk_update

Update the cohort assigned to an error tracking issue in PostHog. Returns: success. Required: issue_id, project_id, cohortId.

get_single_post_hog_issue_summary_by_id

Get the summary for a PostHog error tracking issue by id. Returns status (ready, generating, or unavailable — poll again while generating) and summary with what_happened, likely_cause, who_is_affected, suggested_next_step, category, model, generated_at, and checked_at. Required: id, project_id.

get_single_post_hog_issues_activity_by_id

Get the activity feed for error tracking issues in a PostHog project. Returns an empty response on success (no response body). Required: id.

list_all_post_hog_issues_exists

Check whether a matching error tracking issue already exists in a PostHog project. This is a lightweight existence check, not a full issue fetch. Returns: exists, PersonalAPIKeyAuth. Required: project_id.

list_all_post_hog_issues_values

List the distinct values of an error tracking issue property in a PostHog project. Returns the issue-values response with results (the distinct values matching the requested key, optionally narrowed by substring) and refreshing. Required: project_id, key.

get_single_post_hog_item_payload_by_id

Retrieve the payload of a specific item within a PostHog offline AI observability experiment. Returns: id, payload_state, payload_expires_at, available, data, PersonalAPIKeyAuth. Required: id, offline_experiment_id, project_id, item_id.

list_all_post_hog_item_results

List scorer results for a single item within a PostHog AI observability offline experiment. Returns: count, next_cursor, results. Max 100 per page. Required: offline_experiment_id, item_id, project_id, id.

create_a_post_hog_layout_patch

Patch a PostHog grid canvas's layout by applying surgical add, move, resize, fill, or remove operations without resending the full layout. Returns: canvas, layout, current_version_id. Required: canvase_id, project_id, operations, expected_current_version_id.

create_a_post_hog_layout_publish

Publish a complete layout document as the grid canvas's new head version in PostHog. The new version goes live immediately. Returns: canvas, layout, current_version_id, PersonalAPIKeyAuth. A stale expected_current_version_id is rejected with a conflict, leaving the canvas untouched. Required: canvase_id, project_id, id, layout.

get_single_post_hog_legal_document_download_by_id

Download a PostHog organization's signed legal document PDF via a short-lived redirect. Returns a 302 redirect to a presigned object-storage URL that expires in ~60 seconds, so re-fetch on each view rather than caching; 404 while the document is still out for signature or its upload has not completed. Required: id, organization_id.

get_single_post_hog_member_github_login_by_id

Get a PostHog organization member's GitHub login by their user UUID. Returns the member's resolved github_login (null when no GitHub identity is linked). Required: id, organization_id, user__uuid.

list_all_post_hog_member_scoped_api_keys

List scoped API keys for a member in a PostHog organization. Returns: id, user, level, joined_at, updated_at, is_2fa_enabled, has_social_auth, last_login, search_match_type, status. Required: organization_id, user__uuid.

get_single_post_hog_members_project_accese_by_id

List every visible member's access to each project in a PostHog organization, including the rule behind it. Returns: results. Required: id.

get_single_post_hog_message_full_email_by_id

Get the full inbound email body in Markdown for a PostHog conversation ticket message. Returns: content. Required: id, project_id, message_id.

create_a_post_hog_metric_refresh_from_insight

Refresh a PostHog data catalog metric from its linked insight by re-snapshotting the insight's current query into the metric definition. Returns the refreshed metric object including its id, name, status, and definition. Required: project_id, name.

create_a_post_hog_metric_run

Run a PostHog data catalog metric, executing its definition and returning the normalized result envelope. Returns: status, is_drifted, unit, kind, results, columns, compiled_query, query_status, has_more, row_limit, posthog_url, instructions. Required: project_id, name. Fails if the metric has no runnable definition.

create_a_post_hog_metrics_bulk_approve

Bulk approve PostHog data catalog metrics as canonical in a single request; unknown, already-approved, and drifted metrics are skipped. Returns: approved, skipped. Required: project_id, names.

create_a_post_hog_metrics_bulk_delete

Bulk delete PostHog data catalog metrics by name, freeing their names for reuse; unknown metrics are skipped. Returns: deleted, skipped. Required: project_id, names.

list_all_post_hog_metrics_globals

List global PostHog Hog flow metrics aggregated per workflow over a time window. Returns: workflow_id, succeeded, failed. Required: project_id.

get_single_post_hog_metrics_recalculation_latest_by_id

Get the latest metrics recalculation for an experiment in a PostHog project. Returns: id, experiment_id, status, total_metrics, completed_metrics, failed_metrics, metric_errors, created_at, started_at, completed_at, query_to, metric_retries, results, rows_read, estimated_rows_total, active_run, result_source, and 1 more. Required: id, project_id.

list_all_post_hog_metrics_totals

Get aggregate metric totals for a Hog flow in PostHog. Returns: totals, PersonalAPIKeyAuth. Required: project_id, hog_flow_id.

list_all_post_hog_metrics_totals_metrics

Get aggregate totals for the metrics of a PostHog project's single event filter (the team has one event filter config; this endpoint returns its aggregate totals rather than the time series). Returns: totals, status. Required: project_id.

get_single_post_hog_metrics_version_by_id

Get one published version's metric series for a Hog Flow in PostHog, with a configurable time range, interval bucket, and name/kind breakdown. Returns the metric series as JSON; the API reference does not enumerate its response fields. Version metrics are keyed on the workflow — compare versions with each other, not with the unversioned read.…

get_single_post_hog_model_by_id

Get a champion/challenger autoresearch model by id in a PostHog pipeline. Models are the persisted artifacts of training runs, each holding a portable recipe (feature SQL, transforms, model class, params) that daily inference compiles to score users. Returns: id, pipeline, role, recipe_hash, and 17 more. Required: id, pipeline_id, project_id.

list_all_post_hog_models

List champion/challenger models for a PostHog autoresearch pipeline — the persisted artifacts of training runs, each holding a portable recipe (feature SQL, transforms, model class, params) that daily inference compiles to score users. Returns: id, pipeline, role, recipe_hash, model_recipe, and 16 more. Required: project_id, pipeline_id.

create_a_post_hog_offline_experiment_fail

Mark a PostHog AI observability offline experiment as failed. Returns an experiment receipt confirming the failure was recorded, including its status (e.g. "Ok"). Required: offline_experiment_id, project_id, id.

get_single_post_hog_offline_experiment_item_by_id

Get a single PostHog offline experiment item by id within a project's offline AI experiment. Returns: model_version, id, experiment_id, case_key, trial, dataset_item_identifier, dataset_item_version_identifier, dataset_item_version_id, accepted_at, payload_state, results, and 3 more. Required: id, offline_experiment_id, project_id, item_id.

list_all_post_hog_offline_experiment_items

List items of a PostHog offline AI experiment. Returns: count, next_cursor, results, scorer_versions. Max 100 per page (defaults to 50). Required: offline_experiment_id, project_id, id.

list_all_post_hog_offline_experiment_result_cells

List result cells for a PostHog AI-observability offline experiment. Returns scorer_versions (pinned scorer configs) and results (cells with id, item_id, status, value, evaluated_at, accepted_at, error_code). Required: project_id, offline_experiment_id, id, item_ids (1-50), scorer_version_ids (1-20).

list_all_post_hog_offline_experiment_scorer_summaries

List scorer summaries for a PostHog AI observability offline experiment. Returns: count, next_cursor, results. Max 100 per page. Required: offline_experiment_id, project_id, id.

create_a_post_hog_offline_experiment_upload

Upload evaluation items and results for an AI observability offline experiment in PostHog. Returns: items, results, PersonalAPIKeyAuth. Required: offline_experiment_id, project_id, id, results.

list_all_post_hog_offline_scorer_histories

List the evaluation history for an offline scorer in PostHog AI observability. Returns: count, next_cursor, results. Max 100 per page. Required: offline_scorer_id, project_id, id.

get_single_post_hog_online_performance_by_id

Get realized online performance history for a PostHog autoresearch pipeline. Returns rows of per-model, per-prediction-date metrics (newest date first) — realized_auc with its 95% interval, brier_score, calibration_error, quantile calibration bins, mean_p_y vs base_rate, lift, and the model's emitted/current roles — plus segment_thresholds cut…

list_all_post_hog_organization_advanced_activity_logs

List PostHog activity logs across every project in an organization. Returns: id, user, activity, scope, detail, created_at. Required: organization_id. Max page size 1000.

create_a_post_hog_organization_cimd_verification_token

Create a CIMD verification token in a PostHog organization. Returns: id, label, cimd_url, mask_value, created_by, created_at, last_used_at, value, PersonalAPIKeyAuth. The plaintext value is only returned on creation; PostHog stores a hash. Required: organization_id, label, cimd_url.

delete_a_post_hog_organization_cimd_verification_token_by_id

Delete a CIMD verification token by id for a PostHog organization. Returns an empty 204 response on success. Required: id, organization_id.

get_single_post_hog_organization_cimd_verification_token_by_id

Get a CIMD verification token by id in a PostHog organization. Returns: id, label, cimd_url, mask_value, created_by, created_at, last_used_at, PersonalAPIKeyAuth. Required: id, organization_id.

list_all_post_hog_organization_cimd_verification_tokens

List CIMD verification tokens in a PostHog organization. Returns each token's id, label, cimd_url, mask_value, created_by, created_at, and last_used_at. Required: organization_id.

update_a_post_hog_organization_cimd_verification_token_by_id

Update a CIMD verification token by id in a PostHog organization. Returns: id, label, cimd_url, mask_value, created_by, created_at, last_used_at, PersonalAPIKeyAuth. Required: id, organization_id.

create_a_post_hog_organization_cross_project_dashboard

Create a cross-project dashboard in a PostHog organization, holding insights from one or more projects. Returns the created dashboard with id, name, description, filters, and tiles. Requires organization_id and name. Required: organization_id, name.

delete_a_post_hog_organization_cross_project_dashboard_by_id

Delete a PostHog cross-project dashboard by id. Returns an empty 204 response on success. Required: id, organization_id.

get_single_post_hog_organization_cross_project_dashboard_by_id

Get a cross-project dashboard in a PostHog organization by id. Returns: id, name, description, filters, tiles, created_by, created_at, updated_at. Requires organization_id and id. Required: id, organization_id.

list_all_post_hog_organization_cross_project_dashboards

List cross-project dashboards owned by a PostHog organization. Each item includes id, name, description, filters, tile_count, project_count, and created_at. Requires organization_id. Required: organization_id.

update_a_post_hog_organization_cross_project_dashboard_by_id

Update a cross-project dashboard in a PostHog organization by id; only the supplied fields are changed. Returns the updated dashboard with id, name, description, filters, and tiles. Requires organization_id and id. Required: id, organization_id.

create_a_post_hog_organization_desktop_beta_term

Record the organization's acceptance of the PostHog Desktop beta terms. Returns: is_desktop_beta_terms_accepted. Required: organization_id. This endpoint is deprecated upstream.

list_all_post_hog_organization_desktop_beta_terms

Retrieve the Desktop beta terms acceptance status for a PostHog organization. Returns: is_desktop_beta_terms_accepted, PersonalAPIKeyAuth. Required: organization_id. This endpoint is deprecated.

create_a_post_hog_organization_domain

Create an organization domain in PostHog for SSO and SCIM provisioning. Returns: id, domain, is_verified, verified_at, verification_challenge, jit_provisioning_enabled, sso_enforcement, scim_base_url. Required: organization_id, domain.

delete_a_post_hog_organization_domain_by_id

Delete a PostHog organization domain by id. Returns an empty 204 response on success. Required: id, organization_id.

get_single_post_hog_organization_domain_by_id

Get a single PostHog organization domain by id. Returns: id, domain, is_verified, verified_at, verification_challenge, jit_provisioning_enabled, sso_enforcement, scim_base_url. Required: id, organization_id.

list_all_post_hog_organization_domains

List PostHog organization domains. Returns domain objects with: id, domain, is_verified, jit_provisioning_enabled, sso_enforcement, scim_base_url. Required: organization_id.

post_hog_organization_domains_partial_update

Partially update a PostHog organization domain by domain_id. Returns: id, domain, is_verified, verified_at, verification_challenge, jit_provisioning_enabled, sso_enforcement, scim_base_url. Required: domain_id, organization_id.

update_a_post_hog_organization_domain_by_id

Update a PostHog organization domain by id. Returns the updated domain object including id, domain, is_verified, verified_at, and sso_enforcement. Required: organization_id, id, domain.

post_hog_organization_domains_verify

Verify ownership of an organization domain in PostHog by triggering the verification check for the domain. Returns: status. Required: domain_id, organization_id, domain.

get_single_post_hog_organization_events_retention_setting_by_id

Get the PostHog organization's events retention window. Returns: organization_retention_months, plan_retention_months, min_retention_months, max_retention_months. Required: id.

update_a_post_hog_organization_events_retention_setting_by_id

Set the PostHog organization's events retention window. Returns: organization_retention_months, plan_retention_months, min_retention_months, max_retention_months. Required: organization_id, retention_months. Events older than the window are deleted at the next monthly cleanup and can't be restored. Organization admins only.

create_a_post_hog_organization_identity_provider_config

Create a new identity provider config in a PostHog organization to set up SAML, OIDC, or SCIM authentication. Returns the created config including id, name, domain_scope, has_saml, and created_at. Required: organization_id.

delete_a_post_hog_organization_identity_provider_config_by_id

Delete an identity provider config from a PostHog organization. Returns an empty 204 response on success. Required: id, organization_id.

get_single_post_hog_organization_identity_provider_config_by_id

Get a single identity provider config in a PostHog organization by id. Returns: id, name, domain_scope, config_scope, organization_domain_ids, created_at, updated_at, has_saml, has_oidc, has_oidc_client_secret, oidc_issuer_url, oidc_client_id, saml_relay_state, saml_entity_id, saml_acs_url, has_scim, and 8 more. Required: organization_id and id.

list_all_post_hog_organization_identity_provider_configs

List identity provider configs in a PostHog organization. Returns configs with id, name, domain_scope, SAML/OIDC/SCIM status flags, and created_at. Required: organization_id.

post_hog_organization_identity_provider_configs_partial_update

Partially update an identity provider config in a PostHog organization, e.g. to change OIDC, SAML, or SCIM settings. Returns the updated config including id, name, domain_scope, has_saml, and updated_at. Required: organization_id and identity_provider_config_id.

update_a_post_hog_organization_identity_provider_config_by_id

Update an organization's SAML/OIDC/SCIM identity provider config in PostHog. Returns: id, name, domain_scope, config_scope, organization_domain_ids, created_at, updated_at, has_saml, has_oidc, has_oidc_client_secret, oidc_issuer_url, oidc_client_id, saml_relay_state, has_scim, scim_base_url, has_id_jag, and 9 more. Required: id, organization_id.

delete_a_post_hog_organization_integration_by_id

Delete (disconnect) a PostHog organization-level integration, such as a Vercel or AWS Marketplace installation, by its UUID id. Returns an empty 204 response on success. Required: id, organization_id. Deauthorization fails with 409 when the linked account has unpaid invoices.

get_single_post_hog_organization_integration_by_id

Get an organization-level PostHog integration (e.g. Vercel, AWS Marketplace) by id. Returns: id, kind, integration_id, config, created_at, updated_at, created_by, PersonalAPIKeyAuth. Required: organization_id, id.

list_all_post_hog_organization_integrations

List PostHog integrations scoped to an organization, such as Vercel or AWS Marketplace. Returns: id, kind, integration_id, config, created_at, updated_at, created_by, PersonalAPIKeyAuth. Required: organization_id.

post_hog_organization_invites_bulk_create

Bulk-create organization invites in PostHog, inviting multiple members to one organization in a single call. Returns an empty 200 response on success. Required: organization_id, target_email.

create_a_post_hog_organization_invite

Create an invite for a member to join a PostHog organization. Returns: id, target_email, first_name, emailing_attempt_made, level, is_expired, created_by, created_at, updated_at, message, private_project_access, PersonalAPIKeyAuth. Required: organization_id, target_email.

delete_a_post_hog_organization_invite_by_id

Delete a pending organization invite in PostHog by id, revoking the invitation. Returns an empty 204 response on success. Required: id, organization_id.

list_all_post_hog_organization_invites

List invites for a PostHog organization. Returns: id, target_email, first_name, emailing_attempt_made, level, is_expired, created_by, created_at, updated_at, message, private_project_access, PersonalAPIKeyAuth. Required: organization_id.

create_a_post_hog_organization_legal_document

Create a legal document for a PostHog organization. Returns: id, document_type, company_name, representative_email, status, and 3 more fields. Required: organization_id, document_type, company_name, company_address, representative_email. Requires organization_id, document_type, company_name, company_address, and representative_email.

delete_a_post_hog_organization_legal_document_by_id

Delete an unsigned legal document in PostHog by id; the PandaDoc envelope is voided first so the signer can no longer complete it, and the record is removed only if the void succeeds. Returns an empty 204 response on success. Required: id, organization_id. Signed documents cannot be deleted, and the deletion stays in place if the envelope void…

get_single_post_hog_organization_legal_document_by_id

Get a single legal document for a PostHog organization by id. Returns: id, document_type, company_name, representative_email, status, signed_pdf_stored, created_by, created_at, PersonalAPIKeyAuth. Required: id, organization_id.

list_all_post_hog_organization_legal_documents

List legal documents for a PostHog organization. Returns: id, document_type, company_name, representative_email, status, signed_pdf_stored, created_by, created_at. Required: organization_id.

delete_a_post_hog_organization_member_by_id

Remove a member from a PostHog organization by deleting their membership. Returns an empty 204 response on success. Required: id, organization_id, user__uuid.

post_hog_organization_members_partial_update

Partially update an organization member in PostHog, such as changing their access level. Returns the membership record with id, user, level, joined_at, and updated_at. Required: organization_id, member_id.

update_a_post_hog_organization_member_by_id

Update an organization member in PostHog by id, such as setting their access level. Returns the membership record with id, user, level, joined_at, and updated_at. Required: id, organization_id, user__uuid.

list_all_post_hog_organization_oauth_applications

List OAuth applications registered for a PostHog organization. Returns: id, name, client_id, redirect_uris_list, is_verified, created, updated. Required: organization_id. This is a read-only endpoint.

create_a_post_hog_organization_project

Create a new PostHog project in an organization. Returns: id, organization, name, logo_media_id, product_description, tags, created_at, effective_membership_level, has_group_types, group_types, live_events_token, updated_at, uuid, api_token, app_urls, anonymize_ips, completed_snippet_onboarding, and 78 more. Required: organization_id.

delete_a_post_hog_organization_project_by_id

Delete a PostHog project by id within an organization. Returns an empty 204 response on success. Required: id, organization_id.

get_single_post_hog_organization_project_by_id

Get a PostHog project and its settings by id. Returns: id, organization, name, logo_media_id, product_description, tags, created_at, effective_membership_level, has_group_types, group_types, live_events_token, updated_at, uuid, api_token, app_urls, anonymize_ips, completed_snippet_onboarding, timezone, and 77 more. Required: id, organization_id.

post_hog_organization_projects_get_activity

Get the activity for a PostHog project. Returns: id, organization, name, logo_media_id, product_description, tags, created_at, effective_membership_level, has_group_types, group_types, live_events_token, updated_at, uuid, api_token, app_urls, anonymize_ips, completed_snippet_onboarding, and 78 more. Required: project_id, organization_id, id.

list_all_post_hog_organization_projects

List PostHog projects for an organization. Returns: id, organization, name, logo_media_id, product_description, tags, created_at, effective_membership_level, has_group_types, group_types, live_events_token, updated_at, uuid, api_token, app_urls, anonymize_ips, completed_snippet_onboarding, ingested_event, and 77 more. Required: organization_id.

post_hog_organization_projects_partial_update

Update one or more settings of a PostHog project; only the fields included in the request body are changed. Returns: id, organization, name, logo_media_id, product_description, tags, created_at, effective_membership_level, has_group_types, group_types, live_events_token, updated_at, api_token, and 82 more. Required: organization_id, project_id.

update_a_post_hog_organization_project_by_id

Replace a PostHog project and its settings — every writable field must be provided, so prefer the PATCH endpoint for partial updates. Returns: id, organization, name, logo_media_id, product_description, tags, created_at, effective_membership_level, has_group_types, group_types, updated_at, api_token, and 83 more. Required: id, organization_id.

create_a_post_hog_organization_proxy_record

Create a new managed reverse proxy in PostHog for a domain. Returns: id, domain, target_cname, root_redirect_url, root_redirect_supported, status, message, and 3 more fields. Required: organization_id, domain. Requires organization_id and domain. Once the CNAME DNS record is configured, the proxy is automatically verified and provisioned.

delete_a_post_hog_organization_proxy_record_by_id

Delete a PostHog organization's reverse proxy by id. Proxies in 'waiting', 'erroring', or 'timed_out' status are deleted immediately; active proxies enter a deletion workflow that cleans up the provisioned infrastructure. Returns an empty 204 response on success. Required: id, organization_id.

get_single_post_hog_organization_proxy_record_by_id

Get a PostHog reverse proxy by id. Returns the full configuration including id, domain, target_cname, root_redirect_url, status, and created_at. Required: organization_id, id.

list_all_post_hog_organization_proxy_records

List all reverse proxies configured for a PostHog organization. Returns: results, max_proxy_records, PersonalAPIKeyAuth. Required: organization_id.

post_hog_organization_proxy_records_retry

Retry provisioning a failed PostHog reverse proxy. Only available for proxies in 'erroring' or 'timed_out' status; the proxy is reset to 'waiting' and the provisioning workflow restarts. Returns: id, domain, target_cname, root_redirect_url, status, message, created_at, updated_at, and 2 more. Required: proxy_record_id, organization_id.

update_a_post_hog_organization_proxy_record_by_id

Update a proxy record in a PostHog organization to set or clear the HTTPS redirect served at the managed proxy domain root. Returns: id, domain, target_cname, root_redirect_url, root_redirect_supported, status, message, created_at, updated_at, created_by. Required: id, organization_id.

organization_remove_blocked_members_and_enforce_verified_domains

Remove PostHog organization members whose email domain is outside the organization's verified domains and enable enforce_verified_domains in one transaction; owners are never removed. Returns: success, removed_members. Admin only; to enable the setting without removing members, patch the organization instead. Required: organization_id, id.

create_a_post_hog_organization_request_ai_accese

Request PostHog AI access for a PostHog organization by notifying its admins that a member is asking for it to be enabled. Returns: success. Required: organization_id, id.

create_a_post_hog_organization_role_external_reference

Create a PostHog role external reference linking an organization role to an external provider role. Returns: id, provider, provider_organization_id, provider_role_id, provider_role_slug, provider_role_name, role, created_at, created_by. Required: organization_id, provider, provider_organization_id, provider_role_id, provider_role_name, role.

delete_a_post_hog_organization_role_external_reference_by_id

Delete a role external reference in a PostHog organization by id (a UUID identifying the reference). Returns an empty 204 response on success. Required: id, organization_id.

list_all_post_hog_organization_role_external_references

List PostHog role external references for an organization, mapping organization roles to external provider roles. Returns: id, provider, provider_organization_id, provider_role_id, provider_role_slug, provider_role_name, role, created_at, created_by. Required: organization_id.

create_a_post_hog_organization_role

Create a new role in a PostHog organization. Returns: id, name, created_at, created_by, members, is_default. Required: organization_id, name.

delete_a_post_hog_organization_role_by_id

Delete a PostHog organization role by id. Returns an empty 204 response on success. Required: organization_id, id.

get_single_post_hog_organization_role_by_id

Get a single PostHog role by id. Returns: id, name, created_at, created_by, members, is_default. Required: id, organization_id.

list_all_post_hog_organization_roles

List roles in a PostHog organization. Returns: id, name, created_at, created_by, members, is_default. Required: organization_id.

post_hog_organization_roles_partial_update

Partially update an existing PostHog role, e.g. rename it. Returns: id, name, created_at, created_by, members, is_default. Required: role_id, organization_id.

update_a_post_hog_organization_role_by_id

Update a PostHog role by id within an organization. Returns the updated role with id, name, created_at, created_by, members, and is_default. Requires organization_id, id, and name. Member records are scoped by the org's member list visibility settings. Required: id, organization_id, name.

create_a_post_hog_organization

Create a new PostHog organization. Returns the created organization including id, name, slug, created_at, updated_at, and membership_level. Required: name.

delete_a_post_hog_organization_by_id

Delete a PostHog organization by id. Returns an empty 204 response on success. Required: id.

get_single_post_hog_organization_by_id

Get a single PostHog organization by id (a UUID string identifying the organization). Returns the full organization record including id, name, slug, created_at, updated_at, and membership_level. Required: id.

list_all_post_hog_organizations

List PostHog organizations. Returns paginated organization records including id, name, slug, created_at, updated_at, and membership_level.

post_hog_organizations_partial_update

Partially update a PostHog organization by organization_id, changing only the fields you send. Returns the updated organization including id, name, slug, created_at, updated_at, and membership_level. Required: organization_id.

update_a_post_hog_organization_by_id

Update a PostHog organization by id. Returns the updated organization including id, name, slug, created_at, updated_at, and membership_level. Required: id, name.

create_a_post_hog_playground_chat

Create a new empty business knowledge playground chat in PostHog. Returns the chat with id, title, turns, and created_at; the title is set by the first question asked. Required: project_id.

delete_a_post_hog_playground_chat_by_id

Delete a business knowledge playground chat in PostHog, removing the chat and its turns. Returns an empty 204 response on success. Deleting does not cancel a running sandbox agent. Required: id and project_id.

get_single_post_hog_playground_chat_by_id

Get a business knowledge playground chat by id, reloading the chat and its turns, where each turn's answer comes from its sandbox run. Returns: id, title, created_at, updated_at, has_open_turn, turns, PersonalAPIKeyAuth. Required: project_id, id.

list_all_post_hog_playground_chats

List business knowledge playground chats started by the current user in a PostHog project. Returns: id, title, created_at, updated_at, has_open_turn, PersonalAPIKeyAuth. Required: project_id.

get_single_post_hog_products_summary_by_id

Get every billing product in summary for a PostHog organization. Returns: results, PersonalAPIKeyAuth. Beta endpoint behind the organization-billing-api feature flag — 403 without it; shapes may change. Required: id.

list_all_post_hog_project_access_control_default_objects

List default access control object rules for a PostHog project — the rules that apply to everyone in the project without a rule of their own on that object. Returns: results, PersonalAPIKeyAuth. Required: organization_id, project_id, id.

list_all_post_hog_project_access_control_default_properties

List the default access control property rules for a PostHog project — the property rules that apply to everyone in the project without a rule of their own on that property. Returns the default rules in `results`: the person and event properties every member can read, read and write, or not see. Required: organization_id, project_id, id.

list_all_post_hog_project_access_control_defaults

Get a PostHog project's default access — the level that applies to the project and to each resource type when a member or role has no rule of its own. Returns: available_project_levels, available_resource_levels, can_edit, project_access_level, resource_access_levels, object_rule_resources, and 2 more. Required: project_id, organization_id, id.

post_hog_project_access_control_managements_bulk_update

Enable or disable Terraform management of a PostHog project's access rules. Once enabled, only Terraform can change them until its first write. Returns: managed, terraform_last_applied_at, has_terraform_account. Required: organization_id, project_id, managed.

get_single_post_hog_project_access_control_management_by_id

Get whether Terraform manages a PostHog project's access rules. Returns: managed, terraform_last_applied_at, has_terraform_account. Required: organization_id, id.

list_all_post_hog_project_access_control_member_objects

List the object-level access rules a member has on individual PostHog objects (e.g. a dashboard or notebook), regardless of resource-level rules. Returns: results, PersonalAPIKeyAuth. Required: organization_id, project_id, id, member_id.

list_all_post_hog_project_access_control_member_properties

List the person and event property rules configured for a member in a PostHog project — the properties the member can read, read and write, or not see. Returns: results, PersonalAPIKeyAuth. Required: project_id, member_id, organization_id, id.

list_all_post_hog_project_access_control_members

List every organization member's access in a PostHog project, showing each member's own rule, the enforced level, and where that level comes from (member rule, role rule, project default, or organization admin). Returns: available_project_levels, available_resource_levels, can_edit, results, and 1 more. Required: project_id, organization_id, id.

list_all_post_hog_project_access_control_role_objects

List the access control object rules configured for a role in PostHog: the single objects the role's members are granted or denied, regardless of resource-level rules. Returns: results, PersonalAPIKeyAuth. Required: organization_id, project_id, role_id, id.

list_all_post_hog_project_access_control_role_properties

List an access control role's property rules in a PostHog project: the person and event properties its members can read, read and write, or not see. Returns paginated results with next and previous links; each rule gives the property, its type, and its access level. Required: organization_id, project_id, id, role_id.

list_all_post_hog_project_access_control_roles

List every role's resolved access to a PostHog project: each role's own rule, the enforced level, and the rule it comes from. Returns: available_project_levels, available_resource_levels, can_edit, results, PersonalAPIKeyAuth. Required: project_id, organization_id, id.

list_all_post_hog_project_account_notes

List account notes in a PostHog project, with optional filters by account, assignee, creator, and full-text search across note title and content. Returns: short_id, title, created_at, last_modified_at, account_id, account_name, created_by. Required: project_id.

create_a_post_hog_project_account_relationship_definition

Create a PostHog account relationship definition in the given project. Returns the created definition with id, name, description, is_single_holder, and is_controlled. Requires project_id and name. Required: project_id, name.

delete_a_post_hog_project_account_relationship_definition_by_id

Delete an account relationship definition in a PostHog project by id. Returns an empty 204 response on success. Required: id, project_id.

get_project_account_relationship_definition_by_id

Get a single PostHog account relationship definition by id within a project. Returns: id, name, description, is_single_holder, is_controlled. Required: id, project_id.

list_all_post_hog_project_account_relationship_definitions

List PostHog account relationship definitions for a project. Returns: id, name, description, is_single_holder, is_controlled. Required: project_id.

post_hog_project_account_relationship_definitions_partial_update

Partially update a PostHog account relationship definition by id. Returns the updated definition with id, name, description, is_single_holder, and is_controlled. Requires project_id and account_relationship_definition_id. Required: account_relationship_definition_id, project_id.

update_a_post_hog_project_account_relationship_definition_by_id

Update a PostHog account relationship definition by id. Returns: id, name, description, is_single_holder, is_controlled. Required: id, project_id, name.

post_hog_project_account_track_rules_bulk_update

Bulk update the account track rules for a PostHog project. Returns: schema_version, version, enabled, groups. Required: project_id, schema_version, version, enabled, groups.

list_all_post_hog_project_account_track_rules

List the account track rules configuration for a PostHog project. Returns the AccountTrackRulesConfig object, with its upstream-defined fields exposed via attributes. Required: project_id.

create_a_post_hog_project_account_view

Create a personal account view in PostHog. Returns the created view including id, name, visibility, content, version, created_by, created_at, updated_at, and can_edit/can_delete flags. Required: project_id, name, and content (the initial view components).

delete_a_post_hog_project_account_view_by_id

Delete an account view in a PostHog project by id. Returns an empty 204 response on success. Required: id, project_id, version.

get_single_post_hog_project_account_view_by_id

Get a personal account view by id in PostHog. Returns the view's id, name, visibility, content, text_content, version, created_by, created_at, updated_at, and can_edit/can_delete flags. Required: id, project_id.

list_all_post_hog_project_account_views

List the account views saved in a PostHog project. Returns each account view's id, version, created_at, and updated_at. Required: project_id.

update_a_post_hog_project_account_view_by_id

Update a personal account view by id in PostHog. Returns the updated view including id, name, visibility, content, version, updated_at, and can_edit/can_delete flags. Required: id, project_id, version.

create_a_post_hog_project_account

Create a new account in a PostHog project. Returns the created account including its id, name, external_id, tags, and created_at. Required: project_id, name.

delete_a_post_hog_project_account_by_id

Delete a PostHog project account by its UUID id. Returns an empty 204 response on success. Required: id, project_id.

get_single_post_hog_project_account_by_id

Get a single PostHog account by id within a project. Returns the full account object including its id, name, external_id, properties, tags, and created_at. Required: id, project_id.

list_all_post_hog_project_accounts

List accounts in a PostHog project. Churned and ignored accounts are hidden by default; filter by search text, tags, or ordering. Returns account records with id, name, external_id, tags, and created_at. Required: project_id.

post_hog_project_accounts_partial_update

Partially update an account in a PostHog project, changing only the fields you send. Returns the updated account including its id, name, external_id, tags, and updated_at. Required: account_id, project_id.

update_a_post_hog_project_account_by_id

Update an account in a PostHog project by its id. Returns the updated account including id, name, external_id, tags, and created_at. Required: id, project_id, name.

create_a_post_hog_project_accounts_table_query

Run a Customer Analytics accounts table query in PostHog. Returns account rows with id, name, externalId, tags, accountFields, customProperties, and relationships. Required: project_id, query. Supports async execution.

list_all_post_hog_project_activity_logs

List PostHog activity log entries for a project, showing who changed what and when. Returns: id, activity, scope, user, item_id, created_at. Required: project_id. Max 1000 results per page.

post_hog_project_add_product_intents_bulk_update

Add a product intent to a PostHog project in the current organization. Returns the updated project including id, name, organization, created_at, and updated_at. Required: organization_id, project_id.

list_all_post_hog_project_advanced_activity_logs

List advanced activity log entries for a PostHog project, filterable by activity type, scope, user, client, IP address, and date range. Returns: id, user, activity, scope, detail, created_at. Required: project_id. Max 1000 per page.

delete_a_post_hog_project_aeo_prompt_by_id

Archive an AEO prompt in PostHog by id. The prompt is turned off and never runs again — nothing is deleted, its versions and checks are kept, and it can be restored by patching archived=false. Returns an empty 204 response on success. Required: project_id, id.

get_single_post_hog_project_aeo_prompt_by_id

Get a single AEO prompt by id in a PostHog project, archived ones included, with its latest check per answer engine. Returns: latest_checks, id, prompt, topic, prompt_source, rank, active, last_checked_at, external_visibility, created_at, updated_at, archived_at, current_version, version_count. Required: project_id, id.

list_all_post_hog_project_aeo_prompts

List a PostHog project's AEO prompts, ordered by topic and then rank, each with its latest check per answer engine. Returns: latest_checks, id, prompt, topic, prompt_source, rank, active, last_checked_at, external_visibility, created_at, updated_at, archived_at, and 3 more. Archived prompts are excluded by default. Required: project_id.

update_a_post_hog_project_aeo_prompt_by_id

Update an AEO prompt in a PostHog project: turn it on or off, change its topic or text, or archive or restore it. A text change adds a new version while the prompt keeps its id, and past checks are kept. Returns: latest_checks, id, prompt, topic, prompt_source, rank, active, last_checked_at, and 7 more. Required: project_id, id.

create_a_post_hog_project_alert

Create an alert configuration in a PostHog project. Returns the created alert with id, name, state, enabled, threshold, and next_check_at. Required: project_id, insight, subscribed_users, threshold.

delete_a_post_hog_project_alert_by_id

Delete a PostHog alert configuration by id within a project. Returns an empty 204 response on success. Required: id, project_id.

get_single_post_hog_project_alert_by_id

Get a PostHog alert configuration by id, including its check history. Returns: id, created_by, created_at, insight, insight_short_id, insight_display_name, llm_detector_available, name, subscribed_users, state, enabled, next_check_at, checks, checks_total, and 17 more. Required: project_id, id. Check history retention maxes out at 14 days.

list_all_post_hog_project_alerts

List alert configurations in a PostHog project. Returns alerts with id, name, state, enabled, insight, and next_check_at. Required: project_id. Fuzzy name search is capped at 200 characters.

post_hog_project_alerts_partial_update

Partially update a PostHog alert configuration by alert_id, sending only the fields to change. Returns the updated alert with id, name, state, enabled, and last_checked_at. Required: project_id, alert_id.

update_a_post_hog_project_alert_by_id

Update an existing alert configuration in a PostHog project. Returns the updated alert including id, name, insight, state, enabled, and last_checked_at. Required: id, project_id, insight, subscribed_users, threshold.

create_a_post_hog_project_announcement

Create an announcement in a PostHog project. Returns: id, short_id, message, status, send_as, sender_display_name, total_channels, sent_count, failed_count, sent_at, created_at, created_by, deliveries, PersonalAPIKeyAuth. Required: project_id, message, channels.

get_single_post_hog_project_announcement_by_id

Get a single PostHog project announcement by id. Returns: id, short_id, message, status, send_as, sender_display_name, total_channels, sent_count, failed_count, sent_at, created_at, created_by, deliveries, PersonalAPIKeyAuth. Required: id, project_id, short_id.

list_all_post_hog_project_announcements

List PostHog project announcements for a project. Returns: id, short_id, message, status, send_as, sender_display_name, total_channels, sent_count, failed_count, sent_at, created_at, created_by, deliveries, PersonalAPIKeyAuth. Required: project_id.

create_a_post_hog_project_approval_policy

Create an approval policy in a PostHog project. Returns the created policy including id, action_key, approver_config, enabled, and created_at. Required: project_id, action_key, approver_config.

delete_a_post_hog_project_approval_policy_by_id

Delete an approval policy in PostHog by its UUID id. Returns an empty 204 response on success. Required: id, project_id.

get_single_post_hog_project_approval_policy_by_id

Get a single PostHog approval policy by id. Returns the policy including id, action_key, approver_config, enabled, and created_at. Required: id, project_id.

list_all_post_hog_project_approval_policies

List approval policies in a PostHog project. Returns each policy with id, action_key, approver_config, enabled, and created_at. Required: project_id.

post_hog_project_approval_policies_partial_update

Partially update an approval policy in a PostHog project. Returns the updated policy including id, action_key, approver_config, enabled, and updated_at. Required: project_id, approval_policy_id.

update_a_post_hog_project_approval_policy_by_id

Update an approval policy in PostHog by id. Returns the updated policy object including id, action_key, approver_config, allow_self_approve, enabled, created_by, and updated_at. Required: id, project_id, action_key, approver_config.

post_hog_project_autoresearches_archive

Archive (soft-delete) an autoresearch pipeline in PostHog: daily scoring and training stop while predictions and metrics are preserved. Returns the archived pipeline including id, name, status, and created_at. Refused while a training run is in progress. Required: autoresearch_id, project_id, id.

create_a_post_hog_project_autoresearch

Create a PostHog autoresearch prediction pipeline defining a target event, population, and horizon for the training loop to optimize. Returns the created pipeline including id, name, status, target_event, and created_at. Required: name, project_id.

delete_a_post_hog_project_autoresearch_by_id

Delete an autoresearch pipeline in PostHog, permanently removing the pipeline and its prediction rows. Returns an empty 204 response on success. Required: id, project_id. Refused while a training run is in progress.

get_single_post_hog_project_autoresearch_by_id

Get a single PostHog autoresearch prediction pipeline by id (UUID). Returns the full pipeline object including id, name, status, target_event, training_phase, and champion_holdout_auc. Required: id, project_id.

list_all_post_hog_project_autoresearches

List PostHog autoresearch prediction pipelines in a project. Returns pipelines with id, name, status, target_event, and created_at. Required: project_id.

post_hog_project_autoresearches_partial_update

Partially update an autoresearch prediction pipeline in PostHog. Returns the updated pipeline with id, name, status, training_phase, and champion_holdout_auc. Only the fields supplied in the request body are changed. Required: project_id, autoresearch_id.

post_hog_project_autoresearches_pause

Pause daily scoring and training on a running PostHog autoresearch pipeline; a training run already in progress finishes, but the pipeline scores nobody until resumed. Returns the pipeline after pausing, including id, created_at, and updated_at. Fails if the pipeline is not running. Required: autoresearch_id, project_id, id.

post_hog_project_autoresearches_resume

Resume a paused PostHog autoresearch pipeline; daily scoring and training restart on the next cadence tick. Returns the pipeline after resuming, including id, created_at, and updated_at. Fails if the pipeline is not paused. Required: autoresearch_id, project_id, id.

update_a_post_hog_project_autoresearch_by_id

Update an autoresearch prediction pipeline in PostHog by id. Returns the updated pipeline with id, name, status, training_phase, and champion_holdout_auc. Required: id, project_id, name.

create_a_post_hog_project_batch_export

Create a PostHog batch export in a project. Returns the created export with id, name, destination, interval, paused, and created_at. Required: project_id, name, destination, interval.

delete_a_post_hog_project_batch_export_by_id

Delete a PostHog batch export by id. Returns an empty 204 response on success. Required: project_id, id.

get_single_post_hog_project_batch_export_by_id

Get a PostHog batch export by id. Returns: id, team_id, name, model, destination, interval, paused, created_at, last_updated_at, last_paused_at, start_at, end_at, latest_runs, hogql_query, hogql_modifiers, primary_key, version_key, incremental_mode, schema, filters, timezone, offset_day, offset_hour, PersonalAPIKeyAuth. Required: id, project_id.

list_all_post_hog_project_batch_exports

List PostHog batch exports in a project. Returns each export with id, name, destination, interval, paused, and created_at. Required: project_id.

post_hog_project_batch_exports_partial_update

Partially update a PostHog batch export, modifying only the fields you supply. Returns the updated batch export including id, name, destination, interval, paused, and created_at. Required: project_id, batch_export_id.

post_hog_project_batch_exports_pause

Pause a PostHog batch export by id so it stops running until unpaused. Returns: status, PersonalAPIKeyAuth. Required: batch_export_id, project_id.

update_a_post_hog_project_batch_export_by_id

Fully update a PostHog batch export by id, replacing its configuration. Returns the updated batch export including id, name, destination, interval, paused, and created_at. Required: id, project_id, name, destination, interval.

list_all_post_hog_project_calendar_syncs

List calendar-sync statuses for a PostHog project's Customer analytics settings. Returns: integration_id, last_synced_at, is_syncing, sync_interval_minutes. Required: project_id. Upstream sync runs on an hourly schedule.

create_a_post_hog_project_cancel_deletion

Cancel a scheduled project deletion and restore access to the project in PostHog. Returns: id, organization_id, name, logo_media_id, product_description, created_at, is_pending_deletion, deletion_scheduled_at, tags. Required: project_id, organization_id, id.

create_a_post_hog_project_canvase

Create a new, empty canvas in a PostHog project channel; give it source by publishing a project. Returns the canvas object including id, name, kind, channel, pinned, and created_at. Required: project_id, name, channel_id.

delete_a_post_hog_project_canvase_by_id

Delete a PostHog canvas by id. Canvases are agent-built sandboxed browser apps filed into channels. Returns an empty 204 response on success. Required: project_id, id.

get_single_post_hog_project_canvase_by_id

Get a single PostHog canvas by id. Canvases are agent-built sandboxed browser apps filed into channels; source is versioned per publish and built server-side. Returns the canvas object including id, name, kind, channel, pinned, and created_at. Required: id, project_id.

post_hog_project_canvases_invoke

Invoke one registered action verb on a PostHog canvas as the viewer; the canvas must declare the verb in its capabilities. Returns: verb, result, PersonalAPIKeyAuth. Required: canvase_id, project_id, id, verb.

list_all_post_hog_project_canvases

List PostHog canvases in a project, filterable by channel, created_by, kind, and case-insensitive text search. Returns canvas objects including id, name, kind, channel, pinned, and created_at. Required: project_id.

post_hog_project_canvases_list_comments

List the comment threads on a PostHog canvas, newest first — open threads only unless include_resolved is set. Returns the paginated comments list with each root comment's id, content excerpt, created_at, reply_count, and resolved state, plus the next page cursor. Required: canvase_id, project_id, id.

post_hog_project_canvases_publish

Publish a complete source project as a PostHog canvas's new head version, queuing a server-side build. Returns: canvas, current_version_id, diagnostics, build, PersonalAPIKeyAuth. Required: canvase_id, project_id, id, project.

post_hog_project_canvases_revert

Revert a PostHog canvas's head back to an existing source version and rebuild it. Returns: id, source_version_id, build_status, diagnostics, manifest, integrity, artifact_url, pinned, created_at, finished_at, PersonalAPIKeyAuth. Required: canvase_id, project_id, id, version_id, expected_current_version_id.

update_a_post_hog_project_canvase_by_id

Update a PostHog canvas's metadata, including the space it belongs to. Returns: id, name, kind, description, channel, template_id, generation_task_id, pinned, pinned_at, current_version_id, published_build_id, component_meta, created_by, created_at, updated_at, url, PersonalAPIKeyAuth. Required: id, project_id.

list_all_post_hog_project_change_feeds

List recent production changes in a PostHog project within a time window, newest first: feature flag and experiment edits, error tracking releases, and annotations. Returns the paginated feed with results (one change per entry), plus next and previous page URLs. Required: project_id. Max 500 changes per request.

create_a_post_hog_project_change_organization

Move a PostHog project to a different organization. Returns the updated project object with id, organization, name, created_at, and api_token. Required: project_id, organization_id, id.

post_hog_project_change_requests_approve

Approve a PostHog change request in a project. Returns: status, message, change_request, result, PersonalAPIKeyAuth. If quorum is reached, the change is applied automatically. Required: change_request_id, project_id, id.

post_hog_project_change_requests_cancel

Cancel a pending change request in PostHog. Returns the updated change request including its id, state, created_by, is_requester, and created_at. Only the requester can cancel their own pending change request. Required: change_request_id, project_id, id.

get_single_post_hog_project_change_request_by_id

Get a single PostHog change request by id. Returns: id, action_key, action_version, resource_type, resource_id, intent, intent_display, policy_snapshot, validation_status, validation_errors, validated_at, state, created_by, applied_by, created_at, updated_at, expires_at, applied_at, approvals, can_approve, and 6 more. Required: project_id, id.

list_all_post_hog_project_change_requests

List PostHog change requests in a project, filterable by state, action_key, resource_type, resource_id, and requester. Returns: id, action_key, action_version, resource_type, resource_id, intent, intent_display, policy_snapshot, validation_status, validation_errors, state, created_by, approvals, can_approve, and 12 more. Required: project_id.

post_hog_project_change_requests_reject

Reject a PostHog change request in a project. Returns: status, message, change_request, result, PersonalAPIKeyAuth. Required: change_request_id, project_id, id, reason.

post_hog_project_cohorts_list_activity

List the activity log for a PostHog cohort. Returns: results, next, previous, total_count, PersonalAPIKeyAuth. Required: cohort_id, project_id, id.

post_hog_project_comments_complete

Mark a PostHog task-comment as complete by id. Returns: id, created_by, scope, item_context, deleted, is_task, completed_by, slack_thread, content, rich_content, version, created_at, item_id, completed_at, source_comment, status. Returns 400 if the comment is not a task or is already complete. Required: comment_id, project_id, id.

delete_a_post_hog_project_comment_by_id

Delete a PostHog comment by id. PostHog does not allow hard deletes for this object, so this sends PATCH with deleted=true (a soft delete); the comment no longer appears in lists afterwards. Required: id, project_id.

get_single_post_hog_project_comment_by_id

Retrieve a single comment in a PostHog project by its UUID id. Returns the comment including id, content, created_by, is_task, version, and created_at. Required: id, project_id.

post_hog_project_comments_partial_update

Partially update a comment in a PostHog project, changing only the fields you send such as content or is_task. Returns the updated comment including id, content, version, and created_at. Required: comment_id, project_id.

update_a_post_hog_project_comment_by_id

Update a comment in a PostHog project by id. Returns the updated comment including id, content, version, and created_at. Required: id, project_id.

post_hog_project_complete_product_onboardings_bulk_update

Complete product onboarding for a PostHog project and optionally update its settings. Returns the updated project with id, name, organization, uuid, api_token, and created_at. Required: organization_id, project_id.

post_hog_project_conversations_bulk_delete

Delete a PostHog AI conversation by id. Returns an empty 204 response on success. Required: project_id, conversation.

create_a_post_hog_project_conversation

Create a PostHog project conversation or stream from an existing one via this unified endpoint. Returns: content, conversation, contextual_tools, ui_context, billing_context, trace_id, session_id, agent_mode, is_sandbox, resume_payload. Required: project_id, content, conversation, trace_id.

list_all_post_hog_project_conversations

List PostHog project conversations. Returns: content, conversation, contextual_tools, ui_context, billing_context, trace_id, session_id, agent_mode, is_sandbox, resume_payload. Required: project_id.

post_hog_project_conversations_update_cancel

Cancel a conversation's in-progress LangGraph run in PostHog AI. Returns an empty 204 response on success. Required: project_id, conversation.

list_all_post_hog_project_conversations_projects

Retrieve a PostHog conversation in a project by its conversation id. Returns: id, status, title, topic, user, created_at, updated_at, type, is_internal, slack_thread_key, slack_workspace_domain, messages, has_unsupported_content, agent_mode, agent_runtime, is_sandbox, pending_approvals, task. Required: project_id, conversation.

create_a_post_hog_project_custom_property_definition

Create a custom property definition in a PostHog project. Returns: id, name, description, display_type, target_type, group_type_index, is_big_number, is_canonical, options, source, created_at, created_by, updated_at, references, has_workflow_reference. Required: project_id, name, display_type.

delete_a_post_hog_project_custom_property_definition_by_id

Delete a custom property definition in PostHog by id within a project. Returns an empty 204 response on success. Required: id, project_id.

get_single_post_hog_project_custom_property_definition_by_id

Get a single custom property definition by id in a PostHog project. Returns: id, name, description, display_type, target_type, group_type_index, is_big_number, is_canonical, options, source, created_at, created_by, updated_at, references, has_workflow_reference. Required: project_id, id.

list_all_post_hog_project_custom_property_definitions

List custom property definitions in a PostHog project. Returns: id, name, description, display_type, target_type, group_type_index, is_big_number, is_canonical, options, source, created_at, created_by, updated_at, references, has_workflow_reference. Required: project_id.

post_hog_project_custom_property_definitions_partial_update

Partially update a custom property definition in a PostHog project. Returns: id, name, description, display_type, target_type, group_type_index, is_big_number, is_canonical, options, source, created_at, created_by, updated_at, references, has_workflow_reference. Required: project_id, definition_id.

update_a_post_hog_project_custom_property_definition_by_id

Update a custom property definition in a PostHog project. Returns: id, name, description, display_type, target_type, group_type_index, is_big_number, is_canonical, options, source, created_at, created_by, updated_at, references, has_workflow_reference. Required: id, project_id, name, display_type.

create_a_post_hog_project_custom_property_source

Create a custom property source in a PostHog project. Returns the created source including id, definition, key_column, is_enabled, sync_frequency_interval_seconds, and created_at. Required: project_id, definition, key_column.

delete_a_post_hog_project_custom_property_source_by_id

Delete a custom property source by id in a PostHog project. Returns an empty 204 response on success. Required: id, project_id.

get_single_post_hog_project_custom_property_source_by_id

Get a single custom property source by id in a PostHog project. Returns: id, definition, saved_query, external_data_schema, source_column, column_property_map, column_descriptions, key_column, is_enabled, consecutive_failures, last_synced_at, last_sync_error, created_at, created_by, latest_run, table_name, and 6 more. Required: project_id, id.

list_all_post_hog_project_custom_property_sources

List custom property sources in a PostHog project. Returns each source with id, definition, key_column, is_enabled, next_sync_at, and external_data_source. Required: project_id.

post_hog_project_custom_property_sources_partial_update

Partially update a custom property source in a PostHog project, such as its source_column, key_column, or is_enabled flag. Returns: id, definition, saved_query, external_data_schema, source_column, column_property_map, column_descriptions, key_column, is_enabled, last_synced_at, updated_at, latest_run, and 10 more. Required: project_id, source_id.

update_a_post_hog_project_custom_property_source_by_id

Update a custom property source in PostHog by id. Returns the updated source including id, key_column, source_column, is_enabled, last_synced_at, last_sync_error, and consecutive_failures. Required: project_id, id.

create_a_post_hog_project_customer_journey

Create a new customer journey in a PostHog project. Returns: id, insight, name, description, created_at, created_by, updated_at. Required: project_id, insight, name.

delete_a_post_hog_project_customer_journey_by_id

Delete a customer journey in a PostHog project. Returns an empty 204 response on success. Required: id, project_id.

get_single_post_hog_project_customer_journey_by_id

Get a single customer journey by id in a PostHog project. Returns: id, insight, name, description, created_at, created_by, updated_at. Required: id, project_id.

list_all_post_hog_project_customer_journeys

List customer journeys in a PostHog project. Returns: id, insight, name, description, created_at, created_by, updated_at. Required: project_id.

post_hog_project_customer_journeys_partial_update

Partially update a customer journey in a PostHog project. Returns: id, insight, name, description, created_at, created_by, updated_at. Required: journey_id, project_id.

update_a_post_hog_project_customer_journey_by_id

Update a customer journey in a PostHog project. Returns the updated journey with id, insight, name, description, created_at, created_by, and updated_at. Required: id, project_id, insight, name.

create_a_post_hog_project_customer_profile_config

Create a customer profile config in a PostHog project. Returns the new config with id, scope, content, sidebar, created_at, and updated_at. Required: project_id, scope.

delete_a_post_hog_project_customer_profile_config_by_id

Delete a customer profile config in a PostHog project by id. Returns an empty 204 response on success. Required: id, project_id.

get_single_post_hog_project_customer_profile_config_by_id

Get a single customer profile config by id in a PostHog project. Returns: id, scope, content, sidebar, created_at, updated_at. Required: id and project_id.

list_all_post_hog_project_customer_profile_configs

List customer profile configs in a PostHog project. Returns each config with id, scope, content, sidebar, created_at, and updated_at. Required: project_id.

post_hog_project_customer_profile_configs_partial_update

Partially update a customer profile config in a PostHog project. Returns the updated config with id, scope, content, sidebar, created_at, and updated_at. Required: project_id, customer_profile_config_id.

update_a_post_hog_project_customer_profile_config_by_id

Update an existing customer profile config in PostHog by id. Returns: id, scope, content, sidebar, created_at, updated_at. Required: id, project_id, scope.

post_hog_project_customer_tasks_archive

Archive a customer task in PostHog. Returns the archived customer task record with id, name, description, status, assigned_to, due_at, account, created_at, and updated_at. Required: project_id, customer_task_id.

create_a_post_hog_project_customer_task

Create a customer task in a PostHog project. Returns the created task including its id, name, description, status, assigned_to, due_at, and created_at. Required: project_id, name.

get_single_post_hog_project_customer_task_by_id

Get a single customer task by id in a PostHog project. Returns: id, account, name, description, status, assigned_to, due_at, completed_at, completed_by, created_by, archived_at, created_at, updated_at, can_edit, can_restore. Required: project_id, id.

list_all_post_hog_project_customer_tasks

List customer tasks in a PostHog project, filterable by account, assignee, deadline, status, and archive state. Returns: id, account, name, description, status, assigned_to, due_at, completed_at, completed_by, created_by, archived_at, created_at, updated_at, can_edit, can_restore. Required: project_id. Max 100 per page.

post_hog_project_customer_tasks_partial_update

Partially update a customer task in a PostHog project, changing only the fields you pass. Returns: id, account, name, description, status, assigned_to, due_at, completed_at, completed_by, created_by, archived_at, created_at, updated_at, can_edit, can_restore. Required: project_id, customer_task_id.

post_hog_project_customer_tasks_restore

Restore an archived customer task in PostHog, returning it to the active task list. Returns the restored task object with its id, name, status, assigned_to, and due_at. Required: project_id, customer_task_id.

update_a_post_hog_project_customer_task_by_id

Update a customer task in a PostHog project. Returns the updated task including id, name, description, status, assigned_to, due_at, and created_at. Required: id, project_id, name.

create_a_post_hog_project_dashboard_template

Create a new dashboard template in PostHog for a project. Returns the created template including id, template_name, tags, scope, is_featured, and created_at. Required: project_id.

delete_a_post_hog_project_dashboard_template_by_id

Delete a PostHog dashboard template by id. PostHog does not allow hard deletes for this object, so this sends PATCH with deleted=true (a soft delete); the dashboard template no longer appears in lists afterwards. Required: id, project_id.

get_single_post_hog_project_dashboard_template_by_id

Get a single PostHog dashboard template by its UUID id. Returns: id, template_name, dashboard_description, dashboard_filters, tags, tiles, variables, customization, deleted, created_at, created_by, image_url, team_id, scope, availability_contexts, is_featured, non_portable_references. Required: id, project_id.

list_all_post_hog_project_dashboard_templates

List PostHog dashboard templates for a project, filterable by scope, featured flag, and full-text search across template name, tags, and description. Returns: id, template_name, dashboard_description, dashboard_filters, tags, tiles, variables, customization, deleted, created_at, created_by, scope, is_featured, and 4 more. Required: project_id.

post_hog_project_dashboard_templates_partial_update

Partially update a PostHog dashboard template, such as renaming it, editing tags, or toggling its featured flag. Returns the updated template including id, template_name, tags, scope, and is_featured. Required: dashboard_template_id, project_id.

update_a_post_hog_project_dashboard_template_by_id

Update a dashboard template in PostHog by id. Returns the updated template including id, template_name, dashboard_description, tags, tiles, variables, customization, scope, is_featured, created_at, and team_id. Required: project_id, id.

create_a_post_hog_project_data_color_theme

Create a data color theme in a PostHog project. Returns the created theme with its id, name, colors, is_global, created_at, and created_by. Required: project_id, name.

delete_a_post_hog_project_data_color_theme_by_id

Delete a data color theme in a PostHog project by id. Returns an empty 204 response on success. Required: project_id, id.

get_single_post_hog_project_data_color_theme_by_id

Get a single data color theme by id in a PostHog project. Returns: id, name, colors, is_global, created_at, created_by. Required: id, project_id.

list_all_post_hog_project_data_color_themes

List data color themes in a PostHog project. Returns each theme's id, name, colors, is_global, created_at, and created_by. Required: project_id.

post_hog_project_data_color_themes_partial_update

Partially update a data color theme in a PostHog project. Returns the updated theme with its id, name, colors, is_global, created_at, and created_by. Required: project_id, data_color_theme_id.

update_a_post_hog_project_data_color_theme_by_id

Update a data color theme in a PostHog project by id. Returns: id, name, colors, is_global, created_at, created_by, PersonalAPIKeyAuth. Required: project_id, id, name.

create_a_post_hog_project_data_deletion_request

Create a PostHog data deletion request by submitting a one-column HogQL query for event deletion. Returns: id, status, query, variables, submission_id, count, created_by_id, created_by_staff, created_at, updated_at, approved_at, and 2 more. Requires project_id, query, and submission_id. Required: project_id, query, submission_id.

get_single_post_hog_project_data_deletion_request_by_id

Get a single PostHog event deletion request by id for a project. Returns: id, status, query, variables, submission_id, count, created_by_id, created_by_staff, created_at, updated_at, approved_at, stats_calculated_at, PersonalAPIKeyAuth. Requires project_id and id. Required: id, project_id.

list_all_post_hog_project_data_deletion_requests

List PostHog event deletion requests for a project. Returns: id, status, query, variables, submission_id, count, created_by_id, created_by_staff, created_at, updated_at, approved_at, stats_calculated_at, PersonalAPIKeyAuth. Requires project_id. Required: project_id.

get_single_post_hog_project_data_modeling_job_by_id

Get a PostHog data modeling job by id — one run of a saved query. Returns: id, saved_query_id, saved_query_name, saved_query_deleted, status, engine, run_mode, full_refresh_reason, rows_materialized, error, created_at, last_run_at, updated_at, workflow_id, workflow_run_id, rows_expected, read_rows, query_count, and 4 more. Required: id, project_id.

list_all_post_hog_project_data_modeling_jobs

List PostHog data modeling jobs, which are runs for saved queries. Returns: id, saved_query_id, saved_query_name, saved_query_deleted, status, engine, run_mode, full_refresh_reason, rows_materialized, error, created_at, last_run_at, updated_at, workflow_id, read_rows, and 7 more. Required: project_id. Defaults to ClickHouse jobs only.

list_all_post_hog_project_data_modeling_usages

List data modeling usage for a PostHog project, including overview totals, per-model breakdown, and trends. Returns: date_from, date_to, overview, trends, models, count, status_breakdown, usage_updated_at. Required: project_id. Range is capped at 90 complete UTC days via days or 366 via date_from.

create_a_post_hog_project_data_quality_check

Create a PostHog data quality check on a table, view, or metric. Returns the check with its id, name, check_type, subject_type, severity, and fingerprint. Requires project_id, subject_type, subject_uuid, and check_type. Re-creating a semantically identical check returns the existing row instead of a duplicate. Required: project_id, subject_type,…

delete_a_post_hog_project_data_quality_check_by_id

Delete a data quality check from a PostHog project by id. Returns an empty 204 response on success. Required: id, project_id.

get_single_post_hog_project_data_quality_check_by_id

Get a single PostHog data quality check by id, covering its authoring, run results, health, and schedules. Returns: id, name, description, subject_type, subject_uuid, subject_name, subject_status, column_name, check_type, config, severity, enabled, tags, owner, last_run_at, last_status, fingerprint, and 9 more. Required: id, project_id.

list_all_post_hog_project_data_quality_checks

List the data quality checks in a PostHog project, optionally narrowed to one subject (subject_type, subject_uuid) or one assertion (check_type). Returns: id, name, description, subject_type, subject_uuid, subject_name, subject_status, column_name, check_type, config, severity, enabled, last_run_at, last_status, and 12 more. Required: project_id.

post_hog_project_data_quality_checks_partial_update

Update a PostHog data quality check in place, editing what it asserts (check_type, column_name, config). Returns: id, name, check_type, severity, and 22 more. Required: data_quality_check_id, project_id. The audited subject is fixed, and a name or definition already held by another active check returns a field error with nothing written.

update_a_post_hog_project_data_quality_check_by_id

Update a data quality check in PostHog by id. Returns: id, name, description, check_type, severity, last_status, and 20 more. Required: id, project_id, check_type. The audited subject is fixed; the check keeps its id, run history, and latest status. A name or definition held by another active check is rejected as a field error with nothing written.

create_a_post_hog_project_data_quality_run

Trigger a PostHog data quality check-suite run for the checks named by check_ids, every enabled check on a subject (subject_type and subject_uuid), or every enabled check in the project when neither is given. Returns the suite run to poll for the report: id, trigger, status, checks_passed, checks_failed, checks_errored, checks_skipped,…

get_single_post_hog_project_data_quality_run_by_id

Get a PostHog data quality suite run by id. Returns: id, trigger, status, subject_type, subject_uuid, workflow_id, checks_passed, checks_failed, checks_errored, checks_skipped, started_at, finished_at, error, created_at. Required: project_id and id.

list_all_post_hog_project_data_quality_runs

List PostHog data quality check-suite runs in a project, newest first, optionally narrowed to one subject with subject_type and subject_uuid. Returns: id, trigger, status, subject_type, subject_uuid, workflow_id, checks_passed, checks_failed, checks_errored, checks_skipped, started_at, finished_at, error, created_at. Required: project_id.

post_hog_project_dataset_items_archive

Archive an active PostHog dataset item by creating a new immutable version. Returns: id, dataset, client_item_id, version, version_id, dataset_revision, dataset_revision_id, archived, input, expected_output, source_output, metadata, source_trace_id, source_event_id, created_at, and 7 more. Required: project_id, dataset_item_id, base_version.

create_a_post_hog_project_dataset_item

Create a PostHog dataset item and its first immutable version. Returns: id, dataset, client_item_id, version, version_id, dataset_revision, dataset_revision_id, archived, input, created_at, and 12 more. Required: project_id, dataset, input. Identical client_item_id retries return the existing item; conflicting payloads return an error.

get_single_post_hog_project_dataset_item_by_id

Get a PostHog dataset item by id, returning the current version or the version visible at an exact dataset revision. Returns: id, dataset, client_item_id, version, version_id, dataset_revision, dataset_revision_id, archived, input, expected_output, source_output, metadata, created_at, and 9 more. Required: id, project_id, dataset_item_id.

list_all_post_hog_project_dataset_items

List PostHog dataset items, either the current items or the exact snapshot at a prior revision. Returns: id, dataset, client_item_id, version, version_id, dataset_revision, dataset_revision_id, archived, input, expected_output, source_output, metadata, source_trace_id, source_event_id, created_at, and 7 more. Required: project_id, dataset.

post_hog_project_dataset_items_restore

Restore an archived PostHog dataset item by copying its content into a new immutable version. Returns: id, dataset, client_item_id, version, version_id, dataset_revision, dataset_revision_id, archived, input, expected_output, source_output, metadata, source_trace_id, created_at, and 8 more. Required: project_id, dataset_item_id, base_version.

update_a_post_hog_project_dataset_item_by_id

Update a PostHog dataset item by creating a new immutable version from its editable fields. Returns: id, dataset, client_item_id, version, version_id, input, expected_output, metadata, created_at, and 13 more. Omitted fields keep their current value; send null to clear expected_output. Required: id, project_id, dataset_item_id, base_version.

post_hog_project_datasets_archive

Archive a PostHog dataset. Archived datasets remain readable but reject item mutations. Returns the dataset record including id, name, archived, and created_at. Required: dataset_id, project_id.

create_a_post_hog_project_dataset

Create an empty PostHog dataset within a project; its first revision is created with its first item. Returns: id, name, description, metadata, tags, archived, current_revision, current_revision_id, created_at, updated_at, created_by, team_id, user_access_level. Required: project_id, name.

get_single_post_hog_project_dataset_by_id

Get a single PostHog dataset by id, including archived datasets. Returns: id, name, description, metadata, tags, archived, current_revision, current_revision_id, created_at, updated_at, created_by, team_id, user_access_level. Required: id, project_id.

list_all_post_hog_project_datasets

List PostHog datasets, active by default or archived when requested. Returns: id, name, description, metadata, tags, archived, current_revision, current_revision_id, created_at, updated_at, created_by, team_id, user_access_level. Required: project_id.

post_hog_project_datasets_restore

Restore an archived PostHog dataset without changing its item states. Returns the restored dataset object: id, name, description, tags, created_at, updated_at. Required: dataset_id, project_id, id.

update_a_post_hog_project_dataset_by_id

Update a PostHog dataset's descriptive fields without changing its revision. Returns: id, name, description, metadata, tags, archived, current_revision, current_revision_id, created_at, updated_at, created_by, team_id, user_access_level. Required: id, project_id.

post_hog_project_default_evaluation_contexts_bulk_delete

Delete the default evaluation contexts configured for a PostHog project. Returns an empty 204 response on success. Required: organization_id, project_id.

create_a_post_hog_project_default_evaluation_context

Create the default evaluation contexts for a PostHog project. Returns the project configuration including id, name, organization, created_at, and updated_at. Required: project_id, organization_id, id.

list_all_post_hog_project_default_evaluation_contexts

Retrieve the default evaluation contexts configured for a PostHog project. Returns the project configuration including id, name, organization, created_at, and updated_at. Required: project_id, organization_id, id.

post_hog_project_default_release_conditions_bulk_update

Bulk update the project settings that act as default release conditions for new feature flags in a PostHog project. Returns the updated project: id, name, timezone, api_token, created_at, updated_at. Required: organization_id, project_id.

list_all_post_hog_project_default_release_conditions

Get the project settings that define the default release conditions applied to new feature flags in a PostHog project. Returns the project: id, name, timezone, api_token, created_at, updated_at. Required: project_id, organization_id, id.

post_hog_project_delete_secret_token_backups_bulk_update

Delete the secret token backup for a project in PostHog. Returns the updated project object including id, name, organization, created_at, and updated_at. Required: organization_id, project_id.

create_a_post_hog_project_desktop_beta_term

Create a Desktop beta terms acceptance for a project in PostHog, recording that the PostHog Desktop beta terms have been accepted. Returns: is_desktop_beta_terms_accepted. Required: project_id.

list_all_post_hog_project_desktop_beta_terms

Retrieve the desktop beta terms acceptance status for a PostHog project. Returns: is_desktop_beta_terms_accepted. Required: project_id.

create_a_post_hog_project_desktop_feedback

Submit one response to the PostHog Desktop feedback survey, storing any selected attachments. Returns the acknowledgement including accepted and response_id. Required: project_id, response, source, feedback_view.

create_a_post_hog_project_early_access_feature

Create a new early access feature in a PostHog project. Returns: id, name, description, stage, documentation_url, payload, created_at, created_by, assignee, feature_flag, user_access_level, PersonalAPIKeyAuth. Required: project_id, name, stage.

delete_a_post_hog_project_early_access_feature_by_id

Delete a PostHog early access feature by id. Returns an empty 204 response on success. Required: id, project_id.

get_single_post_hog_project_early_access_feature_by_id

Get a single early access feature in a PostHog project by its UUID id. Returns: id, feature_flag, name, description, stage, documentation_url, payload, created_at, created_by, assignee, user_access_level, PersonalAPIKeyAuth. Required: project_id, id.

list_all_post_hog_project_early_access_features

List early access features in a PostHog project. Returns each feature's id, name, stage, documentation_url, created_at, and user_access_level. Required: project_id.

post_hog_project_early_access_features_partial_update

Update an early access feature in a PostHog project, changing only the provided fields. Returns: id, feature_flag, name, description, stage, documentation_url, payload, created_at, created_by, assignee, user_access_level, status. Required: project_id, early_access_feature_id.

update_a_post_hog_project_early_access_feature_by_id

Update an early access feature in PostHog by id. Returns: id, feature_flag, name, description, stage, documentation_url, payload, created_at, created_by, assignee, user_access_level. Required: id, project_id, name, stage.

create_a_post_hog_project_element

Create a PostHog element in a project. Returns the created element including text, tag_name, attr_class, href, attr_id, and order. Required: project_id.

delete_a_post_hog_project_element_by_id

Delete a PostHog project element by id. Returns an empty 204 response on success. Required: id, project_id.

get_single_post_hog_project_element_by_id

Get a single PostHog element by id within a project. Returns the element including text, tag_name, attr_class, href, attr_id, and order. Required: id, project_id.

list_all_post_hog_project_elements

List PostHog elements in a project. Returns elements including text, tag_name, attr_class, href, attr_id, and order. Required: project_id.

post_hog_project_elements_partial_update

Partially update a PostHog element in a project. Returns the updated element including text, tag_name, attr_class, href, attr_id, and order. Required: element_id, project_id.

update_a_post_hog_project_element_by_id

Update an existing element in a PostHog project by id. Returns the element with fields such as text, tag_name, href, attr_id, attr_class, and order. Required: project_id, id.

post_hog_project_endpoints_bulk_delete

Delete multiple PostHog project endpoints in a single request. Returns an empty 204 response on success. Required: project_id.

post_hog_project_endpoints_bulk_update

Bulk update PostHog project endpoints within a project. Returns: status. Required: project_id.

create_a_post_hog_project_endpoint

Create a new endpoint in a PostHog project. Returns the created endpoint with id, name, query, is_active, endpoint_path, and current_version. Required: project_id.

delete_a_post_hog_project_endpoint_by_id

Delete a PostHog project endpoint by id (the endpoint's URL-safe name) and clean up its materialized query. Returns an empty 204 response on success. Required: id, project_id, name. The id is the endpoint name, not its UUID.

get_single_post_hog_project_endpoint_by_id

Retrieve an endpoint in a PostHog project by id, or a specific version via the version query parameter. Returns: id, name, description, query, is_active, data_freshness_seconds, endpoint_path, url, ui_url, created_at, updated_at, created_by, is_materialized, current_version, version, version_id, and 13 more. Required: id and project_id. The id is the endpoint name, not its UUID.

list_all_post_hog_project_endpoints

List all endpoints for a PostHog project. Returns each endpoint's id, name, description, query, is_active, endpoint_path, and version details such as current_version and versions_count. Required: project_id.

post_hog_project_endpoints_list_logs

List execution logs for a PostHog project endpoint. Returns: status, PersonalAPIKeyAuth. Required: name, project_id. Defaults to the last 7 days of entries. The id is the endpoint name, not its UUID.

post_hog_project_endpoints_partial_update

Partially update an existing endpoint in a PostHog project. Returns the updated endpoint with id, name, query, is_active, endpoint_path, and current_version. Required: endpoint_id and project_id. The id is the endpoint name, not its UUID.

update_a_post_hog_project_endpoint_by_id

Update an existing endpoint in a PostHog project by id. Parameters are optional; pass version in the body or as the version query parameter to target a specific version. Returns: id, name, description, query, is_active, data_freshness_seconds, endpoint_path, url, ui_url, created_at, current_version, and 12 more. Required: id, project_id, name. The id is the endpoint name, not its UUID.

post_hog_project_evaluation_context_suggestions_bulk_delete

Restore a previously hidden evaluation context name to PostHog's flag editor suggestion list. Returns: success, name, hidden_from_suggestions. Required: organization_id, project_id, context_name. Flags already using the context are never modified.

create_a_post_hog_project_evaluation_context_suggestion

Hide an evaluation context name from PostHog's flag editor suggestion list. Returns: success, name, hidden_from_suggestions. Flags already using the context are never modified. Required: project_id, organization_id, id, context_name.

create_a_post_hog_project_evaluation_directory

Create a new evaluation directory in a PostHog project. Returns: id, name, created_at, updated_at, created_by, evaluation_count. Required: project_id, name.

delete_a_post_hog_project_evaluation_directory_by_id

Delete an evaluation directory in PostHog by its UUID id. Returns an empty 204 response on success. Required: id, project_id.

get_single_post_hog_project_evaluation_directory_by_id

Get a single evaluation directory in a PostHog project by id. Returns: id, name, created_at, updated_at, created_by, evaluation_count. Required: id, project_id.

list_all_post_hog_project_evaluation_directories

List evaluation directories in a PostHog project. Returns: id, name, created_at, updated_at, created_by, evaluation_count. Required: project_id.

update_a_post_hog_project_evaluation_directory_by_id

Partially update an evaluation directory in a PostHog project by id, e.g. to rename it. Returns: id, name, created_at, updated_at, created_by, evaluation_count. Required: id, project_id.

create_a_post_hog_project_evaluation_run

Create a PostHog evaluation run; the evaluation is validated and then executes asynchronously. Returns: workflow_id, status, evaluation, target_event_id. Required: project_id, evaluation_id, target_event_id, timestamp.

create_a_post_hog_project_evaluation

Create a new evaluation in a PostHog project. Returns the created evaluation including id, name, status, evaluation_type, output_type, created_at, and updated_at. Required: project_id, name, evaluation_type, output_type.

delete_a_post_hog_project_evaluation_by_id

Delete a PostHog evaluation by id. Upstream rejects hard deletes and Returns an empty 204 response on success. Required: project_id, id.

get_single_post_hog_project_evaluation_by_id

Get a single evaluation in a PostHog project by id. Returns the full evaluation object including id, name, status, evaluation_type, enabled, created_at, and updated_at. Required: project_id, id.

list_all_post_hog_project_evaluations

List evaluations in a PostHog project, filterable by directory, enabled status, evaluation type, and name or description search. Returns: count, next, previous, results, PersonalAPIKeyAuth. Required: project_id.

post_hog_project_evaluations_partial_update

Partially update an evaluation in a PostHog project, changing only the fields you send. Returns the updated evaluation including id, name, status, evaluation_type, updated_at, and deleted. Required: project_id, evaluation_id.

update_a_post_hog_project_evaluation_by_id

Update an existing evaluation in a PostHog project by its UUID id. Returns the updated evaluation including id, name, status, evaluation_type, output_type, and created_at. Required: id, project_id, name, evaluation_type, output_type.

create_a_post_hog_project_event_filter

Create or update the event filter config for a PostHog project. Returns: id, mode, filter_tree, test_cases, created_at, updated_at. Required: project_id.

get_single_post_hog_project_event_filter_by_id

Get the event filter config for a PostHog team by id. Returns: id, mode, filter_tree, test_cases, created_at, updated_at. Required: id. Returns null if the config has not been created yet.

list_all_post_hog_project_event_ingestion_restrictions

List event ingestion restrictions configured for a PostHog project. Returns: restriction_type, distinct_ids, session_ids, event_names, event_uuids, pipelines. Required: project_id, organization_id, id.

create_a_post_hog_project_event_schema

Create an event schema in a PostHog project. Returns: id, event_definition, property_group, created_at, updated_at. Required: project_id, event_definition, property_group_id.

delete_a_post_hog_project_event_schema_by_id

Delete an event schema in a PostHog project by id. Returns an empty 204 response on success. Required: id, project_id.

list_all_post_hog_project_event_schemas

List event schemas for a PostHog project. Returns: id, event_definition, property_group, created_at, updated_at. Required: project_id.

post_hog_project_event_schemas_partial_update

Partially update an event schema in a PostHog project. Returns: id, event_definition, property_group, created_at, updated_at. Required: project_id, event_schema_id.

update_a_post_hog_project_event_schema_by_id

Update an event schema in a PostHog project by id. Returns: id, event_definition, property_group, created_at, updated_at. Required: id, project_id, event_definition, property_group_id.

create_a_post_hog_project_event_stream

Create an event stream in PostHog — a live feed of selected accounts' events delivered to a Slack channel of your choice. Returns: id, enabled, event_names, slack_integration, slack_channel_id, slack_channel_name, account_ids, created_at, created_by, updated_at. Required: project_id. Each user owns at most one stream.

delete_a_post_hog_project_event_stream_by_id

Delete the caller's event stream in PostHog — a per-user live feed of selected accounts' events posted to a Slack channel. Returns an empty 204 response on success. Required: id, project_id.

list_all_post_hog_project_event_streams

List the caller's PostHog event streams for a project. Returns: id, enabled, event_names, slack_integration, slack_channel_id, slack_channel_name, account_ids, created_at, created_by, updated_at. Required: project_id.

post_hog_project_event_streams_partial_update

Partially update an event stream in PostHog, e.g. toggle it on or off or change the target Slack channel. Returns: id, enabled, event_names, slack_integration, slack_channel_id, slack_channel_name, account_ids, created_at, created_by, updated_at. Required: project_id, event_stream_id.

update_a_post_hog_project_event_stream_by_id

Fully update an event stream in PostHog by id. Returns: id, enabled, event_names, slack_integration, slack_channel_id, slack_channel_name, account_ids, created_at, created_by, updated_at. Required: id, project_id.

get_single_post_hog_project_event_by_id

Get a single PostHog event by id within a project. Returns the event record with its id and, when include_person is set, person details. Required: id, project_id.

get_single_post_hog_project_events_retention_by_id

Get a PostHog project's events retention window by id. Returns: organization_retention_months, plan_retention_months, min_retention_months, max_retention_months, retention_months, retained_from, docs_url, project_retention_months. Required: id.

update_a_post_hog_project_events_retention_by_id

Set a PostHog project's events retention window, overriding the organization's window; older events are deleted at the next monthly cleanup and can't be restored. Returns: organization_retention_months, retention_months, retained_from, project_retention_months, and 5 more. Required: project_id, retention_months. Organization admins only.

create_a_post_hog_project_experiment_holdout

Create a new experiment holdout in a PostHog project. Returns: id, name, description, filters, created_by, created_at, updated_at, user_access_level, PersonalAPIKeyAuth. Requires: project_id, name. Required: project_id, name.

delete_a_post_hog_project_experiment_holdout_by_id

Delete an experiment holdout in PostHog by id. Returns an empty 204 response on success. Required: id, project_id.

get_single_post_hog_project_experiment_holdout_by_id

Get a single experiment holdout in a PostHog project by id. Returns: id, name, description, filters, created_by, created_at, updated_at, user_access_level, PersonalAPIKeyAuth. Requires: id, project_id. Required: id, project_id.

list_all_post_hog_project_experiment_holdouts

List experiment holdouts in a PostHog project. Returns: id, name, description, filters, created_by, created_at, updated_at, user_access_level, PersonalAPIKeyAuth. Requires: project_id. Required: project_id.

post_hog_project_experiment_holdouts_partial_update

Partially update an experiment holdout in a PostHog project by id. Returns: id, name, description, filters, created_by, created_at, updated_at, user_access_level, status. Requires: project_id, experiment_holdout_id. Required: experiment_holdout_id, project_id.

update_a_post_hog_project_experiment_holdout_by_id

Update an experiment holdout in PostHog by id. Returns the updated holdout including id, name, description, filters, created_by, created_at, and user_access_level. Required: id, project_id, name.

create_a_post_hog_project_experiment_saved_metric

Create a saved experiment metric in PostHog. Returns: id, name, description, query, created_by, created_at, updated_at, tags, user_access_level, linked_experiments, PersonalAPIKeyAuth. Required: project_id, name, query.

delete_a_post_hog_project_experiment_saved_metric_by_id

Delete an experiment saved metric in a PostHog project by id. Returns an empty 204 response on success. Required: project_id and id.

get_single_post_hog_project_experiment_saved_metric_by_id

Get a single saved experiment metric by id. Returns: id, name, description, query, created_by, created_at, updated_at, tags, user_access_level, linked_experiments, PersonalAPIKeyAuth. Required: id, project_id.

list_all_post_hog_project_experiment_saved_metrics

List saved experiment metrics in a PostHog project, filterable by search term and event name. Returns: id, name, description, query, created_by, created_at, updated_at, tags, user_access_level, linked_experiments, PersonalAPIKeyAuth. Required: project_id.

post_hog_project_experiment_saved_metrics_partial_update

Partially update a saved experiment metric. Returns: id, name, description, query, created_by, created_at, updated_at, tags, user_access_level, linked_experiments, status. Required: project_id, experiment_saved_metric_id.

update_a_post_hog_project_experiment_saved_metric_by_id

Update a saved experiment metric in PostHog by id. Returns the updated metric with id, name, description, query, tags, created_by, created_at, and updated_at. Required: project_id, id, name, query.

post_hog_project_experiments_archive

Archive an ended PostHog experiment, hiding it from the default list view until restored. Returns: id, name, description, start_date, end_date, feature_flag_key, feature_flag, holdout, holdout_id, exposure_cohort, archived, status, 30 more. Required: experiment_id, project_id. Fails if the experiment is already archived or has not ended yet.

create_a_post_hog_project_experiment

Create a PostHog experiment in draft status with optional metrics. Returns: id, name, description, start_date, end_date, feature_flag_key, feature_flag, holdout, holdout_id, exposure_cohort, running_time_calculation, excluded_variants, secondary_metrics, saved_metrics, created_at, status, and 26 more. Required: project_id, name, feature_flag_key.

delete_a_post_hog_project_experiment_by_id

Delete a PostHog experiment by id. PostHog does not allow hard deletes for this object, so this sends PATCH with deleted=true (a soft delete); the experiment no longer appears in lists afterwards. Required: id, project_id.

post_hog_project_experiments_duplicate

Duplicate an existing PostHog experiment within the same project as a new experiment. Accepts an Experiment request body. Returns no response body on success. Required: experiment_id, project_id, name, feature_flag_key.

get_single_post_hog_project_experiment_by_id

Get a single PostHog experiment by id, including its current status, metrics, feature flag, and results metadata. Returns: id, name, description, start_date, end_date, feature_flag_key, feature_flag, holdout, holdout_id, exposure_cohort, running_time_calculation, created_at, updated_at, status, and 28 more. Required: project_id, id.

list_all_post_hog_project_experiments

List PostHog experiments in a project, with filters for status, archived state, tags, and free-text search. Returns: id, name, description, start_date, end_date, feature_flag_key, feature_flag, holdout, holdout_id, exposure_cohort, running_time_calculation, excluded_variants, secondary_metrics, created_at, status, and 27 more. Required: project_id.

post_hog_project_experiments_list_activity

List the change history for a PostHog experiment — a paginated audit trail of who changed what (with field-level before/after values) and when, ordered newest first. Returns: results, next, previous, total_count. Required: experiment_id, project_id.

post_hog_project_experiments_partial_update

Update a PostHog experiment's name, description, metrics, variants, and configuration; feature-flag config (variants, rollout, payloads) is sent via the feature_flag object. Returns the updated experiment: id, name, status, feature_flag_key, updated_at. Required: project_id, experiment_id.

post_hog_project_experiments_pause

Pause a running PostHog experiment by deactivating its linked feature flag: users fall back to the application default and no new exposure events are recorded. Returns the updated experiment: id, name, status, start_date, end_date. Returns 400 if the experiment is not running or is already paused. Required: experiment_id, project_id.

post_hog_project_experiments_reset

Reset a PostHog experiment back to draft state, clearing its start/end dates, conclusion, and archived flag while leaving the linked feature flag unchanged. Returns the updated experiment: id, name, status, start_date, end_date. Returns 400 if the experiment is already in draft state. Required: experiment_id, project_id.

post_hog_project_experiments_resume

Resume a paused PostHog experiment. Reactivates its linked feature flag so /decide serves it again; users are re-bucketed into the same variants they had before the pause and exposure tracking resumes. Returns: id, name, start_date, and 40 more. Returns 400 if the experiment is not running or not paused. Required: experiment_id, project_id.

update_a_post_hog_project_experiment_by_id

Update a PostHog experiment in a project. Returns the updated experiment with id, name, feature_flag_key, status, created_at, and updated_at. Required: project_id, id, name, feature_flag_key.

post_hog_project_experiments_configs_bulk_update

Update the experiment configuration for a PostHog project in one call. Returns the updated project object including its id, name, organization, tags, timezone, and session_recording settings. Required: organization_id, project_id.

get_single_post_hog_project_experiments_config_by_id

Get the experiment configuration for a PostHog project by id. Returns the project object including its id, name, organization, api_token, and created_at. Required: id, organization_id.

create_a_post_hog_project_export

Create an exported asset for a dashboard or insight in a PostHog project. Returns: id, dashboard, insight, export_format, created_at, has_content, export_context, filename, expires_after, exception, user_access_level. Required: project_id, export_format.

get_single_post_hog_project_export_by_id

Get a single exported asset by id in a PostHog project. Returns: id, dashboard, insight, export_format, created_at, has_content, export_context, filename, expires_after, exception, user_access_level. Required: id, project_id.

list_all_post_hog_project_exports

List exported assets in a PostHog project. Returns: id, dashboard, insight, export_format, created_at, has_content, export_context, filename, expires_after, exception, user_access_level. Required: project_id.

create_a_post_hog_project_external_data_destination

Create a PostHog external data destination defining where warehouse sources write their synced rows. Returns: id, type, name, config, integration, is_posthog_warehouse, created_at, created_by, updated_at, synced_sources, status, latest_error, latest_error_at. Required: project_id, type, name.

delete_a_post_hog_project_external_data_destination_by_id

Soft-delete a PostHog external data destination by id and detach it from everything that syncs to it; in-flight runs keep their own snapshot, so they finish uninterrupted and the next run of each affected table resolves without it. Returns an empty 204 response on success. Required: id, project_id.

get_single_post_hog_project_external_data_destination_by_id

Get a single PostHog external data destination by id. Returns: id, type, name, config, integration, is_posthog_warehouse, created_at, created_by, updated_at, synced_sources, status, latest_error, latest_error_at. Required: id and project_id.

list_all_post_hog_project_external_data_destinations

List external data destinations in a PostHog project that define where warehouse sources write their synced rows. Returns: id, type, name, config, integration, is_posthog_warehouse, created_at, created_by, updated_at, synced_sources, status, latest_error, latest_error_at. Required: project_id.

post_hog_project_external_data_destinations_partial_update

Partially update a PostHog external data destination, changing only the provided fields. Returns: id, type, name, config, integration, is_posthog_warehouse, created_at, created_by, updated_at, synced_sources, status, latest_error, latest_error_at. Required: project_id and external_data_destination_id.

update_a_post_hog_project_external_data_destination_by_id

Fully update a PostHog external data destination by id. Returns: id, type, name, config, integration, is_posthog_warehouse, created_at, created_by, updated_at, synced_sources, status, latest_error, latest_error_at. Required: id, project_id, type, name.

post_hog_project_external_data_schemas_cancel

Cancel the running sync for an external data schema in a PostHog project. Returns a detail message describing the cancellation outcome, including when a stuck Running status is corrected instead. Fails if no sync is running or the sync already finished. Required: external_data_schema_id, project_id.

delete_a_post_hog_project_external_data_schema_by_id

Delete an external data schema by id in a PostHog project. Returns an empty 204 response on success. Required: id, project_id.

get_single_post_hog_project_external_data_schema_by_id

Get a single external data schema in PostHog by id. Returns: id, name, label, table, table_id, should_sync, last_synced_at, latest_error, incremental, status, pending_self_managed_table, sync_type, incremental_field, incremental_field_type, incremental_field_lookback_seconds, sync_frequency, source, and 18 more. Required: id, project_id.

list_all_post_hog_project_external_data_schemas

List external data schemas for a PostHog project, optionally filtered by a search term. Returns: id, name, label, table, table_id, should_sync, last_synced_at, latest_error, incremental, status, pending_self_managed_table, sync_type, incremental_field, incremental_field_type, sync_frequency, source, and 19 more. Required: project_id.

post_hog_project_external_data_schemas_partial_update

Partially update an external data schema in PostHog, such as its should_sync flag, sync_type, sync_frequency, or row_filters. Returns the updated schema including id, status, sync_frequency, and next_full_refresh_at. Required: external_data_schema_id, project_id.

update_a_post_hog_project_external_data_schema_by_id

Update a PostHog external data schema by id, adjusting its sync configuration such as sync_type, sync_frequency, incremental_field, or row_filters. Returns: id, name, label, table, table_id, should_sync, last_synced_at, latest_error, incremental, status, pending_self_managed_table, sync_type, and 22 more. Required: id, project_id.

create_a_post_hog_project_external_data_source

Create a new external data source in a PostHog project. Returns the created source's id. Required: project_id, source_type, and payload.

delete_a_post_hog_project_external_data_source_by_id

Delete an external data source in PostHog by id. Returns an empty 204 response on success. Required: id, project_id.

get_single_post_hog_project_external_data_source_by_id

Get an external data source by id in a PostHog project. Returns: id, created_at, created_by, created_via, status, source_type, latest_error, prefix, description, access_method, direct_query_enabled, auto_sync_new_schemas, engine, last_run_at, schemas, api_version_deprecation, connection_warning, and 9 more. Required: id, project_id.

list_all_post_hog_project_external_data_sources

List external data sources in a PostHog project. Returns each source's id, created_at, status, source_type, access_method, engine, and schemas. Required: project_id.

post_hog_project_external_data_sources_partial_update

Partially update an external data source in a PostHog project. Returns the updated source including id, status, source_type, engine, and schemas. Required: external_data_source_id, project_id.

update_a_post_hog_project_external_data_source_by_id

Update an external data source in PostHog by id. Returns the updated source including id, status, source_type, engine, schemas, and last_run_at. Required: project_id, id, client_secret, account_id.

list_all_post_hog_project_feature_flag_request_usages

List feature flag request usage for a PostHog project. Returns: results. Required: project_id, date_from, date_to. Hourly bucketing is limited to 8 days.

post_hog_project_feature_flags_archive

Archive a PostHog feature flag, hiding it from the default flag list; an enabled flag is also disabled (active set to false) in the same write, with targeting, variants and payloads left intact. Returns the updated flag: id, archived, active, deleted. Refused when another active flag depends on it. Required: flag_id, project_id.

create_a_post_hog_project_feature_flag

Create a feature flag in a PostHog project. Returns the created flag including its id, key, name, filters, active, and created_at. Required: project_id.

delete_a_post_hog_project_feature_flag_by_id

Delete a PostHog feature flag by id. PostHog does not allow hard deletes for this object, so this sends PATCH with deleted=true (a soft delete); the feature flag no longer appears in lists afterwards. Required: id, project_id.

post_hog_project_feature_flags_disable

Disable a feature flag in a PostHog project, setting active to false while preserving targeting, variants, payloads, and tags. Returns the updated flag including id, key, active, version, and filters. Flags using config version 2 require version; a stale version is refused with 409. Required: flag_id, project_id.

post_hog_project_feature_flags_enable

Enable a feature flag in a PostHog project, setting active to true while preserving targeting, variants, payloads, and tags. Returns the updated flag including id, key, active, version, and filters. Archived flags are refused (unarchive first); flags using config version 2 require version. Required: flag_id, project_id.

get_single_post_hog_project_feature_flag_by_id

Get a single PostHog feature flag by id. Returns the flag including id, name, key, filters, active, and status. Required: project_id, id.

list_all_post_hog_project_feature_flags

List PostHog feature flags in a project. Returns each flag's id, name, key, filters, active, status, and tags. Required: project_id.

post_hog_project_feature_flags_partial_update

Partially update a PostHog feature flag, modifying only the fields supplied in the request body. Returns the updated flag including id, name, key, filters, active, and status. Required: project_id, feature_flag_id.

update_a_post_hog_project_feature_flag_by_id

Update a PostHog feature flag by id with a full replacement. Returns the updated flag including id, name, key, filters, active, and status. Required: project_id, id, key.

create_a_post_hog_project_feature_request_product_area

Create a feature request product area in a PostHog project. Returns: id, name, display_order, is_active, created_at, updated_at. Required: project_id, name.

list_all_post_hog_project_feature_request_product_areas

List feature request product areas in a PostHog project. Returns: id, name, display_order, is_active, created_at, updated_at. Required: project_id.

post_hog_project_feature_request_product_areas_partial_update

Partially update a feature request product area in a PostHog project. Returns: id, name, display_order, is_active, created_at, updated_at. Required: project_id, feature_request_product_area_id.

update_a_post_hog_project_feature_request_product_area_by_id

Update a feature request product area in a PostHog project by id. Returns: id, name, display_order, is_active, created_at, updated_at. Required: id, project_id, name.

post_hog_project_feature_requests_archive

Archive a PostHog feature request by id. Returns: id, title, description, request_status, request_priority, is_archived, archived_at, archived_by, version, can_update, account, account_links, evidence_count, product_areas, github_link, created_by, updated_by, created_at, updated_at. Required: project_id, feature_request_id, expected_version.

create_a_post_hog_project_feature_request

Create a feature request in PostHog. Returns the created request with id, title, request_status, account, and evidence_count. Required: project_id, title, account_id, product_area_ids, idempotency_key.

get_single_post_hog_project_feature_request_by_id

Get a single PostHog feature request by id. Returns: id, title, description, request_status, request_priority, is_archived, archived_at, archived_by, version, can_update, account, account_links, evidence_count, product_areas, github_link, created_by, updated_by, created_at, updated_at. Required: project_id, id.

list_all_post_hog_project_feature_requests

List feature requests in a PostHog project, filterable by status, priority, archive state, and text search. Returns: id, title, request_status, request_priority, account_links, evidence_count, product_areas, created_at. Required: project_id.

post_hog_project_feature_requests_partial_update

Partially update a PostHog feature request, editing its title, description, status, priority, and linked accounts. Returns: id, title, description, request_status, request_priority, is_archived, archived_at, archived_by, version, can_update, account, account_links, product_areas, updated_at, and 6 more. Required: project_id, feature_request_id.

post_hog_project_feature_requests_restore

Restore a feature request in PostHog. Returns the restored feature request including its id, title, description, request_status, request_priority, and version. Required: project_id, feature_request_id, expected_version.

update_a_post_hog_project_feature_request_by_id

Update an existing feature request in PostHog by id. Returns the updated feature request including its id, title, description, request_status, request_priority, and version. Required: id, project_id, expected_version.

create_a_post_hog_project_field_note

Create a PostHog toolbar field note — UI feedback a user points at on their own site. Returns: id, comment, field_note_status, resolution, url, host, pathname, selector, element_text, element_chain, element_context, viewport, screenshot_url, created_at, updated_at, created_by, PersonalAPIKeyAuth. Required: project_id, comment, url, host, selector.

delete_a_post_hog_project_field_note_by_id

Delete a PostHog field note (UI feedback a user pointed at on their site) by id. Returns an empty 204 response on success. Required: id, project_id.

get_single_post_hog_project_field_note_by_id

Get a PostHog toolbar field note by id. Returns: id, comment, field_note_status, resolution, url, host, pathname, selector, element_text, element_chain, element_context, viewport, screenshot_url, created_at, updated_at, created_by, PersonalAPIKeyAuth. Required: id, project_id.

list_all_post_hog_project_field_notes

List PostHog toolbar field notes for a project. Returns field notes with: id, comment, field_note_status, url, host, selector, created_at. Filterable by field_note_status and host. Required: project_id.

post_hog_project_field_notes_partial_update

Update a PostHog toolbar field note, e.g. change its comment, field_note_status, or resolution. Returns: id, comment, field_note_status, resolution, url, host, pathname, selector, element_text, element_chain, element_context, viewport, screenshot_url, created_at, updated_at, created_by, status. Required: field_note_id, project_id.

update_a_post_hog_project_field_note_by_id

Update a PostHog toolbar field note by id (UUID). Returns the updated field note: id, comment, field_note_status, resolution, url, host, pathname, selector, element_text, element_chain, element_context, viewport, screenshot_url, created_at, updated_at, created_by. Required: id, project_id.

post_hog_project_file_download_batch_exports_cancel

Cancel an ongoing file-download batch export in PostHog. Returns an empty 204 response on success. Required: batch_export_id, project_id.

create_a_post_hog_project_file_download_batch_export

Create and start a batch export on demand run in PostHog to download a file. Returns: id. Required: project_id, file, model.

get_single_post_hog_project_file_download_batch_export_by_id

Get a batch export on demand run in PostHog by id. Once the run completes, keys to the generated file downloads are returned. Returns: status, files, records_completed, error. Required: project_id, id.

list_all_post_hog_project_file_download_batch_exports

List batch export on demand runs for file downloads in PostHog. Returns: status, files, records_completed, error, id. Required: project_id.

create_a_post_hog_project_file_system_shortcut

Create a file system shortcut in a PostHog project. Returns the shortcut object including id, path, type, ref, href, order, created_at, and user_access_level. Requires project_id and path. If the user already has this shortcut, the existing one is returned unchanged. Required: project_id, path.

delete_a_post_hog_project_file_system_shortcut_by_id

Delete a file system shortcut in a PostHog project by its UUID id. Returns an empty 204 response on success. Required: project_id, id.

get_single_post_hog_project_file_system_shortcut_by_id

Get a single PostHog file system shortcut by id within a project. Returns: id, path, type, ref, href, order, created_at, user_access_level. Required: id, project_id.

list_all_post_hog_project_file_system_shortcuts

List file system shortcuts in a PostHog project. Returns each shortcut with id, path, type, ref, href, order, created_at, and user_access_level. Required: project_id.

post_hog_project_file_system_shortcuts_partial_update

Partially update a PostHog file system shortcut, changing only the fields you send (path, type, ref, href, order). Returns the updated shortcut with id, path, type, ref, href, order, created_at, and user_access_level. Required: file_system_shortcut_id and project_id.

update_a_post_hog_project_file_system_shortcut_by_id

Update a file system shortcut in a PostHog project. Returns the updated shortcut including id, path, type, ref, href, order, created_at, and user_access_level. Required: id, project_id, path.

create_a_post_hog_project_file_system

Create a new file system entry in a PostHog project. Returns: id, path, depth, type, ref, href, meta, shortcut, created_at, created_by, last_viewed_at, user_access_level. Required: project_id, path.

delete_a_post_hog_project_file_system_by_id

Delete a file or folder entry from a PostHog project's file system by id. Returns an empty 204 response on success. Required: id, project_id. Folders are deleted recursively by default; set recursive=false to delete only empty folders, since deleting a nonempty folder with recursive=false fails with directory_not_empty.

get_single_post_hog_project_file_system_by_id

Get a single file system entry by id in a PostHog project. Returns: id, path, depth, type, ref, href, meta, shortcut, created_at, created_by, last_viewed_at, user_access_level. Required: project_id, id.

list_all_post_hog_project_file_systems

List file system entries in a PostHog project. Returns: id, path, depth, type, ref, href, meta, shortcut, created_at, created_by, last_viewed_at, user_access_level. Required: project_id.

post_hog_project_file_systems_partial_update

Partially update a file system entry in a PostHog project. Returns: id, path, depth, type, ref, href, meta, shortcut, created_at, created_by, last_viewed_at, user_access_level. Required: project_id, file_system_id.

post_hog_project_file_systems_search

Search a PostHog project's file system entries by relevance, ranking matches by words matched, typos, word proximity, and recency. Returns: results, matched_all_words, matched_words, type_counts, matched_with_typos, counts_capped. Required: project_id, search. Max 100 results per page.

update_a_post_hog_project_file_system_by_id

Update a file system entry in a PostHog project by id. Returns: id, path, depth, type, ref, href, meta, shortcut, created_at, created_by, last_viewed_at, user_access_level. Required: id, project_id, path.

create_a_post_hog_project_generate_conversations_public_token

Generate a conversations public token for a project in PostHog. Returns the project object including id, organization, name, api_token, live_events_token, created_at, and updated_at. Required: project_id, organization_id, id.

get_single_post_hog_project_health_issue_by_id

Get a single PostHog health issue by id, including the owning check's rendered title, summary, deep link, and remediation guidance. Returns: id, kind, severity, status, dismissed, snoozed_until, payload, created_at, updated_at, resolved_at, title, summary, link, remediation, PersonalAPIKeyAuth. Required: id, project_id.

list_all_post_hog_project_health_issues

List health issues detected across a PostHog project's health checks (outdated SDKs, sync failures, missing events). Returns: id, kind, severity, status, dismissed, snoozed_until, payload, created_at, updated_at, resolved_at, title, summary, link, remediation, and 1 more. Required: project_id. Filterable by status, severity, kind, and dismissed.

update_a_post_hog_project_health_issue_by_id

Update a PostHog health issue by id, e.g. to dismiss it or set a snooze. Returns: id, kind, severity, status, dismissed, snoozed_until, payload, created_at, updated_at, resolved_at, PersonalAPIKeyAuth. Required: id, project_id.

list_all_post_hog_project_heatmaps

List aggregated heatmap interactions for pages in a PostHog project. Returns point results with x, y, and count for the click, rageclick, and mousemove types, or scroll-depth buckets for type=scrolldepth. Required: project_id. Heatmap data is retained for 90 days.

create_a_post_hog_project_hog_flow

Create a Hog Flow workflow in a PostHog project. Returns the created flow with id, name, status, trigger, actions, and schedules. Required: project_id, actions.

delete_a_post_hog_project_hog_flow_by_id

Delete a hog flow in PostHog by its UUID id. Returns an empty 204 response on success. Required: id, project_id.

get_single_post_hog_project_hog_flow_by_id

Get a single Hog Flow by id in a PostHog project. Returns the full workflow including id, name, status, trigger, actions, and last_run. Required: project_id, id.

list_all_post_hog_project_hog_flows

List Hog Flow workflows in a PostHog project. Returns: id, name, description, tags, version, status, origin_product, created_at, created_by, updated_at, trigger, trigger_masking, conversion, exit_condition, email_sending_rate_limit, edges, actions, abort_action, variables, billable_action_types, schedules, and 10 more. Required: project_id.

post_hog_project_hog_flows_partial_update

Partially update a Hog Flow workflow in a PostHog project. Returns the updated flow with id, name, status, trigger, and actions. Required: project_id, hog_flow_id.

post_hog_project_hog_flows_publish

Publish a Hog flow in PostHog. Returns: published, in_flight_runs, draft_updated_at, confirm_token, impact, workflow. Required: hog_flow_id, project_id.

update_a_post_hog_project_hog_flow_by_id

Update a Hog flow in PostHog by id. Returns: id, name, description, tags, version, status, origin_product, created_at, created_by, updated_at, trigger, trigger_masking, conversion, exit_condition, email_sending_rate_limit, edges, actions, abort_action, variables, draft_updated_at, and 11 more. Required: id, project_id, actions.

get_single_post_hog_project_hog_function_template_by_id

Get a PostHog hog function template by id within a project. Returns: id, name, description, code, code_language, inputs_schema, type, status, category, free, icon_url, filters, masking, mapping_templates. Deprecated templates remain retrievable here even though list results exclude them. Required: id, project_id, template_id.

list_all_post_hog_project_hog_function_templates

List PostHog hog function templates in a project. Returns: id, name, description, code, code_language, inputs_schema, type, status, category, free, icon_url, filters, masking, mapping_templates. Required: project_id. Deprecated templates are excluded from results; defaults to destination type when no type or types filter is given.

create_a_post_hog_project_hog_function

Create a Hog Function in a PostHog project. Returns the created function including its id, name, type, enabled, hog, and created_at. Required: project_id.

delete_a_post_hog_project_hog_function_by_id

Delete a PostHog hog function by id. PostHog does not allow hard deletes for this object, so this sends PATCH with deleted=true (a soft delete); the hog function no longer appears in lists afterwards. Required: id, project_id.

get_single_post_hog_project_hog_function_by_id

Get a Hog Function by id in a PostHog project. Returns the function including its id, name, type, enabled, hog, and updated_at. Required: project_id, id.

list_all_post_hog_project_hog_functions

List Hog Functions in a PostHog project, filterable by type, enabled status, creator, and timestamps. Returns each function's id, name, type, enabled, created_at, and updated_at. Required: project_id.

post_hog_project_hog_functions_partial_update

Partially update a Hog Function in a PostHog project. Returns the updated function including its id, name, type, enabled, hog, and updated_at. Required: project_id, hog_function_id.

post_hog_project_hog_functions_publish

Publish a hog function in PostHog, deploying its current version. Returns: published, draft_updated_at, confirm_token, changed_fields, function, PersonalAPIKeyAuth. Required: hog_function_id, project_id, id.

update_a_post_hog_project_hog_function_by_id

Update a hog function in PostHog, including its code and configuration. Returns the updated function object with id, name, enabled, hog, bytecode, inputs, status, and version. Required: id, project_id.

list_all_post_hog_project_ingestion_warnings_v_2_s

List PostHog project ingestion warnings grouped by warning type, covering events or person/group updates ingested with problems. Returns: type, category, severity, count, last_seen, sparkline, samples, PersonalAPIKeyAuth. Required: project_id. Warnings are retained for 90 days.

get_single_post_hog_project_is_generating_demo_data_by_id

Get a PostHog project's demo data generation status by id. Returns the project record including id, name, is_demo, and created_at. Required: organization_id, id.

post_hog_project_logs_configs_bulk_update

Update the logs product configuration for a PostHog project's canonical environment. Returns: logs_distinct_id_attribute_key, logs_distinct_id_attribute_keys, logs_session_id_attribute_keys, logs_pattern_message_keys. Required: organization_id, project_id.

get_single_post_hog_project_logs_config_by_id

Get the logs product configuration for a PostHog project's canonical environment. Returns: logs_distinct_id_attribute_key, logs_distinct_id_attribute_keys, logs_session_id_attribute_keys, logs_pattern_message_keys. Required: id, organization_id.

post_hog_project_reset_tokens_bulk_update

Reset the API token for a PostHog project in the specified organization. Returns the updated project object including id, api_token, live_events_token, organization, and name. Required: organization_id, project_id.

post_hog_project_rotate_heatmaps_screenshot_secrets_bulk_update

Rotate the heatmaps screenshot secret for a project in PostHog, invalidating previously captured screenshot access. Returns a confirmation object with a status field; the upstream spec declares the response as a backward-compatible project object but does not enumerate its fields. Required: organization_id, project_id.

post_hog_project_rotate_secret_tokens_bulk_update

Rotate (roll) the secret API token for a PostHog project, replacing the previous token. Returns the updated project including id, name, api_token, live_events_token, created_at, and updated_at. Required: organization_id, project_id.

get_single_post_hog_project_settings_as_of_by_id

Get a PostHog project's settings as of a given timestamp. Returns the project settings object including id, name, organization, api_token, timezone, and created_at. Required: id, organization_id, at.

post_hog_project_tracing_configs_bulk_update

Update tracing product configuration for a PostHog project's canonical environment, such as tracing attribute keys and retention days. Returns: tracing_distinct_id_attribute_keys, tracing_session_id_attribute_keys, retention_days, retention_last_updated. Required: organization_id, project_id.

get_single_post_hog_project_tracing_config_by_id

Get tracing product configuration for a PostHog project's canonical environment by id. Returns: tracing_distinct_id_attribute_keys, tracing_session_id_attribute_keys, retention_days, retention_last_updated. Required: id, organization_id.

list_all_post_hog_projects_comments

List comments for a PostHog project. Returns each comment with its id, content, scope, created_by, version, and created_at. Required: project_id.

create_a_post_hog_proposal_apply

Apply a reviewed wiki edit in the PostHog context wiki. Returns the context-layer status object (status, e.g. "Ok"). Required: organization_id, proposal_id.

get_single_post_hog_proposal_outcome_by_id

Get the outcome of a workflow proposal in a PostHog hog flow: what the change did to the target metric and its counter-metrics, before and after. Returns: versions, before, after, change_ended_at_version, unavailable_guardrails, PersonalAPIKeyAuth. Required: id, hog_flow_id, project_id, proposal_id.

create_a_post_hog_proxy_record_diagnosis

Run a deep diagnostic on a PostHog reverse proxy, checking DNS CNAME alignment, certificate provider hostname state, CAA records, HTTP-01 challenge reachability, a live event probe, and certificate expiry. Returns the structured diagnostic report (status plus concrete remediation steps per check). Required: proxy_record_id, organization_id.

create_a_post_hog_quarantine_request

Request quarantine, extension, or unquarantine of a flaky test in PostHog. Opens a pull request editing the repo's checked-in .test_quarantine.json (plus a tracking issue for a new quarantine). Returns: pr_url, issue_url, branch. Required: project_id, operation, selector. Quarantines only affect CI runs starting after the PR merges.

create_a_post_hog_query_issue_event

List sampled exception events for a PostHog error tracking issue, including stack traces, browser/SDK context, URLs, and session ids. Returns: results, hasMore, limit, offset, nextOffset. Required: project_id, issueId. Read-only query sent as a POST.

create_a_post_hog_query_issue

Fetch compact error tracking issue details in PostHog with impact counts, trend, top in-app frame, and first/latest release. Returns: id, name, description, status, severity, first_seen, last_seen, assignee, aggregations, function, top_in_app_frame, latest_release, impact, trend, sparkline, breakdown, and 6 more. Required: project_id, issueId.

create_a_post_hog_query_issues_query

List compact error tracking issues in a PostHog project with typed filters and aggregate counts. Returns: results, hasMore, limit, offset, nextOffset. Required: project_id.

create_a_post_hog_queue_clear

Clear the message queue of a PostHog AI conversation. Returns a status acknowledgement (status: "Ok") on success. Required: project_id, conversation.

create_a_post_hog_recommendation_dismise

Dismiss an error tracking recommendation in PostHog. Returns the recommendation record with id, created_at, and updated_at. Required: project_id, recommendation_id.

create_a_post_hog_recommendation_refresh

Recompute and refresh an error tracking recommendation in PostHog. Returns the refreshed recommendation record with its schema-specific fields (id plus recommendation attributes). Required: project_id, recommendation_id.

list_all_post_hog_recommendations_source_maps_examples

List files and builds whose recent stack frames are missing source maps or debug symbols in PostHog error tracking, with the reason and frame counts for each. Returns: platform, lookback_hours, exceptions_loaded, results. Required: platform, project_id.

create_a_post_hog_relationship_end

End a relationship on a PostHog account, marking the active assignment as ended. Returns the ended relationship record with its id, created_at, and updated_at. Required: project_id, account_id, relationship_id.

create_a_post_hog_relationship_proposal_accept

Accept a data catalog relationship proposal in PostHog, promoting it to a real warehouse join after re-validating and probing it. Returns: id, source_table_name, source_table_key, joining_table_name, joining_table_key, field_name, status, reviewed_by, created_join, created_at, and 8 more. Required: relationship_proposal_id, project_id.

get_single_post_hog_releases_hash_by_id

Get a specific error tracking release hash by its id in a PostHog project. Returns an empty 204 response on success. Required: id, project_id, hash_id.

create_a_post_hog_repositories_connect

Connect a GitHub installation to business knowledge for a PostHog project. Returns: connected, integration_id, integration_name, repos. Required: project_id, integration_id. Switching installations clears the selected repositories.

create_a_post_hog_repositories_disconnect

Disconnect GitHub from business knowledge in a PostHog project. Clears the stored GitHub installation and the selected repositories for this environment. Returns: connected, integration_id, integration_name, repos. Required: project_id.

get_single_post_hog_repositories_file_by_id

Read a file from a selected GitHub repository in PostHog business knowledge. Returns: repo, path, url, content, truncated. Required: id, path, repo.

create_a_post_hog_repositories_selection

Replace the repositories PostHog business knowledge can read for a project. Returns the repository connection including connected, integration_id, integration_name, and repos. Required: project_id, repos.

get_single_post_hog_repositories_status_by_id

Get the GitHub repositories connected to business knowledge in PostHog. Returns: connected, integration_id, integration_name, repos. Required: id.

get_single_post_hog_result_payload_by_id

Retrieve the payload for a PostHog AI observability offline experiment result. Returns: id, payload_state, payload_expires_at, available, data, PersonalAPIKeyAuth. Required: id, offline_experiment_id, project_id, result_id.

get_single_post_hog_role_external_references_lookup_by_id

Look up a role's external reference in a PostHog organization. Returns the matching reference under the reference field (null when none exists), including its id, provider, provider_organization_id, provider_role_id, provider_role_slug, provider_role_name, role, created_at, and created_by. Required: id, provider, provider_organization_id.

create_a_post_hog_role_role_membership

Add a user to a role in a PostHog organization. Returns the created role membership with id, role_id, organization_member, user, joined_at, and updated_at. Required: organization_id, role_id, user_uuid.

delete_a_post_hog_role_role_membership_by_id

Delete a role membership by id from a PostHog role. Returns an empty 204 response on success. Required: organization_id, role_id, id.

get_single_post_hog_role_role_membership_by_id

Get a single PostHog role membership by id within an organization and role. Returns: id, role_id, organization_member, user, joined_at, updated_at. Required: organization_id, role_id, id.

list_all_post_hog_role_role_memberships

List role memberships for a PostHog role in an organization. Returns memberships with id, role_id, organization_member, user, joined_at, and updated_at. Required: organization_id, role_id.

get_single_post_hog_run_by_id

Get a single PostHog autoresearch run for a pipeline by id. Returns: id, pipeline, model, run_type, status, rows_scored, metrics, coverage, error, started_at, completed_at, created_at. Required: id, project_id, pipeline_id.

list_all_post_hog_runs

List inference and validation runs for a PostHog autoresearch pipeline. Returns: id, pipeline, model, run_type, status, rows_scored, metrics, coverage, error, started_at, completed_at, created_at. Required: project_id, pipeline_id.

list_all_post_hog_scim_logs

List SCIM request logs for a PostHog domain. Returns: id, request_path, request_method, response_status, identity_provider, duration_ms, created_at. Max 100 per page. Required: domain_id, organization_id.

list_all_post_hog_scim_logs_scim

List PostHog SCIM request logs for an identity provider config within an organization. Returns each log entry with id, request_method, request_path, response_status, duration_ms, and created_at. Required: organization_id, identity_provider_config_id.

create_a_post_hog_scim_token

Regenerate the SCIM bearer token for an identity provider config in PostHog. Returns the regenerated SCIM bearer token. Required: identity_provider_config_id, organization_id.

create_a_post_hog_score

Start scoring a PostHog autoresearch pipeline's inference population. Scoring runs in the background; the run is returned immediately with status running — poll until completed or failed. Fails if the pipeline has no champion model or is paused. Returns: id, pipeline, model, status, created_at, and 8 more. Required: pipeline_id, project_id.

list_all_post_hog_search_business_knowledge_documents

Search PostHog business knowledge documents using a natural-language query (hybrid semantic + full-text retrieval). Returns ranked chunks with: chunk_id, document_title, heading_path, content, source_name, and url. Required: query, project_id. Limit defaults to 10, capped at 20.

list_all_post_hog_settings_retrieve_settings

Retrieve error tracking settings for a PostHog project. Returns: project_rate_limit_value, project_rate_limit_bucket_size_minutes, per_issue_rate_limit_value, per_issue_rate_limit_bucket_size_minutes, ingestion_enabled. Required: project_id.

post_hog_settings_update_settings_bulk_update

Update error tracking settings for a PostHog project. Partially updates rate-limit values and the ingestion toggle. Returns: project_rate_limit_value, project_rate_limit_bucket_size_minutes, per_issue_rate_limit_value, per_issue_rate_limit_bucket_size_minutes, ingestion_enabled. Required: project_id.

post_hog_severity_rules_reorders_bulk_update

Reorder error tracking severity rules in a PostHog project by submitting a JSON reorder payload (its fields are defined by the upstream PatchedErrorTrackingSeverityRuleReorderRequest schema, which the API docs do not enumerate). Returns an empty 204 response on success. Required: project_id.

create_a_post_hog_sharing_password

Create a new password for a PostHog insight's sharing configuration. Returns the sharing configuration: access_token, enabled, settings, password_required, created_at. Required: insight_id, project_id, dashboard_id.

delete_a_post_hog_sharing_password_by_id

Delete a password from a PostHog insight's sharing configuration. Returns an empty 204 response on success. Required: id, project_id, insight_id, dashboard_id, password_id.

create_a_post_hog_sharing_passwords_sharing

Create a new password for the sharing configuration of a PostHog notebook. Returns: created_at, enabled, access_token, settings, password_required, share_passwords, user_access_level, has_relevant_access_controls. Required: project_id, notebook_id.

delete_a_post_hog_sharing_passwords_sharing_by_id

Delete a password from the sharing configuration of a PostHog notebook. Returns an empty 204 response on success. Required: id, notebook_id, project_id.

create_a_post_hog_sharing_refresh

Refresh the sharing configuration for a PostHog insight. Returns: created_at, enabled, access_token, settings, password_required, share_passwords, user_access_level, has_relevant_access_controls. Required: insight_id, project_id, dashboard_id.

create_a_post_hog_sharing_refreshes_refresh

Refresh the sharing configuration for a PostHog notebook, regenerating its access token. Returns: created_at, enabled, access_token, settings, password_required, share_passwords, user_access_level, has_relevant_access_controls. Required: project_id, notebook_id.

list_all_post_hog_source_documents

List documents belonging to a business knowledge source in PostHog. Returns: id, url, title, safety_verdict. Required: source_id, project_id.

create_a_post_hog_source_refresh

Trigger a refresh of a business knowledge source in PostHog to re-fetch its content. Returns: id, team_id, name, source_type, is_generated, status, document_count, chunk_count, last_refresh_at, last_refresh_status, refresh_interval, next_refresh_at, embedding_status, crawl_mode, library_ids, and 13 more. Required: source_id, project_id, id.

get_single_post_hog_source_text_by_id

Get the text content of a business knowledge source in PostHog. Returns the source's extracted text as a single text field — this endpoint returns only the raw text, not the full source object. Required: id, project_id.

get_single_post_hog_sources_availability_by_id

Check whether a PostHog project has business knowledge content. Returns: has_sources, has_repositories, PersonalAPIKeyAuth. Required: id.

get_single_post_hog_spend_export_by_id

Export an organization's spend as a CSV file in PostHog. Returns a CSV download whose columns depend on the requested breakdowns, date range, and usage-type filters. Required: id. In beta: answers 403 without the organization-billing-api feature flag.

list_all_post_hog_spend_exports

Download the PostHog spend breakdown as a CSV file, honouring the requested project cap. Returns a CSV download whose columns depend on the requested breakdowns, date range, and usage-type filters. No required parameters.

post_hog_spend_exports_spend_export

Export a project's share of spend as a CSV file in PostHog. Returns a CSV download whose columns depend on the requested breakdowns, date range, and usage-type filters. Required: project_id. In beta: answers 403 without the organization-billing-api feature flag.

list_all_post_hog_spend_timeseries

List a PostHog project's billing spend over time as time series. Returns: id, label, data, dates, breakdown_type, breakdown_value. Required: project_id. Beta endpoint; response shapes may change.

list_all_post_hog_spend_timeseries_spend

List billing spend over time for a PostHog organization. Returns: id, label, data, dates, breakdown_type, breakdown_value. Required: organization_id.

post_hog_spike_detection_config_update_configs_bulk_update

Update the error tracking spike detection config for a PostHog project. Returns: snooze_duration_minutes, multiplier, threshold. Required: project_id.

create_a_post_hog_stack_frames_batch_get

Batch get error tracking stack frames in a PostHog project. Returns: results, PersonalAPIKeyAuth. Required: project_id, raw_ids.

create_a_post_hog_startups_apply

Submit an application to the PostHog startups program to request billing discounts for the organization. Returns: status. A JSON request body is required; its fields follow the upstream Billing schema, which the available documentation does not enumerate — consult the PostHog API spec for the field-level breakdown. Required: plan, billing_limit.

create_a_post_hog_state_set

Write one key of a PostHog canvas's runtime state, or delete the key by sending a null value. Returns: scope, key, value, updated_at. Required: project_id, canvase_id, id, scope, key, value. Sending a null value returns an empty 204 response.

get_single_post_hog_state_value_by_id

Read a PostHog canvas state value by key. Returns: scope, key, value_json, revision, offset, total_length, next_offset, complete. Responses are chunked; pass revision and offset to read beyond the first 12,000 characters. Required: id, key, project_id, scope.

create_a_post_hog_subscription_switch_plan

Switch the current organization's PostHog billing subscription to a different plan. Requires a request body; the upstream spec references a generic Billing schema without enumerating its fields. Returns an empty 200 response on success. Required: plan, billing_limit.

create_a_post_hog_suggestion_respond

Record how the agent handled a PostHog autoresearch steering suggestion by setting its status to picked_up, acted_on, or dismissed. Returns the updated suggestion with its id, pipeline, prompt, status, source, agent_response, created_by, linked_iteration_ids, and updated_at. Status can only…. Required: suggestion_id, pipeline_id, project_id,…

create_a_post_hog_suggestion

Submit a free-text suggestion to a running PostHog AutoResearch pipeline; the sandbox agent reads it at the start of the next training batch. Returns: id, pipeline, prompt, priority, status, source, agent_response, created_by, linked_iteration_ids, created_at, updated_at. Required: project_id, pipeline_id, prompt.

get_single_post_hog_suggestion_by_id

Get a single PostHog AutoResearch suggestion by id, including its current status and agent_response. Returns: id, pipeline, prompt, priority, status, source, agent_response, created_by, linked_iteration_ids, created_at, updated_at. Required: id, project_id, pipeline_id.

list_all_post_hog_suggestions

List steering suggestions for a PostHog AutoResearch pipeline, ordered most recent first, so you can see which ones the agent has picked up or acted on. Returns: id, pipeline, prompt, priority, status, source, agent_response, created_by, linked_iteration_ids, created_at, updated_at. Required: project_id, pipeline_id.

create_a_post_hog_summary_regenerate

Regenerate the AI-generated summary for an error tracking issue in PostHog. Returns the regenerated issue summary payload; the upstream API documents it as an ErrorTrackingIssueSummaryResponse without enumerating its fields. Required: project_id, issue_id.

post_hog_suppression_rules_reorders_bulk_update

Reorder error tracking suppression rules in a PostHog project in bulk by applying a new rule order. Returns an empty 204 response on success. Required: project_id.

get_single_post_hog_symbol_set_download_by_id

Get a presigned URL for downloading a PostHog error tracking symbol set's source map. Returns: url, PersonalAPIKeyAuth. Required: id, project_id.

post_hog_symbol_set_finish_uploads_bulk_update

Finish uploading a PostHog error tracking symbol set, marking the symbol set's upload as complete. Returns an empty 200 response on success. Requires project_id, symbol_set_id, and a JSON request body. Required: symbol_set_id, project_id, content_hash.

create_a_post_hog_symbol_sets_bulk_check_upload

Check which PostHog error tracking symbol sets still need bulk_start_upload. Symbol sets already uploaded with identical content are omitted and marked as still in use. Returns: chunk_ids_to_upload. Required: project_id, symbol_sets.

create_a_post_hog_symbol_sets_bulk_delete

Bulk delete error tracking symbol sets in a PostHog project. Returns no response body on success. Required: project_id, ids.

create_a_post_hog_symbol_sets_bulk_finish_upload

Finish a bulk symbol set upload for PostHog error tracking, marking the final step of the bulk flow started via bulk_start_upload. Returns an empty 200 response on success. Required: project_id, content_hashes.

create_a_post_hog_symbol_sets_bulk_start_upload

Start a bulk upload of error tracking symbol sets in a PostHog project. Returns the upload response including its id_map. Required: project_id.

get_single_post_hog_teams_data_freshnesis_by_id

Get data freshness for a PostHog organization, showing when each project last received data, broken down by kind of data. Returns: results, lookback_days, quiet_after_days. Required: id.

create_a_post_hog_ticket_ai_feedback

Record reviewer feedback on an AI reply for a PostHog conversation ticket, captured to the internal analytics project. Returns an empty 202 response with no body. Required: ticket_id, project_id, message_id, rating.

create_a_post_hog_ticket_ai_human_outcome

Record that a human used or edited the latest AI draft on a PostHog support ticket. Returns: message_id, outcome. Required: ticket_id, project_id, message_id, outcome.

create_a_post_hog_ticket_note

Add a private note to a PostHog ticket; notes are visible to your team only and never sent to the customer. Returns the created note's id, message_type, content, author_name, is_private, and created_at. Duplicate recent requests return the original note. Required: ticket_id, project_id, id, message.

delete_a_post_hog_ticket_note_by_id

Soft-delete a private note on a PostHog conversations ticket. Returns an empty 204 response on success. Only the note's author can delete it; customer-facing replies cannot be deleted via this endpoint. Required: id, ticket_id, project_id, message_id.

update_a_post_hog_ticket_note_by_id

Update a private note on a PostHog ticket by id. Returns: id, message_type, content, rich_content, author_type, author_name, author_email, is_private, has_full_email_content, version, created_at. Only the note's author can edit it; message and rich_content are optional for partial updates. Required: id, ticket_id, project_id, message_id.

create_a_post_hog_ticket_reply

Post a reply or internal note to a PostHog ticket. Returns: id, message_type, content, rich_content, author_name, is_private, and 6 more. With is_private=true the message is stored as an internal note; otherwise it is delivered to the customer. Identical repeat messages return the original message. Required: ticket_id, project_id, id, message.

create_a_post_hog_tickets_bulk_update_status

Update the status of multiple PostHog conversation tickets in a single request. Returns: updated, ids. Required: project_id, ids, status. Tickets from other teams or lacking editor access are silently skipped, as are tickets already in the requested status.

create_a_post_hog_tickets_bulk_update_tag

Bulk update tags on multiple PostHog conversation tickets in one call, adding, removing, or replacing tags based on the chosen action. Returns: updated, skipped. Required: project_id, ids, action, tags.

create_a_post_hog_tickets_compose

Create a new outbound PostHog ticket and send the first message to the customer. Returns: id, ticket_number. Required: project_id, recipient_email, message. Identical retried composes return the existing ticket instead of creating a duplicate (409 while still in flight, 200 once committed).

get_single_post_hog_tickets_unread_count_by_id

Get the total unread ticket count for a PostHog project's conversation tickets. Returns: count, PersonalAPIKeyAuth. Required: id.

create_a_post_hog_tools_invoke

Invoke a single PostHog MCP tool on a canvas, running it with the viewer's own permissions. Returns: tool, result, PersonalAPIKeyAuth. The canvas must declare the tool in its capabilities. Required: canvase_id, project_id, id, tool.

list_all_post_hog_trace_clusters

List the PostHog AI-observability clusters that include a trace, from the newest scheduled run of each clustering job that lists it. Returns the clusters array with each entry's runId, runAt, jobId, jobName, clusterId, title, description, and isOutlier. Required: created_at, trace_id, project_id, id.

list_all_post_hog_trace_evaluations

List a PostHog trace's LLM evaluation results, newest first and capped at 250, each with its outcome and label ready to render, plus a roll-up of the latest run of each evaluation on each node. Returns: results, summary, PersonalAPIKeyAuth. Required: project_id, trace_id.

create_a_post_hog_trace_export

Start exporting a PostHog AI-observability trace (every node, inputs and outputs included) to a JSON file. Returns: id, status, filename, createdAt, expiresAfter, exception. Poll until complete, then download. Required: trace_id, project_id.

get_single_post_hog_trace_export_by_id

Get the state of one of your exports of a PostHog AI-observability trace; use it to poll until the export completes. Returns: id, status, filename, createdAt, expiresAfter, exception. Required: id, trace_id, project_id, export_id.

get_single_post_hog_trace_feedback_by_id

Get end-user feedback for an AI observability trace in PostHog, including feedback-event scores and comments plus linked survey responses. Returns: scores, unanswered, surveyResponsesStatus, summary. Required: id, project_id.

get_single_post_hog_trace_node_by_id

Get one node of a PostHog AI trace by id, including its ingested event properties, input/output/tools keys, error and metadata. Returns: id, kind, error, metadata, event, PersonalAPIKeyAuth. Trace and node ids are unpadded base64url-encoded. Required: id, trace_id, project_id, node_id.

get_single_post_hog_trace_pull_request_by_id

Get the pull request that a PostHog AI trace's git branch belongs to, from engineering analytics. Returns the lookup's pullRequest object, or null when no pull request matches. Required: id (the unpadded base64url encoding of the trace's UTF-8 bytes) and project_id.

create_a_post_hog_trace_summary

Request an AI summary of a PostHog trace. Returns the summary with its status, content, and failure details; a ready summary is returned as is unless regenerate is set, otherwise a job writes one. Required: trace_id, project_id.

get_single_post_hog_trace_summary_by_id

Get the AI summary of a PostHog trace by id. Returns: status, content, failure. Required: project_id, id. Summaries are kept for an hour and only shown to users whose property access matches the requester's.

list_all_post_hog_training_run_artifacts

List the files in a PostHog autoresearch training run's artifact bundle (train.py, predict.py, features.sql, and any eda/ notebooks). Returns: paths, count, PersonalAPIKeyAuth. Required: training_run_id, pipeline_id, project_id, id.

create_a_post_hog_training_run_iteration

Record one iteration of an open PostHog autoresearch training run. Returns: id, iteration_number, recipe_snapshot, model_spec, train_score, status, and 11 more. Idempotent on iteration_number; refused once iteration_budget is used. Required: training_run_id, pipeline_id, project_id, id, iteration_number, recipe_snapshot, model_spec, status.

create_a_post_hog_training_run_materialize_feature

Materialize PostHog autoresearch training-run features by running features_sql server-side against the labeled population and writing train/holdout feature and label parquet files into the run's sandbox. Returns: train_features_path, n_train, n_holdout, feature_cols, and 8 more. Required: training_run_id, pipeline_id, project_id, id, features_sql.

post_hog_training_runs_complete

Complete a PostHog autoresearch training run: the backend promotes the kept iteration with the highest holdout score as champion, server-side. Returns: id, pipeline, task_id, status, iteration_count, best_holdout_score, summary, iterations, and 16 more. best_iteration_id is advisory. Required: training_run_id, pipeline_id, project_id, id.

create_a_post_hog_training_run

Open a new PostHog autoresearch training run for a pipeline; the run starts in 'running' and agents record iterations against it before calling complete. Returns: id, pipeline, status, iteration_count, best_holdout_score, iterations, created_at, and 17 more. Required: pipeline_id, project_id. Optional iteration_budget caps the agent's search.

get_single_post_hog_training_run_by_id

Get a single PostHog training run by id, including its recorded iterations and run summary. Returns: id, pipeline, task_id, task_run_id, task_url, status, kickoff_reason, agent_runtime_adapter, agent_model, iteration_count, best_holdout_score, iterations, started_at, completed_at, and 10 more. Required: id, pipeline_id, project_id.

list_all_post_hog_training_runs

List PostHog autoresearch training runs for a pipeline, each recording the agent's model search with per-iteration recipes and holdout scores. Returns: id, pipeline, task_id, task_run_id, task_url, status, kickoff_reason, iteration_count, best_holdout_score, iterations, created_at, and 13 more. Required: pipeline_id, project_id.

get_single_post_hog_training_runs_history_by_id

Get the training-run history for a PostHog autoresearch pipeline. Returns the runs payload: completed runs from this pipeline and same-target sibling pipelines, each with run_id, target_event, horizon_days, best_holdout_score, a distilled summary, and the full iteration trail. Max 20 runs, default 5. Required: id, project_id, pipeline_id.

create_a_post_hog_train

Start an asynchronous training run for a PostHog autoresearch pipeline. Returns the created run with id, status, task_url, iteration_budget, and best_holdout_score; poll it until it reaches a terminal status (completed or failed). Fails if a training run is already in progress. Required: pipeline_id, project_id.

create_a_post_hog_trials_activate

Activate a trial plan for the authenticated PostHog organization. Returns an empty 204 response on success. Required: plan, billing_limit.

create_a_post_hog_trials_cancel

Cancel the active PostHog billing trial for the authenticated organization. Returns: status. Requires a request body following the upstream Billing schema; no specific body fields are documented. Required: plan, billing_limit.

get_single_post_hog_usage_export_by_id

Export an organization's billing usage as a CSV file. Returns the usage breakdown as a CSV download; columns depend on the requested breakdowns, usage_types, and dates. Beta endpoint gated by the organization-billing-api feature flag. Required: id.

list_all_post_hog_usage_exports

Download PostHog's billing usage breakdown as a CSV file, honouring the requested project cap. Returns the usage series as a CSV download; columns depend on the requested breakdowns, usage_types, and date range.

post_hog_usage_exports_usage_export

Export a project's billing usage as a CSV file. Returns the usage breakdown as a CSV download; columns depend on the requested breakdowns, usage_types, and dates. Required: project_id.

get_single_post_hog_usage_status_by_id

Get PostHog billing usage against limits for an organization, without the counts. Returns: billing_period, usage_reported_through, products. Required: id. In beta: requires the organization-billing-api feature flag (otherwise 403; ask support for access) and shapes may change.

list_all_post_hog_usage_team_options

List the project ids offered by the project filter for PostHog billing usage charts, loaded separately from the charts. Returns: team_id_options, status. Uses the same access scoping as the charts: members without billing access see only the projects they can view.

list_all_post_hog_usage_timeseries

List PostHog billing usage over time for a project. Returns: id, label, data, dates, breakdown_type, breakdown_value. Required: project_id. Beta API; response shapes may change.

list_all_post_hog_usage_timeseries_usage

List PostHog billing usage over time for an organization. Returns timeseries records including id, label, data, dates, breakdown_type, and breakdown_value. Required: organization_id.

create_a_post_hog_validate_online

Run online validation for a PostHog autoresearch pipeline: validate predictions against realized outcomes for every matured prediction date. Returns validation run objects including id, status, and created_at (empty list when no prediction dates have matured). Already-validated dates are skipped. Required: pipeline_id, project_id, id.

post_hog_widgets_batch_updates_bulk_update

Atomically update the settings of existing widgets in a PostHog dashboard in place — config, name, and description. Returns: tiles. Required: project_id, dashboard_id. Sends a widgets array describing the widget changes.

create_a_post_hog_widgets_batch

Add multiple widget tiles to a PostHog dashboard in one atomic request. Returns: tiles. Required: dashboard_id, project_id, widgets.

get_single_post_hog_wiki_report_by_id

Get the wiki health report for a PostHog organization's context wiki (a git repo of Markdown pages hosted by PostHog). Returns: head_sha, findings, PersonalAPIKeyAuth. Required: id.

Why Truto

Why use Truto’s MCP server for PostHog

Other MCP servers give you a static tool list for one app. Truto gives you a managed, multi-tenant MCP infrastructure across 1200+ integrations.

01

Auto-generated, always up to date

Tools are dynamically generated from curated documentation — not hand-coded. As integrations evolve, tools stay current without manual maintenance.

02

Fine-grained access control

Scope each MCP server to read-only, write-only, specific methods, or tagged tool groups. Expose only what your AI agent needs — nothing more.

03

Multi-tenant by design

Each MCP server is scoped to a single connected account with its own credentials. The URL itself is the auth token — no shared secrets, no credential leaking across tenants.

04

Works with every MCP client

Standard JSON-RPC 2.0 protocol. Paste the URL into Claude, ChatGPT, Cursor, or any MCP-compatible agent framework — tools are discovered automatically.

05

Built-in auth, rate limits, and error handling

Tool calls execute through Truto’s proxy layer with automatic OAuth refresh, rate-limit handling, and normalized error responses. No raw API plumbing in your agent.

06

Expiring and auditable servers

Create time-limited MCP servers for contractors or automated workflows. Optional dual-auth requires both the URL and a Truto API token for high-security environments.

Unified APIs

Unified APIs for PostHog

Skip writing code for every integration. Use Truto’s category-specific Unified APIs out of the box or customize the mappings with AI.

Unified User Directory API

Organizations

Organizations are the top level entity in the source application. Users are associated with an organization.

View Docs

Users

The User object represents a User.

View Docs

How It Works

From zero to integrated

Start with PostHog in a free sandbox, usually ready within one business day. No boilerplate, no maintenance burden.

01

Link your customer’s PostHog account

Use Truto’s frontend SDK to connect your customer’s PostHog account. We handle all OAuth and API key flows — you don’t need to create the OAuth app.

02

We handle authentication

Don’t spend time refreshing access tokens or figuring out secure storage. We handle it and inject credentials into every API request.

03

Call our API, we call PostHog

Truto’s Proxy API is a 1-to-1 mapping of the PostHog API. You call us, we call PostHog, and pass the response back in the same cycle.

04

Unified response format

Every response follows a single format across all integrations. We translate PostHog’s pagination into unified cursor-based pagination. Data is always in the result attribute.

FAQs

Common questions about PostHog on Truto

Authentication, rate limits, data freshness, and everything else you need to know before you integrate.

What Truto Unified APIs are available for PostHog?

PostHog is supported through Truto's Unified User Directory API, which provides standardized access to Organizations (mapped from PostHog Groups) and Users (mapped from PostHog Persons). Additional tools and API resources can be built on request.

How does authentication work for PostHog integrations via Truto?

PostHog's API uses personal API keys or project API keys for authentication. Truto handles credential storage and auth management so your end users can connect their PostHog accounts securely without you building a custom auth flow.

Does PostHog have rate limits that affect integration performance?

Yes, PostHog enforces rate limits on its API endpoints. Truto manages pagination and request throttling automatically, so your integration handles large datasets without hitting limits or requiring manual retry logic.

Can I access custom properties on PostHog Persons and Groups?

PostHog allows arbitrary custom properties on both Persons and Groups. Truto's Unified User Directory API maps standard fields, and custom properties can be accessed as additional data. If you need specific custom field mappings, Truto can build tailored support on request.

What if I need PostHog data beyond users and organizations — like events, session replays, or feature flags?

Currently, the Unified User Directory API covers Organizations and Users. PostHog's API also exposes events, session recordings, feature flags, insights, and more. Truto can build custom tools for these endpoints on request to match your specific integration needs.

Does Truto support both PostHog Cloud and self-hosted instances?

PostHog can be deployed as a cloud service (us.posthog.com / eu.posthog.com) or self-hosted. Truto can be configured to point at your end users' specific PostHog instance URL, supporting both deployment models.

PostHog

Get PostHog integrated into your app

Our team understands what it takes to make a PostHog integration successful. A short, crisp 30 minute call with folks who understand the problem.