Use PostHog to capture events, query analytics, and manage people, insights, feature flags, experiments, cohorts, and surveys. Read session recordings, organize dashboards, and add annotations using the operations below.
Choose event capture or batch capture to record activity. For reporting, retrieve events, people, insights, or recordings. Mutations can change feature rollout and delete people, so configure the target project and identifiers before running them.
Delete Person submits a person ID to PostHog's bulk-deletion endpoint without requesting event or recording deletion. PostHog can accept the request and queue it for background deletion . Sim currently checks persons_deleted, so a queued deletion can appear as a failed block. Verify the person in PostHog before treating that result as unchanged data or retrying.
Capture events, query analytics, and manage people, insights, feature flags, experiments, cohorts, surveys, and dashboards. List or retrieve recordings, projects, and organizations.
Capture a single event in PostHog. Use this to track user actions, page views, or custom events.
Inputs and outputsParameter Type Required Description projectApiKeystring Yes PostHog Project API Key (public token for event ingestion) regionstring No PostHog region: us (default) or eu hoststring No Self-hosted PostHog instance host (e.g., "posthog.mycompany.com"). Overrides the region setting when provided. eventstring Yes The name of the event to capture (e.g., "page_view", "button_clicked") distinctIdstring Yes Unique identifier for the user or device (e.g., "user123", email, or device UUID) propertiesstring No JSON string of event properties (e.g., {"button_name": "signup", "page": "homepage"}) timestampstring No ISO 8601 timestamp for when the event occurred. If not provided, uses current time
Parameter Type Description statusstring Status message indicating whether the event was captured successfully
Capture multiple events at once in PostHog. Use this for bulk event ingestion to improve performance.
Inputs and outputsParameter Type Required Description projectApiKeystring Yes PostHog Project API Key (public token for event ingestion) regionstring No PostHog region: us (default) or eu hoststring No Self-hosted PostHog instance host (e.g., "posthog.mycompany.com"). Overrides the region setting when provided. batchstring Yes JSON array of events to capture. Each event should have: event, distinct_id, and optional properties, timestamp. Example: [{"event": "page_view", "distinct_id": "user123", "properties": {"page": "/"}}]
Parameter Type Description statusstring Status message indicating whether the batch was captured successfully events_processednumber Number of events processed in the batch
List persons (users) in PostHog. Returns user profiles with their properties and distinct IDs.
Inputs and outputsParameter Type Required Description apiKeystring Yes PostHog Personal API Key (for authenticated API access) regionstring No PostHog region: us (default) or eu hoststring No Self-hosted PostHog instance host (e.g., "posthog.mycompany.com"). Overrides the region setting when provided. projectIdstring Yes PostHog Project ID (e.g., "12345" or project UUID) limitnumber No Number of persons to return (default: 100, max: 100) offsetnumber No Number of persons to skip for pagination (e.g., 0, 100, 200) searchstring No Search persons by email, name, or distinct ID distinctIdstring No Filter by specific distinct_id
Parameter Type Description personsarray List of persons with their properties and identifiers ↳ id string Person ID ↳ name string Person name ↳ distinct_ids array All distinct IDs associated with this person ↳ created_at string When the person was first seen ↳ uuid string Person UUID nextstring URL for the next page of results (if available)
Get detailed information about a specific person in PostHog by their ID or UUID.
Inputs and outputsParameter Type Required Description apiKeystring Yes PostHog Personal API Key (for authenticated API access) regionstring No PostHog region: us (default) or eu hoststring No Self-hosted PostHog instance host (e.g., "posthog.mycompany.com"). Overrides the region setting when provided. projectIdstring Yes PostHog Project ID (e.g., "12345" or project UUID) personIdstring Yes Person ID or UUID to retrieve (e.g., "01234567-89ab-cdef-0123-456789abcdef")
Parameter Type Description personobject Person details including properties and identifiers ↳ id string Person ID ↳ name string Person name ↳ distinct_ids array All distinct IDs associated with this person ↳ created_at string When the person was first seen ↳ uuid string Person UUID
Request deletion of one PostHog person. Associated event and recording deletion is not requested. Deletion can be queued asynchronously even when the current result reports no person deleted.
Inputs and outputsParameter Type Required Description apiKeystring Yes PostHog Personal API Key (for authenticated API access) regionstring No PostHog region: us (default) or eu hoststring No Self-hosted PostHog instance host (e.g., "posthog.mycompany.com"). Overrides the region setting when provided. projectIdstring Yes PostHog Project ID (e.g., "12345" or project UUID) personIdstring Yes Person ID or UUID to delete (e.g., "01234567-89ab-cdef-0123-456789abcdef")
Parameter Type Description statusstring Status message indicating whether the person was deleted successfully
Execute a HogQL query in PostHog. HogQL is PostHog's SQL-like query language for analytics. Use this for advanced data retrieval and analysis.
Inputs and outputsParameter Type Required Description apiKeystring Yes PostHog Personal API Key (for authenticated API access) regionstring No PostHog region: us (default) or eu hoststring No Self-hosted PostHog instance host (e.g., "posthog.mycompany.com"). Overrides the region setting when provided. projectIdstring Yes PostHog Project ID (e.g., "12345" or project UUID) querystring Yes HogQL query to execute. Example: {"kind": "HogQLQuery", "query": "SELECT event, count() FROM events WHERE timestamp > now() - INTERVAL 1 DAY GROUP BY event"} valuesstring No Optional JSON string of parameter values for parameterized queries. Example: {"user_id": "123"}
Parameter Type Description resultsarray Query results as an array of rows columnsarray Column names in the result set typesarray Data types of columns in the result set hogqlstring The actual HogQL query that was executed has_moreboolean Whether there are more results available
List all insights in a PostHog project. Returns insight configurations and metadata.
Inputs and outputsParameter Type Required Description apiKeystring Yes PostHog Personal API Key projectIdstring Yes The PostHog project ID (e.g., "12345" or project UUID) regionstring No PostHog cloud region: "us" or "eu" (default: "us") hoststring No Self-hosted PostHog instance host (e.g., "posthog.mycompany.com"). Overrides the region setting when provided. limitnumber No Number of results to return per page (default: 100, e.g., 10, 50, 100) offsetnumber No Number of results to skip for pagination (e.g., 0, 100, 200)
Parameter Type Description countnumber Total number of insights in the project nextstring URL for the next page of results previousstring URL for the previous page of results resultsarray List of insights with their configurations and metadata ↳ id number Unique identifier for the insight ↳ name string Name of the insight ↳ description string Description of the insight ↳ query object Query configuration for the insight ↳ created_at string ISO timestamp when insight was created ↳ created_by object User who created the insight ↳ last_modified_at string ISO timestamp when insight was last modified ↳ last_modified_by object User who last modified the insight ↳ dashboards array IDs of dashboards this insight appears on
Get a specific insight by ID from PostHog. Returns detailed insight configuration and metadata.
Inputs and outputsParameter Type Required Description apiKeystring Yes PostHog Personal API Key projectIdstring Yes The PostHog project ID (e.g., "12345" or project UUID) insightIdstring Yes The insight ID to retrieve (e.g., "42" or short ID like "abc123") regionstring No PostHog cloud region: "us" or "eu" (default: "us") hoststring No Self-hosted PostHog instance host (e.g., "posthog.mycompany.com"). Overrides the region setting when provided.
Parameter Type Description idnumber Unique identifier for the insight namestring Name of the insight descriptionstring Description of the insight queryobject Query configuration for the insight created_atstring ISO timestamp when insight was created created_byobject User who created the insight last_modified_atstring ISO timestamp when insight was last modified last_modified_byobject User who last modified the insight dashboardsarray IDs of dashboards this insight appears on tagsarray Tags associated with the insight favoritedboolean Whether the insight is favorited
Create a new insight in PostHog. Requires insight name and a query configuration.
Inputs and outputsParameter Type Required Description apiKeystring Yes PostHog Personal API Key projectIdstring Yes The PostHog project ID (e.g., "12345" or project UUID) regionstring No PostHog cloud region: "us" or "eu" (default: "us") hoststring No Self-hosted PostHog instance host (e.g., "posthog.mycompany.com"). Overrides the region setting when provided. namestring No Name for the insight (optional - PostHog will generate a derived name if not provided) descriptionstring No Description of the insight querystring No JSON string of query configuration for the insight dashboardsstring No Comma-separated list of dashboard IDs to add this insight to tagsstring No Comma-separated list of tags for the insight
Parameter Type Description idnumber Unique identifier for the created insight namestring Name of the insight descriptionstring Description of the insight queryobject Query configuration for the insight created_atstring ISO timestamp when insight was created created_byobject User who created the insight last_modified_atstring ISO timestamp when insight was last modified dashboardsarray IDs of dashboards this insight appears on tagsarray Tags associated with the insight
Update an existing insight in PostHog. Can modify name, description, query, dashboards, tags, and favorited status.
Inputs and outputsParameter Type Required Description apiKeystring Yes PostHog Personal API Key projectIdstring Yes The PostHog project ID (e.g., "12345" or project UUID) insightIdstring Yes The insight ID to update (e.g., "42" or short ID like "abc123") regionstring No PostHog cloud region: "us" or "eu" (default: "us") hoststring No Self-hosted PostHog instance host (e.g., "posthog.mycompany.com"). Overrides the region setting when provided. namestring No Updated name for the insight descriptionstring No Updated description for the insight querystring No JSON string of updated query configuration for the insight dashboardsstring No Comma-separated list of dashboard IDs to attach this insight to tagsstring No Comma-separated list of tags for the insight favoritedboolean No Whether to mark the insight as favorited
Parameter Type Description idnumber Unique identifier for the insight namestring Name of the insight descriptionstring Description of the insight queryobject Query configuration for the insight created_atstring ISO timestamp when insight was created last_modified_atstring ISO timestamp when insight was last modified dashboardsarray IDs of dashboards this insight appears on tagsarray Tags associated with the insight favoritedboolean Whether the insight is favorited
List all dashboards in a PostHog project. Returns dashboard configurations, tiles, and metadata.
Inputs and outputsParameter Type Required Description apiKeystring Yes PostHog Personal API Key projectIdstring Yes The PostHog project ID (e.g., "12345" or project UUID) regionstring No PostHog cloud region: "us" or "eu" (default: "us") hoststring No Self-hosted PostHog instance host (e.g., "posthog.mycompany.com"). Overrides the region setting when provided. limitnumber No Number of results to return per page (default: 100, e.g., 10, 50, 100) offsetnumber No Number of results to skip for pagination (e.g., 0, 100, 200)
Parameter Type Description countnumber Total number of dashboards in the project nextstring URL for the next page of results previousstring URL for the previous page of results resultsarray List of dashboards with their configurations and metadata ↳ id number Unique identifier for the dashboard ↳ name string Name of the dashboard ↳ description string Description of the dashboard ↳ pinned boolean Whether the dashboard is pinned ↳ created_at string ISO timestamp when dashboard was created ↳ created_by object User who created the dashboard ↳ last_modified_at string ISO timestamp when dashboard was last modified ↳ last_modified_by object User who last modified the dashboard ↳ tiles array Tiles/widgets on the dashboard ↳ filters object Global filters for the dashboard ↳ tags array Tags associated with the dashboard
Get a specific dashboard by ID from PostHog. Returns detailed dashboard configuration, tiles, and metadata.
Inputs and outputsParameter Type Required Description apiKeystring Yes PostHog Personal API Key projectIdstring Yes The PostHog project ID (e.g., "12345" or project UUID) dashboardIdstring Yes The dashboard ID to retrieve (e.g., "42") regionstring No PostHog cloud region: "us" or "eu" (default: "us") hoststring No Self-hosted PostHog instance host (e.g., "posthog.mycompany.com"). Overrides the region setting when provided.
Parameter Type Description idnumber Unique identifier for the dashboard namestring Name of the dashboard descriptionstring Description of the dashboard pinnedboolean Whether the dashboard is pinned created_atstring ISO timestamp when dashboard was created created_byobject User who created the dashboard last_modified_atstring ISO timestamp when dashboard was last modified last_modified_byobject User who last modified the dashboard tilesarray Tiles/widgets on the dashboard with their configurations filtersobject Global filters applied to the dashboard tagsarray Tags associated with the dashboard restriction_levelnumber Access restriction level for the dashboard
Create a new dashboard in PostHog. Optionally seed it from a built-in template, then attach insights to it afterward.
Inputs and outputsParameter Type Required Description apiKeystring Yes PostHog Personal API Key projectIdstring Yes The PostHog project ID (e.g., "12345" or project UUID) regionstring No PostHog cloud region: "us" or "eu" (default: "us") hoststring No Self-hosted PostHog instance host (e.g., "posthog.mycompany.com"). Overrides the region setting when provided. namestring Yes Name for the new dashboard descriptionstring No Description of the dashboard pinnedboolean No Whether to pin the dashboard to the sidebar tagsstring No Comma-separated list of tags for the dashboard useTemplatestring No Name of a built-in PostHog dashboard template to seed this dashboard from (e.g., "Product analytics")
Parameter Type Description idnumber Unique identifier for the created dashboard namestring Name of the dashboard descriptionstring Description of the dashboard pinnedboolean Whether the dashboard is pinned created_atstring ISO timestamp when dashboard was created tilesarray Tiles/widgets on the dashboard filtersobject Global filters applied to the dashboard tagsarray Tags associated with the dashboard
List all actions in a PostHog project. Returns action definitions, steps, and metadata.
Inputs and outputsParameter Type Required Description apiKeystring Yes PostHog Personal API Key projectIdstring Yes The PostHog project ID (e.g., "12345" or project UUID) regionstring No PostHog cloud region: "us" or "eu" (default: "us") hoststring No Self-hosted PostHog instance host (e.g., "posthog.mycompany.com"). Overrides the region setting when provided. limitnumber No Number of results to return per page (default: 100, e.g., 10, 50, 100) offsetnumber No Number of results to skip for pagination (e.g., 0, 100, 200) searchstring No Search term to filter actions by name
Parameter Type Description countnumber Total number of actions in the project nextstring URL for the next page of results previousstring URL for the previous page of results resultsarray List of actions with their definitions and metadata ↳ id number Unique identifier for the action ↳ name string Name of the action ↳ description string Description of the action ↳ tags array Tags associated with the action ↳ post_to_slack boolean Whether to post this action to Slack ↳ slack_message_format string Format string for Slack messages ↳ steps array Steps that define the action ↳ created_at string ISO timestamp when action was created ↳ created_by object User who created the action ↳ deleted boolean Whether the action is deleted ↳ is_calculating boolean Whether the action is being calculated ↳ last_calculated_at string ISO timestamp of last calculation
List all cohorts in a PostHog project. Returns cohort definitions, filters, and user counts.
Inputs and outputsParameter Type Required Description apiKeystring Yes PostHog Personal API Key projectIdstring Yes The PostHog project ID (e.g., "12345" or project UUID) regionstring No PostHog cloud region: "us" or "eu" (default: "us") hoststring No Self-hosted PostHog instance host (e.g., "posthog.mycompany.com"). Overrides the region setting when provided. limitnumber No Number of results to return per page (default: 100, e.g., 10, 50, 100) offsetnumber No Number of results to skip for pagination (e.g., 0, 100, 200)
Parameter Type Description countnumber Total number of cohorts in the project nextstring URL for the next page of results previousstring URL for the previous page of results resultsarray List of cohorts with their definitions and metadata ↳ id number Unique identifier for the cohort ↳ name string Name of the cohort ↳ description string Description of the cohort ↳ groups array Groups that define the cohort ↳ deleted boolean Whether the cohort is deleted ↳ filters object Filter configuration for the cohort ↳ query object Query configuration for the cohort ↳ created_at string ISO timestamp when cohort was created ↳ created_by object User who created the cohort ↳ is_calculating boolean Whether the cohort is being calculated ↳ last_calculation string ISO timestamp of last calculation ↳ errors_calculating number Number of errors during calculation ↳ count number Number of users in the cohort ↳ is_static boolean Whether the cohort is static
Get a specific cohort by ID from PostHog. Returns detailed cohort definition, filters, and user count.
Inputs and outputsParameter Type Required Description apiKeystring Yes PostHog Personal API Key projectIdstring Yes The PostHog project ID (e.g., "12345" or project UUID) cohortIdstring Yes The cohort ID to retrieve (e.g., "42") regionstring No PostHog cloud region: "us" or "eu" (default: "us") hoststring No Self-hosted PostHog instance host (e.g., "posthog.mycompany.com"). Overrides the region setting when provided.
Parameter Type Description idnumber Unique identifier for the cohort namestring Name of the cohort descriptionstring Description of the cohort groupsarray Groups that define the cohort deletedboolean Whether the cohort is deleted filtersobject Filter configuration for the cohort queryobject Query configuration for the cohort created_atstring ISO timestamp when cohort was created created_byobject User who created the cohort is_calculatingboolean Whether the cohort is being calculated last_calculationstring ISO timestamp of last calculation errors_calculatingnumber Number of errors during calculation countnumber Number of users in the cohort is_staticboolean Whether the cohort is static versionnumber Version number of the cohort
Create a new cohort in PostHog. Requires cohort name and filter or query configuration.
Inputs and outputsParameter Type Required Description apiKeystring Yes PostHog Personal API Key projectIdstring Yes The PostHog project ID (e.g., "12345" or project UUID) regionstring No PostHog cloud region: "us" or "eu" (default: "us") hoststring No Self-hosted PostHog instance host (e.g., "posthog.mycompany.com"). Overrides the region setting when provided. namestring No Name for the cohort (optional - PostHog will use "Untitled cohort" if not provided) descriptionstring No Description of the cohort filtersstring No JSON string of filter configuration for the cohort querystring No JSON string of query configuration for the cohort is_staticboolean No Whether the cohort is static (default: false) groupsstring No JSON string of groups that define the cohort
Parameter Type Description idnumber Unique identifier for the created cohort namestring Name of the cohort descriptionstring Description of the cohort groupsarray Groups that define the cohort deletedboolean Whether the cohort is deleted filtersobject Filter configuration for the cohort queryobject Query configuration for the cohort created_atstring ISO timestamp when cohort was created created_byobject User who created the cohort is_calculatingboolean Whether the cohort is being calculated countnumber Number of users in the cohort is_staticboolean Whether the cohort is static versionnumber Version number of the cohort
Update an existing cohort in PostHog. Can modify name, description, filters, query, static membership, and deleted status.
Inputs and outputsParameter Type Required Description apiKeystring Yes PostHog Personal API Key projectIdstring Yes The PostHog project ID (e.g., "12345" or project UUID) cohortIdstring Yes The cohort ID to update (e.g., "42") regionstring No PostHog cloud region: "us" or "eu" (default: "us") hoststring No Self-hosted PostHog instance host (e.g., "posthog.mycompany.com"). Overrides the region setting when provided. namestring No Updated name for the cohort descriptionstring No Updated description of the cohort filtersstring No JSON string of updated filter configuration for the cohort querystring No JSON string of updated query configuration for the cohort isStaticboolean No Whether the cohort is static groupsstring No JSON string of updated groups that define the cohort deletedboolean No Set to true to archive (soft-delete) the cohort
Parameter Type Description idnumber Unique identifier for the cohort namestring Name of the cohort descriptionstring Description of the cohort groupsarray Groups that define the cohort deletedboolean Whether the cohort is deleted filtersobject Filter configuration for the cohort queryobject Query configuration for the cohort created_atstring ISO timestamp when cohort was created is_calculatingboolean Whether the cohort is being calculated countnumber Number of users in the cohort is_staticboolean Whether the cohort is static versionnumber Version number of the cohort
List all annotations in a PostHog project. Returns annotation content, timestamps, and associated insights.
Inputs and outputsParameter Type Required Description apiKeystring Yes PostHog Personal API Key projectIdstring Yes The PostHog project ID (e.g., "12345" or project UUID) regionstring No PostHog cloud region: "us" or "eu" (default: "us") hoststring No Self-hosted PostHog instance host (e.g., "posthog.mycompany.com"). Overrides the region setting when provided. limitnumber No Number of results to return per page (default: 100, e.g., 10, 50, 100) offsetnumber No Number of results to skip for pagination (e.g., 0, 100, 200)
Parameter Type Description countnumber Total number of annotations in the project nextstring URL for the next page of results previousstring URL for the previous page of results resultsarray List of annotations with their content and metadata ↳ id number Unique identifier for the annotation ↳ content string Content/text of the annotation ↳ date_marker string ISO timestamp marking when the annotation applies ↳ created_at string ISO timestamp when annotation was created ↳ updated_at string ISO timestamp when annotation was last updated ↳ created_by object User who created the annotation ↳ dashboard_item number ID of dashboard item this annotation is attached to ↳ dashboard_id number ID of the dashboard this annotation is attached to ↳ insight_short_id string Short ID of the insight this annotation is attached to ↳ insight_name string Name of the insight this annotation is attached to ↳ scope string Scope of the annotation (project or dashboard) ↳ deleted boolean Whether the annotation is deleted
Create a new annotation in PostHog. Mark important events on your graphs with date and description.
Inputs and outputsParameter Type Required Description apiKeystring Yes PostHog Personal API Key projectIdstring Yes The PostHog project ID (e.g., "12345" or project UUID) regionstring No PostHog cloud region: "us" or "eu" (default: "us") hoststring No Self-hosted PostHog instance host (e.g., "posthog.mycompany.com"). Overrides the region setting when provided. contentstring Yes Content/text of the annotation date_markerstring Yes ISO timestamp marking when the annotation applies (e.g., "2024-01-15T10:00:00Z") scopestring No Scope of the annotation: "project", "organization", "dashboard", or "dashboard_item" (default: "project") dashboard_itemstring No ID of the dashboard tile (insight) to attach this annotation to (used when scope is "dashboard_item") dashboard_idstring No ID of the dashboard to attach this annotation to (used when scope is "dashboard")
Parameter Type Description idnumber Unique identifier for the created annotation contentstring Content/text of the annotation date_markerstring ISO timestamp marking when the annotation applies created_atstring ISO timestamp when annotation was created updated_atstring ISO timestamp when annotation was last updated created_byobject User who created the annotation dashboard_itemnumber ID of dashboard item this annotation is attached to dashboard_idnumber ID of the dashboard this annotation is attached to insight_short_idstring Short ID of the insight this annotation is attached to insight_namestring Name of the insight this annotation is attached to scopestring Scope of the annotation (project, organization, dashboard, or dashboard_item) deletedboolean Whether the annotation is deleted
List all feature flags in a PostHog project
Inputs and outputsParameter Type Required Description projectIdstring Yes The PostHog project ID (e.g., "12345" or project UUID) regionstring Yes PostHog cloud region: us or eu hoststring No Self-hosted PostHog instance host (e.g., "posthog.mycompany.com"). Overrides the region setting when provided. apiKeystring Yes PostHog Personal API Key limitnumber No Number of results to return (e.g., 10, 50, 100) offsetnumber No Number of results to skip for pagination (e.g., 0, 100, 200)
Parameter Type Description resultsarray List of feature flags ↳ id number Feature flag ID ↳ name string Feature flag name ↳ key string Feature flag key ↳ filters object Feature flag filters ↳ deleted boolean Whether the flag is deleted ↳ active boolean Whether the flag is active ↳ created_at string Creation timestamp ↳ created_by object Creator information ↳ is_simple_flag boolean Whether this is a simple flag ↳ rollout_percentage number Rollout percentage (if applicable) ↳ ensure_experience_continuity boolean Whether to ensure experience continuity countnumber Total number of feature flags nextstring URL to next page of results previousstring URL to previous page of results
Get details of a specific feature flag
Inputs and outputsParameter Type Required Description projectIdstring Yes The PostHog project ID (e.g., "12345" or project UUID) flagIdstring Yes The feature flag ID (e.g., "42") regionstring Yes PostHog cloud region: us or eu hoststring No Self-hosted PostHog instance host (e.g., "posthog.mycompany.com"). Overrides the region setting when provided. apiKeystring Yes PostHog Personal API Key
Parameter Type Description flagobject Feature flag details ↳ id number Feature flag ID ↳ name string Feature flag name ↳ key string Feature flag key ↳ filters object Feature flag filters ↳ deleted boolean Whether the flag is deleted ↳ active boolean Whether the flag is active ↳ created_at string Creation timestamp ↳ created_by object Creator information ↳ is_simple_flag boolean Whether this is a simple flag ↳ rollout_percentage number Rollout percentage (if applicable) ↳ ensure_experience_continuity boolean Whether to ensure experience continuity ↳ usage_dashboard number Usage dashboard ID ↳ has_enriched_analytics boolean Whether enriched analytics are enabled
Create a new feature flag in PostHog
Inputs and outputsParameter Type Required Description projectIdstring Yes The PostHog project ID (e.g., "12345" or project UUID) regionstring Yes PostHog cloud region: us or eu hoststring No Self-hosted PostHog instance host (e.g., "posthog.mycompany.com"). Overrides the region setting when provided. apiKeystring Yes PostHog Personal API Key namestring No Feature flag name (optional - can be empty) keystring Yes Feature flag key (unique identifier) filtersstring No Feature flag filters as JSON string activeboolean No Whether the flag is active (default: true) ensureExperienceContinuityboolean No Whether to ensure experience continuity (default: false) rolloutPercentagenumber No Rollout percentage (0-100)
Parameter Type Description flagobject Created feature flag ↳ id number Feature flag ID ↳ name string Feature flag name ↳ key string Feature flag key ↳ filters object Feature flag filters ↳ deleted boolean Whether the flag is deleted ↳ active boolean Whether the flag is active ↳ created_at string Creation timestamp ↳ created_by object Creator information ↳ is_simple_flag boolean Whether this is a simple flag ↳ rollout_percentage number Rollout percentage (if applicable) ↳ ensure_experience_continuity boolean Whether to ensure experience continuity
Update an existing feature flag in PostHog
Inputs and outputsParameter Type Required Description projectIdstring Yes The PostHog project ID (e.g., "12345" or project UUID) flagIdstring Yes The feature flag ID (e.g., "42") regionstring Yes PostHog cloud region: us or eu hoststring No Self-hosted PostHog instance host (e.g., "posthog.mycompany.com"). Overrides the region setting when provided. apiKeystring Yes PostHog Personal API Key namestring No Feature flag name keystring No Feature flag key (unique identifier) filtersstring No Feature flag filters as JSON string activeboolean No Whether the flag is active ensureExperienceContinuityboolean No Whether to ensure experience continuity rolloutPercentagenumber No Rollout percentage (0-100)
Parameter Type Description flagobject Updated feature flag ↳ id number Feature flag ID ↳ name string Feature flag name ↳ key string Feature flag key ↳ filters object Feature flag filters ↳ deleted boolean Whether the flag is deleted ↳ active boolean Whether the flag is active ↳ created_at string Creation timestamp ↳ created_by object Creator information ↳ is_simple_flag boolean Whether this is a simple flag ↳ rollout_percentage number Rollout percentage (if applicable) ↳ ensure_experience_continuity boolean Whether to ensure experience continuity
Delete a feature flag from PostHog
Inputs and outputsParameter Type Required Description projectIdstring Yes The PostHog project ID (e.g., "12345" or project UUID) flagIdstring Yes The feature flag ID to delete (e.g., "42") regionstring Yes PostHog cloud region: us or eu hoststring No Self-hosted PostHog instance host (e.g., "posthog.mycompany.com"). Overrides the region setting when provided. apiKeystring Yes PostHog Personal API Key
Parameter Type Description successboolean Whether the deletion was successful messagestring Confirmation message
Evaluate feature flags for a specific user or group. This is a public endpoint that uses the project API key.
Inputs and outputsParameter Type Required Description regionstring Yes PostHog cloud region: us or eu hoststring No Self-hosted PostHog instance host (e.g., "posthog.mycompany.com"). Overrides the region setting when provided. projectApiKeystring Yes PostHog Project API Key (not personal API key) distinctIdstring Yes The distinct ID of the user to evaluate flags for (e.g., "user123" or email) groupsstring No Groups as JSON string (e.g., {"company": "company_id_in_your_db"}) personPropertiesstring No Person properties as JSON string groupPropertiesstring No Group properties as JSON string
Parameter Type Description feature_flagsobject Feature flag evaluations (key-value pairs where values are boolean or string variants) feature_flag_payloadsobject Additional payloads attached to feature flags errors_while_computing_flagsboolean Whether there were errors while computing flags
List all experiments in a PostHog project
Inputs and outputsParameter Type Required Description projectIdstring Yes The PostHog project ID (e.g., "12345" or project UUID) regionstring Yes PostHog cloud region: us or eu hoststring No Self-hosted PostHog instance host (e.g., "posthog.mycompany.com"). Overrides the region setting when provided. apiKeystring Yes PostHog Personal API Key limitnumber No Number of results to return (e.g., 10, 50, 100) offsetnumber No Number of results to skip for pagination (e.g., 0, 100, 200)
Parameter Type Description resultsarray List of experiments ↳ id number Experiment ID ↳ name string Experiment name ↳ description string Experiment description ↳ feature_flag_key string Associated feature flag key ↳ feature_flag object Feature flag details ↳ parameters object Experiment parameters ↳ filters object Experiment filters ↳ start_date string Start date ↳ end_date string End date ↳ created_at string Creation timestamp ↳ created_by object Creator information ↳ archived boolean Whether the experiment is archived countnumber Total number of experiments nextstring URL to next page of results previousstring URL to previous page of results
Get details of a specific experiment
Inputs and outputsParameter Type Required Description projectIdstring Yes The PostHog project ID (e.g., "12345" or project UUID) experimentIdstring Yes The experiment ID (e.g., "42") regionstring Yes PostHog cloud region: us or eu hoststring No Self-hosted PostHog instance host (e.g., "posthog.mycompany.com"). Overrides the region setting when provided. apiKeystring Yes PostHog Personal API Key
Parameter Type Description experimentobject Experiment details ↳ id number Experiment ID ↳ name string Experiment name ↳ description string Experiment description ↳ feature_flag_key string Associated feature flag key ↳ feature_flag object Feature flag details ↳ parameters object Experiment parameters ↳ filters object Experiment filters ↳ start_date string Start date ↳ end_date string End date ↳ created_at string Creation timestamp ↳ created_by object Creator information ↳ archived boolean Whether the experiment is archived ↳ metrics array Primary metrics ↳ metrics_secondary array Secondary metrics
Create a new experiment in PostHog
Inputs and outputsParameter Type Required Description projectIdstring Yes The PostHog project ID (e.g., "12345" or project UUID) regionstring Yes PostHog cloud region: us or eu hoststring No Self-hosted PostHog instance host (e.g., "posthog.mycompany.com"). Overrides the region setting when provided. apiKeystring Yes PostHog Personal API Key namestring Yes Experiment name descriptionstring No Experiment description featureFlagKeystring Yes Feature flag key to use for the experiment parametersstring No Experiment parameters as JSON string filtersstring No Experiment filters as JSON string startDatestring No Experiment start date (ISO format) endDatestring No Experiment end date (ISO format)
Parameter Type Description experimentobject Created experiment ↳ id number Experiment ID ↳ name string Experiment name ↳ description string Experiment description ↳ feature_flag_key string Associated feature flag key ↳ feature_flag object Feature flag details ↳ parameters object Experiment parameters ↳ filters object Experiment filters ↳ start_date string Start date ↳ end_date string End date ↳ created_at string Creation timestamp ↳ created_by object Creator information ↳ archived boolean Whether the experiment is archived
Update an existing experiment in PostHog. Use this to change dates, archive an experiment, or adjust its parameters and filters.
Inputs and outputsParameter Type Required Description projectIdstring Yes The PostHog project ID (e.g., "12345" or project UUID) experimentIdstring Yes The experiment ID to update (e.g., "42") regionstring No PostHog cloud region: us or eu (default: us) hoststring No Self-hosted PostHog instance host (e.g., "posthog.mycompany.com"). Overrides the region setting when provided. apiKeystring Yes PostHog Personal API Key namestring No Updated experiment name descriptionstring No Updated experiment description parametersstring No Updated experiment parameters as JSON string filtersstring No Updated experiment filters as JSON string startDatestring No Updated start date (ISO 8601). Set this to launch a draft experiment. endDatestring No Updated end date (ISO 8601). Set this to conclude a running experiment. archivedboolean No Whether to archive the experiment
Parameter Type Description experimentobject Updated experiment ↳ id number Experiment ID ↳ name string Experiment name ↳ description string Experiment description ↳ feature_flag_key string Associated feature flag key ↳ feature_flag object Feature flag details ↳ parameters object Experiment parameters ↳ filters object Experiment filters ↳ start_date string Start date ↳ end_date string End date ↳ created_at string Creation timestamp ↳ archived boolean Whether the experiment is archived
List all surveys in a PostHog project. Surveys allow you to collect feedback from users.
Inputs and outputsParameter Type Required Description apiKeystring Yes PostHog Personal API Key projectIdstring Yes PostHog Project ID (e.g., "12345" or project UUID) regionstring No PostHog cloud region: us or eu (default: us) hoststring No Self-hosted PostHog instance host (e.g., "posthog.mycompany.com"). Overrides the region setting when provided. limitnumber No Number of results to return (default: 100, e.g., 10, 50, 100) offsetnumber No Number of results to skip for pagination (e.g., 0, 100, 200)
Parameter Type Description surveysarray List of surveys in the project ↳ id string Survey ID ↳ name string Survey name ↳ description string Survey description ↳ type string Survey type (popover or api) ↳ questions array Survey questions ↳ created_at string Creation timestamp ↳ start_date string Survey start date ↳ end_date string Survey end date ↳ archived boolean Whether survey is archived countnumber Total number of surveys nextstring URL for next page of results previousstring URL for previous page of results
Get details of a specific survey in PostHog by ID.
Inputs and outputsParameter Type Required Description apiKeystring Yes PostHog Personal API Key projectIdstring Yes PostHog Project ID (e.g., "12345" or project UUID) surveyIdstring Yes Survey ID to retrieve (e.g., "01234567-89ab-cdef-0123-456789abcdef") regionstring No PostHog cloud region: us or eu (default: us) hoststring No Self-hosted PostHog instance host (e.g., "posthog.mycompany.com"). Overrides the region setting when provided.
Parameter Type Description surveyobject Survey details ↳ id string Survey ID ↳ name string Survey name ↳ description string Survey description ↳ type string Survey type (popover or api) ↳ questions array Survey questions ↳ appearance object Survey appearance configuration ↳ conditions object Survey display conditions ↳ created_at string Creation timestamp ↳ created_by object Creator information ↳ start_date string Survey start date ↳ end_date string Survey end date ↳ archived boolean Whether survey is archived ↳ responses_limit number Maximum number of responses
Create a new survey in PostHog. Supports question types: Basic (open), Link, Rating, and Multiple Choice.
Inputs and outputsParameter Type Required Description apiKeystring Yes PostHog Personal API Key projectIdstring Yes PostHog Project ID (e.g., "12345" or project UUID) regionstring No PostHog cloud region: us or eu (default: us) hoststring No Self-hosted PostHog instance host (e.g., "posthog.mycompany.com"). Overrides the region setting when provided. namestring Yes Survey name descriptionstring No Survey description typestring No Survey type: popover (in-app) or api (custom implementation) (default: popover) questionsstring Yes JSON string of survey questions array. Each question must have type (open/link/rating/multiple_choice) and question text. Rating questions can have scale (1-10), lowerBoundLabel, upperBoundLabel. Multiple choice questions need choices array. Link questions can have buttonText. startDatestring No Survey start date in ISO 8601 format endDatestring No Survey end date in ISO 8601 format appearancestring No JSON string of appearance configuration (colors, position, etc.) conditionsstring No JSON string of display conditions (URL matching, etc.) targetingFlagFiltersstring No JSON string of feature flag filters for targeting linkedFlagIdstring No Feature flag ID to link to this survey responsesLimitnumber No Maximum number of responses to collect
Parameter Type Description surveyobject Created survey details ↳ id string Survey ID ↳ name string Survey name ↳ description string Survey description ↳ type string Survey type (popover or api) ↳ questions array Survey questions ↳ created_at string Creation timestamp ↳ start_date string Survey start date ↳ end_date string Survey end date
Update an existing survey in PostHog. Can modify questions, appearance, conditions, and other settings.
Inputs and outputsParameter Type Required Description apiKeystring Yes PostHog Personal API Key projectIdstring Yes PostHog Project ID (e.g., "12345" or project UUID) surveyIdstring Yes Survey ID to update (e.g., "01234567-89ab-cdef-0123-456789abcdef") regionstring No PostHog cloud region: us or eu (default: us) hoststring No Self-hosted PostHog instance host (e.g., "posthog.mycompany.com"). Overrides the region setting when provided. namestring No Survey name descriptionstring No Survey description typestring No Survey type: popover or api questionsstring No JSON string of survey questions array. Each question must have type (open/link/rating/multiple_choice) and question text. startDatestring No Survey start date in ISO 8601 format endDatestring No Survey end date in ISO 8601 format appearancestring No JSON string of appearance configuration (colors, position, etc.) conditionsstring No JSON string of display conditions (URL matching, etc.) targetingFlagFiltersstring No JSON string of feature flag filters for targeting linkedFlagIdstring No Feature flag ID to link to this survey responsesLimitnumber No Maximum number of responses to collect archivedboolean No Archive or unarchive the survey
Parameter Type Description surveyobject Updated survey details ↳ id string Survey ID ↳ name string Survey name ↳ description string Survey description ↳ type string Survey type (popover or api) ↳ questions array Survey questions ↳ created_at string Creation timestamp ↳ start_date string Survey start date ↳ end_date string Survey end date ↳ archived boolean Whether survey is archived
Delete a survey from PostHog. Use this to remove expired or unused surveys.
Inputs and outputsParameter Type Required Description apiKeystring Yes PostHog Personal API Key projectIdstring Yes PostHog Project ID (e.g., "12345" or project UUID) surveyIdstring Yes Survey ID to delete (e.g., "01234567-89ab-cdef-0123-456789abcdef") regionstring No PostHog cloud region: us or eu (default: us) hoststring No Self-hosted PostHog instance host (e.g., "posthog.mycompany.com"). Overrides the region setting when provided.
Parameter Type Description statusstring Status message indicating whether the survey was deleted successfully
List session recordings in a PostHog project. Session recordings capture user interactions with your application.
Inputs and outputsParameter Type Required Description apiKeystring Yes PostHog Personal API Key projectIdstring Yes PostHog Project ID (e.g., "12345" or project UUID) regionstring No PostHog cloud region: us or eu (default: us) hoststring No Self-hosted PostHog instance host (e.g., "posthog.mycompany.com"). Overrides the region setting when provided. limitnumber No Number of results to return (default: 50, e.g., 10, 25, 50) offsetnumber No Number of results to skip for pagination (e.g., 0, 50, 100)
Parameter Type Description recordingsarray List of session recordings ↳ id string Recording ID ↳ distinct_id string User distinct ID ↳ viewed boolean Whether recording has been viewed ↳ recording_duration number Recording duration in seconds ↳ active_seconds number Active time in seconds ↳ inactive_seconds number Inactive time in seconds ↳ start_time string Recording start timestamp ↳ end_time string Recording end timestamp ↳ click_count number Number of clicks ↳ keypress_count number Number of keypresses ↳ console_log_count number Number of console logs ↳ console_warn_count number Number of console warnings ↳ console_error_count number Number of console errors ↳ person object Person information countnumber Total number of recordings nextstring URL for next page of results previousstring URL for previous page of results
Get details of a specific session recording in PostHog by ID.
Inputs and outputsParameter Type Required Description apiKeystring Yes PostHog Personal API Key projectIdstring Yes PostHog Project ID (e.g., "12345" or project UUID) recordingIdstring Yes Session recording ID to retrieve (e.g., "01234567-89ab-cdef-0123-456789abcdef") regionstring No PostHog cloud region: us or eu (default: us) hoststring No Self-hosted PostHog instance host (e.g., "posthog.mycompany.com"). Overrides the region setting when provided.
Parameter Type Description recordingobject Session recording details ↳ id string Recording ID ↳ distinct_id string User distinct ID ↳ viewed boolean Whether recording has been viewed ↳ recording_duration number Recording duration in seconds ↳ active_seconds number Active time in seconds ↳ inactive_seconds number Inactive time in seconds ↳ start_time string Recording start timestamp ↳ end_time string Recording end timestamp ↳ click_count number Number of clicks ↳ keypress_count number Number of keypresses ↳ console_log_count number Number of console logs ↳ console_warn_count number Number of console warnings ↳ console_error_count number Number of console errors ↳ start_url string Starting URL of the recording ↳ person object Person information
List session recording playlists in a PostHog project. Playlists allow you to organize and curate session recordings.
Inputs and outputsParameter Type Required Description apiKeystring Yes PostHog Personal API Key projectIdstring Yes PostHog Project ID (e.g., "12345" or project UUID) regionstring No PostHog cloud region: us or eu (default: us) hoststring No Self-hosted PostHog instance host (e.g., "posthog.mycompany.com"). Overrides the region setting when provided. limitnumber No Number of results to return (default: 100, e.g., 10, 50, 100) offsetnumber No Number of results to skip for pagination (e.g., 0, 100, 200)
Parameter Type Description playlistsarray List of session recording playlists ↳ id string Playlist ID ↳ short_id string Playlist short ID ↳ name string Playlist name ↳ description string Playlist description ↳ created_at string Creation timestamp ↳ created_by object Creator information ↳ deleted boolean Whether playlist is deleted ↳ filters object Playlist filters ↳ last_modified_at string Last modification timestamp ↳ last_modified_by object Last modifier information ↳ derived_name string Auto-generated name from filters countnumber Total number of playlists nextstring URL for next page of results previousstring URL for previous page of results
List all event definitions in a PostHog project. Event definitions represent tracked events with metadata like descriptions, tags, and usage statistics.
Inputs and outputsParameter Type Required Description projectIdstring Yes PostHog Project ID (e.g., "12345" or project UUID) regionstring Yes PostHog cloud region: us or eu hoststring No Self-hosted PostHog instance host (e.g., "posthog.mycompany.com"). Overrides the region setting when provided. apiKeystring Yes PostHog Personal API Key limitnumber No Number of results to return per page (default: 100, e.g., 10, 50, 100) offsetnumber No The initial index from which to return results (e.g., 0, 100, 200) searchstring No Search term to filter event definitions by name
Parameter Type Description countnumber Total number of event definitions nextstring URL for the next page of results previousstring URL for the previous page of results resultsarray List of event definitions ↳ id string Unique identifier for the event definition ↳ name string Event name ↳ description string Event description ↳ tags array Tags associated with the event ↳ created_at string ISO timestamp when the event was created ↳ last_seen_at string ISO timestamp when the event was last seen ↳ updated_at string ISO timestamp when the event was updated ↳ updated_by object User who last updated the event
Get a PostHog event definition, including its metadata, last-seen timestamp, and verification status.
Inputs and outputsParameter Type Required Description projectIdstring Yes PostHog Project ID (e.g., "12345" or project UUID) eventDefinitionIdstring Yes Event Definition ID to retrieve regionstring Yes PostHog cloud region: us or eu hoststring No Self-hosted PostHog instance host (e.g., "posthog.mycompany.com"). Overrides the region setting when provided. apiKeystring Yes PostHog Personal API Key
Parameter Type Description idstring Unique identifier for the event definition namestring Event name descriptionstring Event description tagsarray Tags associated with the event created_atstring ISO timestamp when the event was created last_seen_atstring ISO timestamp when the event was last seen updated_atstring ISO timestamp when the event was updated updated_byobject User who last updated the event verifiedboolean Whether the event has been verified verified_atstring ISO timestamp when the event was verified verified_bystring User who verified the event
Update an event definition in PostHog. Can modify description, tags, and verification status to maintain clean event schemas.
Inputs and outputsParameter Type Required Description projectIdstring Yes PostHog Project ID (e.g., "12345" or project UUID) eventDefinitionIdstring Yes Event Definition ID to update regionstring Yes PostHog cloud region: us or eu hoststring No Self-hosted PostHog instance host (e.g., "posthog.mycompany.com"). Overrides the region setting when provided. apiKeystring Yes PostHog Personal API Key descriptionstring No Updated description for the event tagsstring No Comma-separated list of tags to associate with the event verifiedboolean No Whether to mark the event as verified
Parameter Type Description idstring Unique identifier for the event definition namestring Event name descriptionstring Updated event description tagsarray Updated tags associated with the event created_atstring ISO timestamp when the event was created last_seen_atstring ISO timestamp when the event was last seen updated_atstring ISO timestamp when the event was updated updated_byobject User who last updated the event verifiedboolean Whether the event has been verified verified_atstring ISO timestamp when the event was verified verified_bystring User who verified the event
List all property definitions in a PostHog project. Property definitions represent tracked properties with metadata like descriptions, tags, types, and usage statistics.
Inputs and outputsParameter Type Required Description projectIdstring Yes PostHog Project ID (e.g., "12345" or project UUID) regionstring Yes PostHog cloud region: us or eu hoststring No Self-hosted PostHog instance host (e.g., "posthog.mycompany.com"). Overrides the region setting when provided. apiKeystring Yes PostHog Personal API Key limitnumber No Number of results to return per page (default: 100, e.g., 10, 50, 100) offsetnumber No The initial index from which to return results (e.g., 0, 100, 200) searchstring No Search term to filter property definitions by name typestring No Filter by property type: event, person, or group
Parameter Type Description countnumber Total number of property definitions nextstring URL for the next page of results previousstring URL for the previous page of results resultsarray List of property definitions ↳ id string Unique identifier for the property definition ↳ name string Property name ↳ description string Property description ↳ tags array Tags associated with the property ↳ is_numerical boolean Whether the property is numerical ↳ is_seen_on_filtered_events boolean Whether the property is seen on filtered events ↳ property_type string The data type of the property ↳ type string Property type: event, person, group, or session ↳ created_at string ISO timestamp when the property was created ↳ updated_at string ISO timestamp when the property was updated ↳ updated_by object User who last updated the property
Get a PostHog property definition, including its metadata, type, and verification status.
Inputs and outputsParameter Type Required Description projectIdstring Yes PostHog Project ID (e.g., "12345" or project UUID) propertyDefinitionIdstring Yes Property Definition ID to retrieve regionstring Yes PostHog cloud region: us or eu hoststring No Self-hosted PostHog instance host (e.g., "posthog.mycompany.com"). Overrides the region setting when provided. apiKeystring Yes PostHog Personal API Key
Parameter Type Description idstring Unique identifier for the property definition namestring Property name descriptionstring Property description tagsarray Tags associated with the property is_numericalboolean Whether the property is numerical is_seen_on_filtered_eventsboolean Whether the property is seen on filtered events property_typestring The data type of the property typestring Property type: event, person, group, or session created_atstring ISO timestamp when the property was created updated_atstring ISO timestamp when the property was updated updated_byobject User who last updated the property verifiedboolean Whether the property has been verified verified_atstring ISO timestamp when the property was verified verified_bystring User who verified the property
Update a property definition in PostHog. Can modify description, tags, property type, and verification status to maintain clean property schemas.
Inputs and outputsParameter Type Required Description projectIdstring Yes PostHog Project ID (e.g., "12345" or project UUID) propertyDefinitionIdstring Yes Property Definition ID to update regionstring Yes PostHog cloud region: us or eu hoststring No Self-hosted PostHog instance host (e.g., "posthog.mycompany.com"). Overrides the region setting when provided. apiKeystring Yes PostHog Personal API Key descriptionstring No Updated description for the property tagsstring No Comma-separated list of tags to associate with the property verifiedboolean No Whether to mark the property as verified property_typestring No The data type of the property (e.g., String, Numeric, Boolean, DateTime, etc.)
Parameter Type Description idstring Unique identifier for the property definition namestring Property name descriptionstring Updated property description tagsarray Updated tags associated with the property is_numericalboolean Whether the property is numerical is_seen_on_filtered_eventsboolean Whether the property is seen on filtered events property_typestring The data type of the property typestring Property type: event, person, group, or session created_atstring ISO timestamp when the property was created updated_atstring ISO timestamp when the property was updated updated_byobject User who last updated the property verifiedboolean Whether the property has been verified verified_atstring ISO timestamp when the property was verified verified_bystring User who verified the property
List all projects in the organization. Returns project details including IDs, names, API tokens, and settings. Useful for getting project IDs needed by other endpoints.
Inputs and outputsParameter Type Required Description apiKeystring Yes PostHog Personal API Key regionstring No Cloud region: us or eu (default: us) hoststring No Self-hosted PostHog instance host (e.g., "posthog.mycompany.com"). Overrides the region setting when provided.
Parameter Type Description projectsarray List of projects with their configuration and settings ↳ id number Project ID ↳ uuid string Project UUID ↳ organization string Organization UUID ↳ api_token string Project API token for ingestion ↳ app_urls array Allowed app URLs ↳ name string Project name ↳ slack_incoming_webhook string Slack webhook URL for notifications ↳ created_at string Project creation timestamp ↳ updated_at string Last update timestamp ↳ anonymize_ips boolean Whether IP anonymization is enabled ↳ completed_snippet_onboarding boolean Whether snippet onboarding is completed ↳ ingested_event boolean Whether any event has been ingested ↳ test_account_filters array Filters for test accounts ↳ is_demo boolean Whether this is a demo project ↳ timezone string Project timezone ↳ data_attributes array Custom data attributes
Get a PostHog project by ID, including its configuration and capture settings.
Inputs and outputsParameter Type Required Description projectIdstring Yes Project ID (e.g., "12345" or project UUID) apiKeystring Yes PostHog Personal API Key regionstring No Cloud region: us or eu (default: us) hoststring No Self-hosted PostHog instance host (e.g., "posthog.mycompany.com"). Overrides the region setting when provided.
Parameter Type Description projectobject Detailed project information with all configuration settings ↳ id number Project ID ↳ uuid string Project UUID ↳ organization string Organization UUID ↳ api_token string Project API token for ingestion ↳ app_urls array Allowed app URLs ↳ name string Project name ↳ slack_incoming_webhook string Slack webhook URL for notifications ↳ created_at string Project creation timestamp ↳ updated_at string Last update timestamp ↳ anonymize_ips boolean Whether IP anonymization is enabled ↳ completed_snippet_onboarding boolean Whether snippet onboarding is completed ↳ ingested_event boolean Whether any event has been ingested ↳ test_account_filters array Filters for test accounts ↳ is_demo boolean Whether this is a demo project ↳ timezone string Project timezone ↳ data_attributes array Custom data attributes ↳ person_display_name_properties array Properties used for person display names ↳ correlation_config object Configuration for correlation analysis ↳ autocapture_opt_out boolean Whether autocapture is disabled ↳ autocapture_exceptions_opt_in boolean Whether exception autocapture is enabled ↳ session_recording_opt_in boolean Whether session recording is enabled ↳ capture_console_log_opt_in boolean Whether console log capture is enabled ↳ capture_performance_opt_in boolean Whether performance capture is enabled
List all organizations the user has access to. Returns organization details including name, slug, membership level, and available product features.
Inputs and outputsParameter Type Required Description apiKeystring Yes PostHog Personal API Key regionstring No Cloud region: us or eu (default: us) hoststring No Self-hosted PostHog instance host (e.g., "posthog.mycompany.com"). Overrides the region setting when provided.
Parameter Type Description organizationsarray List of organizations with their settings and features ↳ id string Organization ID (UUID) ↳ name string Organization name ↳ slug string Organization slug ↳ created_at string Organization creation timestamp ↳ updated_at string Last update timestamp ↳ membership_level number User membership level in organization ↳ plugins_access_level number Access level for plugins/apps ↳ teams array List of team IDs in this organization ↳ available_product_features array Available product features and their limits
Get a PostHog organization by ID, including its settings, features, usage, and teams.
Inputs and outputsParameter Type Required Description organizationIdstring Yes Organization ID (e.g., "01234567-89ab-cdef-0123-456789abcdef") apiKeystring Yes PostHog Personal API Key regionstring No Cloud region: us or eu (default: us) hoststring No Self-hosted PostHog instance host (e.g., "posthog.mycompany.com"). Overrides the region setting when provided.
Parameter Type Description organizationobject Detailed organization information with settings and features ↳ id string Organization ID (UUID) ↳ name string Organization name ↳ slug string Organization slug ↳ created_at string Organization creation timestamp ↳ updated_at string Last update timestamp ↳ membership_level number User membership level in organization ↳ plugins_access_level number Access level for plugins/apps ↳ teams array List of team IDs in this organization ↳ available_product_features array Available product features with their limits and descriptions ↳ domain_whitelist array Whitelisted domains for organization ↳ is_member_join_email_enabled boolean Whether member join emails are enabled ↳ metadata object Organization metadata ↳ customer_id string Customer ID for billing ↳ available_features array List of available feature flags for organization ↳ usage object Organization usage statistics