Skip to Content

PosthogApi

Description: Tools that enable LLMs to interact directly with the PostHog API.

Author: Arcade

Auth: API Key

PyPI VersionLicensePython VersionsWheel StatusDownloads

PosthogApi is a Starter MCP Server: each tool mirrors one HTTP endpoint and offers LLMs a way to interact with the low-level API.


Differently from Optimized MCP Servers, Starter tools are heavily influenced by the original API design, which is not usually optimized for LLM usage. For this reason, we recommend thoroughly evaluating the tools with your Agents or chatbots before using it in production. Read more about Optimized vs Starter tools.

The PosthogApi Server offers a comprehensive suite of for managing and analyzing data within the PostHog platform. can leverage these tools to:

Configuration

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets) The PosthogApi Server requires two secrets to authenticate with your PostHog instance:

Getting Your PostHog Server URL

The server URL depends on your PostHog deployment:

  • PostHog Cloud (US Region): https://us.posthog.com
  • PostHog Cloud (EU Region): https://eu.posthog.com
  • Self-Hosted: Use your instance’s base URL (e.g., https://analytics.yourdomain.com)

You can verify your server URL by checking your PostHog settings or the URL you use to access PostHog.

Getting Your Personal API Key

To generate a PostHog personal :

  1. Log in to your PostHog
  2. Click your avatar in the bottom-left corner
  3. Select the gear icon to open “ settings”
  4. Navigate to the “Personal ” section
  5. Click ”+ Create a personal
  6. Provide a descriptive label for the key
  7. Select the necessary scopes (choose only the scopes required for your use case)
  8. Click “Create key”
  9. Copy and securely store the key immediately - it won’t be shown again

For more details on authentication and API usage, refer to the PostHog API documentation .

Once you have both values, configure them as secrets when using the PosthogApi Server. Learn more about configuring secrets.

Available Tools

Tool NameDescription
PosthogApi.RetrieveAppMetricsRetrieve application metrics for a specific project environment.
PosthogApi.RetrieveAppMetricsErrorDetailsRetrieve detailed error metrics for a specific app.
PosthogApi.RetrieveAppMetricsExportsRetrieve historical app metrics exports for a project.
PosthogApi.RetrieveHistoricalAppMetricsRetrieve historical app metrics for a specific environment.
PosthogApi.ListEnvBatchExportsRetrieve the list of batch exports for a specific environment.
PosthogApi.CreateBatchExportForEnvironmentsInitiate a batch export for selected environments.
PosthogApi.ListBatchExportBackfillsRetrieve a list of batch export backfills.
PosthogApi.CreateBackfillForBatchExportCreate a new backfill for a BatchExport.
PosthogApi.RetrieveBatchExportBackfillRetrieve details of a batch export backfill.
PosthogApi.CancelBatchExportBackfillCancel a batch export backfill process.
PosthogApi.ListEnvironmentExportsFetches a list of batch export runs for a given environment.
PosthogApi.RetrieveEnvironmentExportRunRetrieve details of a specific environment export run.
PosthogApi.CancelBatchExportRunCancel an ongoing batch export run.
PosthogApi.RetrieveEnvironmentBatchExportLogsRetrieve logs from a specific environment batch export run.
PosthogApi.RetryBatchExportRunInitiate a retry of a batch export run.
PosthogApi.RetrieveEnvironmentBatchExportRetrieve details of a specific environment batch export.
PosthogApi.UpdateEnvironmentBatchExportsUpdate environment batch exports details.
PosthogApi.UpdateEnvironmentExportUpdate environment export batch details.
PosthogApi.DeleteBatchExportDelete a batch export in a specific environment.
PosthogApi.TriggerBatchExportBackfillTrigger a backfill for a BatchExport.
PosthogApi.RetrieveEnvironmentLogsRetrieve logs from environment batch exports.
PosthogApi.PauseBatchExportPause a batch export operation.
PosthogApi.RunEnvironmentTestStepInitiate a test step execution for environment batch exports.
PosthogApi.UnpauseBatchExportUnpause a paused BatchExport to resume data export.
PosthogApi.CreateEnvironmentBatchExportInitiate a batch export for environment tests.
PosthogApi.GetEnvironmentsBatchExportStatusGets the status of a test batch export for environments.
PosthogApi.ListEnvironmentDashboardsRetrieve dashboards for a specific environment.
PosthogApi.CreateEnvironmentDashboardCreate a new dashboard within a specific environment.
PosthogApi.ListCollaboratorsOnDashboardRetrieve collaborators for a dashboard in a project.
PosthogApi.AddDashboardCollaboratorAdd a collaborator to a specific dashboard.
PosthogApi.RemoveDashboardCollaboratorRemove a collaborator from a dashboard in a specific environment.
PosthogApi.ListSharedDashboardsRetrieve shared dashboard information for a specified project.
PosthogApi.CreateDashboardSharingPasswordCreate a password for sharing a dashboard.
PosthogApi.DeleteDashboardSharingPasswordDelete a password from a dashboard's sharing configuration.
PosthogApi.RefreshDashboardSharingRefresh a dashboard's sharing link in Datadog environments.
PosthogApi.GetEnvironmentDashboardRetrieve a specific dashboard for an environment.
PosthogApi.UpdateEnvironmentDashboardUpdate settings of an environment dashboard.
PosthogApi.UpdateDashboardEnvironmentUpdate specific dashboard settings in an environment.
PosthogApi.DeleteDashboardMark a dashboard as deleted.
PosthogApi.MoveDashboardTileMove a tile's position in a specific dashboard.
PosthogApi.StreamDashboardTilesStream dashboard metadata and tiles via Server-Sent Events.
PosthogApi.CreateEnvironmentDashboardFromTemplateCreate an environment dashboard from a template.
PosthogApi.ListDataColorThemesRetrieve data color themes for a specific environment.
PosthogApi.CreateDataColorThemeCreate a new data color theme for the environment.
PosthogApi.RetrieveEnvironmentColorThemeRetrieve color theme data for a specific environment.
PosthogApi.UpdateEnvironmentColorThemeUpdate the color theme of an environment.
PosthogApi.UpdateEnvironmentThemeUpdate color themes for project environments.
PosthogApi.DeleteEnvironmentColorThemeDelete a specific environment's color theme in Datadog.
PosthogApi.ListEnvironmentDatasetItemsRetrieve dataset items for a specific environment.
PosthogApi.CreateEnvironmentDatasetItemCreate a dataset item in the specified environment.
PosthogApi.RetrieveEnvironmentDatasetItemRetrieve a specific environment dataset item by ID.
PosthogApi.UpdateEnvironmentDatasetItemUpdate an environment dataset item in a project.
PosthogApi.ModifyEnvironmentDatasetItemUpdate specific fields in an environment dataset item.
PosthogApi.DeleteEnvironmentDatasetItemMarks a dataset item in an environment as deleted.
PosthogApi.ListEnvironmentDatasetsRetrieve datasets for a specified project environment.
PosthogApi.CreateEnvironmentDatasetCreate a dataset environment in a specified project.
PosthogApi.RetrieveEnvironmentDatasetRetrieve a specific environment dataset by ID.
PosthogApi.UpdateEnvironmentDatasetUpdates details of a specific environment dataset.
PosthogApi.ModifyEnvironmentDatasetUpdate dataset in a specific environment.
PosthogApi.DeleteDatasetDelete a dataset by setting it to deleted status.
PosthogApi.FetchEndpointRunStatusRetrieve the run status of an endpoint.
PosthogApi.UpdateEnvironmentEndpointUpdate an existing environment endpoint.
PosthogApi.GetLastExecutionTimesRetrieve last execution times for multiple endpoints.
PosthogApi.ListErrorTrackingAssignmentRulesRetrieve error tracking assignment rules for a given environment.
PosthogApi.CreateErrorTrackingAssignmentRuleCreate a new error tracking assignment rule.
PosthogApi.RetrieveErrorTrackingAssignmentRulesRetrieve error tracking assignment rules for a project.
PosthogApi.UpdateErrorTrackingRulesUpdates error tracking assignment rules for a project.
PosthogApi.UpdateErrorTrackingAssignmentRulesPartially update error tracking assignment rules for environments.
PosthogApi.DeleteErrorTrackingRuleDeletes a specified error tracking assignment rule.
PosthogApi.ReorderAssignmentRulesReorder error tracking assignment rules in a project environment.
PosthogApi.ListErrorTrackingFingerprintsRetrieve error tracking fingerprints for a specific project.
PosthogApi.GetErrorTrackingFingerprintRetrieve a specific error tracking fingerprint by ID.
PosthogApi.DeleteErrorFingerprintMark an error fingerprint as deleted in Datadog.
PosthogApi.ResolveGithubFileLinksResolve GitHub file links for error tracking projects.
PosthogApi.ListErrorTrackingGroupingRulesRetrieve error tracking grouping rules for a project.
PosthogApi.CreateErrorTrackingGroupingRuleCreate a new error tracking grouping rule for a project.
PosthogApi.RetrieveErrorGroupingRulesRetrieve error tracking grouping rules for an environment.
PosthogApi.UpdateErrorTrackingGroupingRulesUpdate error tracking grouping rules for a project.
PosthogApi.ModifyGroupingRulesUpdate error tracking grouping rules for a project.
PosthogApi.RemoveErrorTrackingRuleDelete an error tracking grouping rule in a project.
PosthogApi.ReorderErrorTrackingRulesReorder error tracking grouping rules in a project.
PosthogApi.ListErrorTrackingReleasesRetrieve releases from error tracking for a specific environment.
PosthogApi.CreateErrorTrackingReleaseCreate a new error tracking release for a project.
PosthogApi.RetrieveErrorTrackingReleaseRetrieves details of a specific error tracking release.
PosthogApi.UpdateErrorTrackingReleasesUpdate error tracking releases in a project environment.
PosthogApi.UpdateErrorTrackingReleaseUpdate details for an error tracking release.
PosthogApi.DeleteErrorTrackingReleaseDeletes a specific error tracking release from a project environment.
PosthogApi.RetrieveErrorTrackingReleaseHashRetrieve details for a specific error tracking release hash.
PosthogApi.ListErrorTrackingSuppressionRulesList error tracking suppression rules for a project environment.
PosthogApi.CreateErrorTrackingSuppressionRuleCreate a new error tracking suppression rule.
PosthogApi.GetSuppressionRuleDetailsRetrieve details of a suppression rule in error tracking.
PosthogApi.UpdateErrorTrackingSuppressionRulesUpdate error tracking suppression rules for a project.
PosthogApi.UpdateErrorSuppressionRuleUpdate error tracking suppression rules for a project.
PosthogApi.RemoveErrorSuppressionRuleDelete an error tracking suppression rule.
PosthogApi.ReorderErrorTrackingSuppressionRulesReorder error tracking suppression rules for a project.
PosthogApi.ListErrorTrackingSymbolSetsRetrieve error tracking symbol sets for a project.
PosthogApi.CreateSymbolSetCreate a new symbol set for error tracking in a project.
PosthogApi.RetrieveErrorTrackingSymbolSetRetrieve details of a specific error tracking symbol set.
PosthogApi.UpdateEnvironmentSymbolSetUpdate error tracking symbol sets in environments.
PosthogApi.UpdateErrorTrackingSymbolsUpdate symbol sets for error tracking in a specific environment.
PosthogApi.DeleteSymbolSetDeletes an error tracking symbol set by ID.
PosthogApi.CompleteSymbolSetUploadFinalize the upload of symbol sets in Datadog error tracking.
PosthogApi.CompleteSymbolSetsUploadComplete the uploading process for symbol sets in error tracking.
PosthogApi.StartErrorTrackingUploadInitiate a bulk upload for error tracking symbols.
PosthogApi.StartSymbolUploadInitiate symbol set upload for error tracking environments.
PosthogApi.CreateEvaluationRunInitiate a new evaluation run for a project.
PosthogApi.ListEnvironmentEvaluationsRetrieve evaluations for a specific project environment.
PosthogApi.CreateEnvironmentEvaluationCreate a new environment evaluation for a project.
PosthogApi.RetrieveEnvironmentEvaluationRetrieve details of a specific environment evaluation.
PosthogApi.UpdateEnvironmentEvaluationUpdate an environment's evaluation in a project.
PosthogApi.ModifyEnvironmentEvaluationUpdate specific environment evaluation details.
PosthogApi.DeleteEvaluationMarks an evaluation as deleted in the environment.
PosthogApi.RetrieveEnvironmentEventRetrieve details of a specific environment event.
PosthogApi.RetrieveEnvironmentEventValuesRetrieve event values for a specific environment.
PosthogApi.EnvironmentExportsOverviewRetrieve a list of exports for a specified environment.
PosthogApi.CreateEnvironmentExportsInitiates the creation of environment exports in Datadog.
PosthogApi.RetrieveEnvironmentExportsRetrieve details of an environment export in Datadog.
PosthogApi.RetrieveEnvironmentExportContentRetrieve content of a specific environment export.
PosthogApi.ListProjectFileSystemsRetrieve file systems for a given project environment.
PosthogApi.CreateFileSystemEnvironmentCreate a new file system environment in a project.
PosthogApi.GetEnvironmentFileSystemDetailsRetrieve details of a file system in a specific environment.
PosthogApi.UpdateEnvironmentFileSystemUpdate a file system for a specific environment.
PosthogApi.ModifyEnvironmentFileSystemPartially update a file system environment in a project.
PosthogApi.DeleteFilesystemEnvironmentDeletes a file system in the specified environment.
PosthogApi.GetFileCountInFolderRetrieve the count of all files in a specified folder.
PosthogApi.CreateEnvironmentFileSystemLinkCreate a link between environment and file system.
PosthogApi.MoveFileWithinEnvironmentMove a file within an environment's file system.
PosthogApi.CountFilesInDirectoryGet count of all files in a specified folder.
PosthogApi.CreateEnvironmentFileSystemLogViewCreate a file system log view for an environment.
PosthogApi.RetrieveUnfiledFileSystemItemsRetrieve unfiled file system items for a project.
PosthogApi.ListFileSystemShortcutsRetrieve file system shortcuts for a specified project.
PosthogApi.CreateFileSystemShortcutCreate a file system shortcut for a project environment.
PosthogApi.RetrieveFileSystemShortcutRetrieve details of a specific file system shortcut.
PosthogApi.UpdateEnvFileSystemShortcutUpdates a file system shortcut in a specified environment.
PosthogApi.ModifyEnvFileSystemShortcutUpdate a file system shortcut in a specific environment.
PosthogApi.DeleteFileSystemShortcutDeletes a file system shortcut in an environment.
PosthogApi.ListEnvironmentGroupsRetrieve all groups for a specific environment's group type.
PosthogApi.CreateEnvironmentGroupCreate a new environment group in a project.
PosthogApi.RetrieveEnvironmentGroupActivityRetrieve activity data for groups within an environment.
PosthogApi.DeleteEnvironmentGroupPropertyDeletes a property from an environment group.
PosthogApi.FindEnvironmentGroupsRetrieve details of environment groups by project ID.
PosthogApi.RetrieveEnvironmentPropertyDefinitionsRetrieve property definitions for environment groups.
PosthogApi.RetrieveEnvironmentPropertyValuesRetrieve property values of environments within a project.
PosthogApi.GetRelatedEnvironmentGroupsRetrieve related environment groups for a project.
PosthogApi.UpdateEnvironmentGroupPropertyUpdate a property of an environment group.
PosthogApi.ListProjectHogFunctionsRetrieve a list of hog functions for a given project.
PosthogApi.CreateHogFunctionEnvironmentTrack and create a new file system view in an environment.
PosthogApi.TrackHogFunctionViewsTracks views on a specific hog function by logging access.
PosthogApi.UpdateHogFunctionsUpdate and log views of file system resources.
PosthogApi.UpdateHogFunctionViewLogLog a new view for an environment's hog function.
PosthogApi.DeleteHogFunctionMarks a hog function as deleted in a project.
PosthogApi.CreateHogFunctionBroadcastCreate a broadcast for hog functions in an environment.
PosthogApi.TrackHogFunctionInvocationTrack and log hog function invocations in a project.
PosthogApi.RetrieveHogFunctionLogsRetrieve logs for hog function views in an environment.
PosthogApi.RetrieveHogFunctionMetricsRetrieve hog function metrics for a specific environment.
PosthogApi.RetrieveHogFunctionMetricsTotalsRetrieve total metrics for a specific HOG function.
PosthogApi.RetrieveHogFunctionIconRetrieve the icon for a specified hog function view access.
PosthogApi.RetrieveEnvironmentHogFunctionIconsLogs and retrieves hog function icons for a given environment.
PosthogApi.UpdateHogFunctionsOrderUpdate the execution order of HogFunctions.
PosthogApi.GetEnvironmentInsightsRetrieve insights for a specific environment.
PosthogApi.CreateEnvironmentInsightCreate a new insight for an environment.
PosthogApi.ListEnvironmentInsightsRetrieve sharing details of environment insights.
PosthogApi.CreateSharingPasswordCreate a new password for sharing configuration.
PosthogApi.DeleteInsightSharingPasswordDelete a password from an insight's sharing configuration.
PosthogApi.RefreshInsightsSharingRefresh sharing status of insights in a project.
PosthogApi.FetchEnvironmentInsightsRetrieve insights for a specific environment.
PosthogApi.UpdateEnvironmentInsightsUpdate insights for a specified environment.
PosthogApi.UpdateEnvironmentInsightsLogLog a view of environment insights to track changes.
PosthogApi.DeleteEnvironmentInsightMarks an environment insight as deleted.
PosthogApi.RetrieveEnvironmentInsightActivityRetrieve logs of views on environment insights.
PosthogApi.TrackEnvironmentInsightsRetrieve and log environment activity insights.
PosthogApi.CancelInsightCreationCancel the creation of an environment insight.
PosthogApi.RetrieveLastViewedInsightsFetches the last 5 insights viewed, sorted by recency.
PosthogApi.UpdateInsightViewTimestampsUpdates the view timestamps for specific insights.
PosthogApi.ListEnvironmentIntegrationsRetrieve a list of integrations for a specified environment.
PosthogApi.CreateEnvironmentIntegrationCreate a new integration for a specified environment.
PosthogApi.RetrieveIntegrationDetailsRetrieve integration details for a specific environment.
PosthogApi.DeleteEnvironmentIntegrationDelete an integration from a project environment.
PosthogApi.RetrieveIntegrationChannelsRetrieve integration channels for a specific project.
PosthogApi.RetrieveClickupListsRetrieve ClickUp lists for specific project integrations.
PosthogApi.GetClickupSpacesRetrieve ClickUp spaces for a specific integration.
PosthogApi.GetClickupWorkspacesRetrieve ClickUp workspaces for a specific integration.
PosthogApi.VerifyEmailIntegrationVerify email address for an integration's environment.
PosthogApi.GetGithubReposForIntegrationRetrieve GitHub repositories linked to a Datadog integration.
PosthogApi.RetrieveGoogleAccessibleAccountsRetrieve Google accessible accounts for a given integration.
PosthogApi.GetGoogleConversionActionsRetrieve Google conversion actions for a specific environment.
PosthogApi.RetrieveIntegrationTeamsRetrieve linear teams for an integration in a project.
PosthogApi.GetLinkedinAdsAccountsRetrieve LinkedIn Ads accounts linked to a project.
PosthogApi.RetrieveLinkedinAdsConversionRulesRetrieve LinkedIn Ads conversion rules for a project.
PosthogApi.GetTwilioPhoneNumbersRetrieve Twilio phone numbers for a specific integration.
PosthogApi.RetrieveIntegrationAuthorizationRetrieve integration authorization status for a project.
PosthogApi.RetrieveEnvironmentLogAttributesRetrieve log attributes for a specific environment.
PosthogApi.CreateLogsQueryForEnvironmentCreate a logs query for a specific environment.
PosthogApi.CreateEnvironmentLogSparklineCreate a sparkline for environment logs in Datadog.
PosthogApi.RetrieveEnvironmentLogsValuesFetch log values for a given environment and project.
PosthogApi.CreateMaxToolsInsightCreate an insight for maximum tools in a project.
PosthogApi.GetPersistedFoldersRetrieve a list of persisted folders for a given environment.
PosthogApi.CreatePersistedFolderCreate a persisted folder in a Datadog environment.
PosthogApi.RetrievePersistedEnvironmentFolderRetrieve details of a persisted environment folder by ID.
PosthogApi.UpdateEnvironmentFolderUpdate a specific folder in an environment project.
PosthogApi.ModifyEnvFolderPartially update a specific environment folder.
PosthogApi.DeletePersistedFolderDelete a persisted folder from a project environment.
PosthogApi.RetrievePersonDetailsRetrieve details of a specific person in a project.
PosthogApi.UpdatePersonPropertiesUpdate specific properties of a person in a project.
PosthogApi.ModifyPersonsInEnvironmentModify or remove persons in a given environment.
PosthogApi.DeletePersonRecordDeletes an individual person record from a project.
PosthogApi.RetrievePersonActivityRetrieve a person's activity from the environment.
PosthogApi.QueuePersonEventsDeletionQueue the deletion of all events for a specific person.
PosthogApi.DeletePersonPropertyDeletes a specific property from a person.
PosthogApi.DeletePersonRecordingsQueue deletion of all recordings associated with a person.
PosthogApi.RetrievePersonPropertyTimelineRetrieve timeline of property changes for a person.
PosthogApi.ReadOrDeletePersonRead or delete a person's record in the environment.
PosthogApi.UpdatePersonPropertyUpdate a specific property for a person in an environment.
PosthogApi.GetPersonsActivityRetrieve activity data for persons in a project environment.
PosthogApi.BulkDeletePersonsInEnvironmentBulk delete persons by IDs in a Datadog environment.
PosthogApi.RetrievePersonsCohortsRetrieve persons cohort data from specified environments.
PosthogApi.FetchPersonsFunnelDataFetch persons data from the funnel in a specified environment.
PosthogApi.CreatePersonsFunnelCreate a funnel for tracking persons.
PosthogApi.RetrievePersonsFunnelCorrelationRetrieve persons related to funnel correlation in an environment.
PosthogApi.CreatePersonsFunnelCorrelationCreate a funnel correlation for persons in a project.
PosthogApi.RetrievePersonsLifecycleRetrieve lifecycle details of persons in a project.
PosthogApi.ResetDistinctIdReset a distinct_id for a deleted person.
PosthogApi.RetrievePersonStickinessRetrieve stickiness data for persons in a project environment.
PosthogApi.RetrievePersonsTrendsRetrieve trends data for persons in a specified environment.
PosthogApi.RetrievePersonsDataRetrieve information about persons in a specified environment.
PosthogApi.ListEnvironmentPluginLogsRetrieve logs for a plugin configuration in a specific environment.
PosthogApi.GetEnvironmentQueryResultsRetrieve results of an environment query for a project.
PosthogApi.DeleteEnvironmentQueryDelete a specific query environment.
PosthogApi.RetrieveQueryLogDetailsRetrieve query log details for a given query ID.
PosthogApi.CheckPosthogEnvAuthenticationAsyncCheck authentication for Datadog environment asynchronously.
PosthogApi.RetrieveEnvironmentDraftSqlRetrieve draft SQL for a specific environment.
PosthogApi.ListSyntheticPlaylistsRetrieve synthetic session recording playlists.
PosthogApi.CreateSessionRecordingPlaylistCreate a new session recording playlist for an environment.
PosthogApi.RetrieveSessionRecordingPlaylistsRetrieve a session recording playlist for a specific project.
PosthogApi.UpdateSessionRecordingPlaylistUpdate a session recording playlist within an environment.
PosthogApi.ModifyRecordingPlaylistUpdate session recording playlists for a given project and ID.
PosthogApi.DeleteSessionRecordingPlaylistMark a session recording playlist as deleted.
PosthogApi.RetrieveSessionRecordingsRetrieve session recordings for a specified playlist.
PosthogApi.CreateSessionRecordingPlaylistEntryAdd a recording to a session playlist.
PosthogApi.DeleteSessionRecordingDeletes a session recording from a playlist.
PosthogApi.ListSessionRecordingsRetrieve session recordings for a specific environment.
PosthogApi.RetrieveSessionRecordingRetrieve a specific session recording by ID.
PosthogApi.ModifySessionRecordingUpdate session recording details for a specific environment.
PosthogApi.UpdateSessionRecordingPartially update session recording details.
PosthogApi.RemoveSessionRecordingDelete a session recording from an environment.
PosthogApi.ListSessionRecordingSharingRetrieve sharing details for a specific session recording.
PosthogApi.GenerateRecordingPasswordCreate a password for session recording sharing.
PosthogApi.DeleteSharingPasswordDelete a password from the sharing configuration.
PosthogApi.RefreshSessionRecordingSharingRefreshes the sharing status of a session recording.
PosthogApi.GenerateSessionSummariesGenerate AI summaries for session recordings.
PosthogApi.GenerateIndividualSessionSummaryGenerate individual AI summaries for each session.
PosthogApi.RetrieveEnvironmentSessionPropertiesRetrieve session property definitions for an environment.
PosthogApi.GetEnvironmentSessionValuesRetrieve session values for a specific environment.
PosthogApi.ListEnvironmentSubscriptionsRetrieve subscriptions for environment projects.
PosthogApi.CreateEnvironmentSubscriptionCreate a new subscription for an environment.
PosthogApi.RetrieveSubscriptionDetailsRetrieve details of a project's subscription environment.
PosthogApi.UpdateEnvironmentSubscriptionUpdate environment subscription for a project.
PosthogApi.ModifyEnvironmentSubscriptionUpdate a subscription for a specific environment.
PosthogApi.DeleteEnvironmentSubscriptionMarks an environment subscription as deleted in Datadog.
PosthogApi.ListUserInterviewsRetrieve user interviews for a project environment.
PosthogApi.CreateUserInterviewEnvironmentCreate a user interview environment in a project.
PosthogApi.RetrieveUserInterviewRetrieve details of a specific user interview.
PosthogApi.UpdateUserInterviewEnvironmentUpdate environment details for a user interview.
PosthogApi.ModifyInterviewEnvironmentPartially update a user interview environment.
PosthogApi.DeleteUserInterviewDelete a user interview from an environment.
PosthogApi.ListWarehouseSavedQueriesRetrieve a list of saved warehouse queries for a project.
PosthogApi.CreateWarehouseSavedQueryCreate a new warehouse saved query.
PosthogApi.GetWarehouseSavedQueryRetrieve details of a warehouse saved query.
PosthogApi.UpdateWarehouseQueryUpdates a saved query in the data warehouse.
PosthogApi.UpdateWarehouseSavedQueryUpdate a warehouse saved query in a specified environment.
PosthogApi.DeleteSavedQueryDelete a saved query from the warehouse.
PosthogApi.RetrieveEnvironmentQueryActivityRetrieve activity details of a saved warehouse query.
PosthogApi.FetchSavedQueryAncestorsRetrieve ancestors of a saved query, including parents and beyond.
PosthogApi.CancelSavedQueryWorkflowCancel a running saved query workflow in Datadog.
PosthogApi.GetDescendantsSavedQueryRetrieve descendants of a specified saved query.
PosthogApi.UndoMaterializationPosthogRevert materialization to the original view in Datadog.
PosthogApi.RunSavedQueryExecute a saved query in the Datadog environment.
PosthogApi.ListWarehouseTablesRetrieve a list of warehouse tables for a given environment.
PosthogApi.CreateWarehouseTableCreate a new warehouse table for a specified environment.
PosthogApi.RetrieveWarehouseTableRetrieve details of a specific warehouse table.
PosthogApi.ModifyWarehouseTableUpdate a specific warehouse table's information.
PosthogApi.UpdateWarehouseTableUpdate specific warehouse tables in a project.
PosthogApi.DeleteWarehouseTableDelete a specific warehouse table in a project.
PosthogApi.RefreshWarehouseTableSchemaRefresh the schema of a warehouse table.
PosthogApi.UpdateWarehouseTableSchemaUpdate the schema of a warehouse table.
PosthogApi.ManageWarehouseTableCreate a warehouse table in Datadog environments.
PosthogApi.RetrieveWebVitalsRetrieve web vitals for a specific project environment.
PosthogApi.ListOrganizationsRetrieve a list of organizations.
PosthogApi.CreateOrganizationCreate a new organization in Datadog.
PosthogApi.GetOrganizationDetailsRetrieve details of a specific organization.
PosthogApi.UpdateOrganizationDetailsUpdate details for a specific organization.
PosthogApi.UpdateOrganizationInfoPartially update organization information.
PosthogApi.DeleteOrganizationDelete an organization from Datadog.
PosthogApi.RollbackEnvironmentsMigrationTrigger rollback migration for multi-environment projects.
PosthogApi.ListBatchExportsRetrieve a list of batch exports for an organization.
PosthogApi.CreateBatchExportsCreate a new batch export for an organization.
PosthogApi.RetrieveBatchExportDetailsRetrieve details of a specific batch export in an organization.
PosthogApi.UpdateBatchExportsUpdate batch exports for a specific organization.
PosthogApi.ModifyBatchExportsUpdate batch exports for an organization.
PosthogApi.RemoveBatchExportDelete a batch export from an organization.
PosthogApi.InitiateExportBackfillTriggers a backfill for a BatchExport.
PosthogApi.RetrieveBatchExportLogsRetrieve logs from a specific batch export.
PosthogApi.HaltBatchExportPause an ongoing BatchExport process.
PosthogApi.RunBatchExportTestStepRun a test step for a batch export in Datadog.
PosthogApi.ResumeBatchExportUnpause a paused BatchExport for a given organization.
PosthogApi.RunTestStepNewForBatchExportsRun a new test step for batch exports.
PosthogApi.RetrieveBatchExportsTestRetrieve batch exports test details for an organization.
PosthogApi.ListOrganizationDomainsRetrieve a list of domains for a specified organization.
PosthogApi.CreateDomainInOrganizationAdd a new domain to an organization.
PosthogApi.RetrieveDomainDetailsFetch details of a specific domain in an organization.
PosthogApi.UpdateOrganizationDomainUpdate an organization's domain using Datadog's API.
PosthogApi.UpdateDomainPartialPartially update domain information for an organization.
PosthogApi.DeleteDomainRemove a domain from an organization.
PosthogApi.VerifyDomainForOrgVerify a domain for a specified organization.
PosthogApi.ListOrganizationInvitesRetrieve all pending invites for an organization.
PosthogApi.CreateOrganizationInviteSend an invitation to join an organization.
PosthogApi.CancelInvitationCancels an invitation to join an organization.
PosthogApi.CreateBulkInvitesCreate bulk invites for an organization.
PosthogApi.ListOrganizationMembersRetrieve the list of members in an organization.
PosthogApi.UpdateOrganizationMemberUpdate a member's information in an organization.
PosthogApi.UpdateOrganizationMemberDetailsUpdate details of an organization member in Datadog.
PosthogApi.RemoveOrganizationMemberRemove a member from an organization.
PosthogApi.RetrieveMemberScopedApiKeysRetrieve scoped API keys for a member in an organization.
PosthogApi.GetCurrentOrgProjectsRetrieve projects for the current organization.
PosthogApi.CreateProjectForOrganizationCreate a new project for the current organization.
PosthogApi.GetOrganizationProjectDetailsFetch details of a specific project within an organization.
PosthogApi.UpdateProjectDetailsUpdate project details for the current organization.
PosthogApi.UpdateOrganizationProjectUpdate a project's details within an organization.
PosthogApi.DeleteProjectDeletes a project from the current organization.
PosthogApi.RetrieveProjectActivityRetrieve project activity for a specific organization and project.
PosthogApi.UpdateProjectProductIntentUpdate product intent for a specific project in an organization.
PosthogApi.CreateOrganizationProjectCreate a project for the current organization.
PosthogApi.UpdateProjectOnboardingStatusUpdate the onboarding status of a project in an organization.
PosthogApi.DeleteSecretTokenBackupDeletes a secret token backup for a specified project.
PosthogApi.CheckDemoDataGenerationStatusCheck if demo data is being generated for a project.
PosthogApi.ResetProjectTokenReset a project's token in the current organization.
PosthogApi.RotateSecretTokenForProjectRotate the secret token for a specific project.
PosthogApi.GetProxyRecordsRetrieve proxy records for a given organization.
PosthogApi.CreateProxyRecordsCreate a proxy record for an organization.
PosthogApi.RetrieveProxyRecordRetrieve details of a specific proxy record.
PosthogApi.UpdateProxyRecordUpdate a proxy record within an organization.
PosthogApi.ModifyProxyRecordUpdate partial details of a proxy record.
PosthogApi.DeleteProxyRecordDeletes a proxy record for an organization.
PosthogApi.ListOrganizationRolesFetches the list of roles for a specified organization.
PosthogApi.CreateRoleInOrganizationCreate a new role within an organization.
PosthogApi.RetrieveRoleDetailsRetrieve details of a specific role within an organization.
PosthogApi.UpdateOrganizationRoleUpdate an organization's role details.
PosthogApi.UpdateRoleDetailsPartially update organization role details.
PosthogApi.DeleteRoleInOrganizationDelete a specific role within an organization.
PosthogApi.ListRoleMembershipsRetrieve role memberships for a specified role within an organization.
PosthogApi.CreateRoleMembershipCreate a role membership in an organization.
PosthogApi.RemoveRoleMembershipRemove a role membership from an organization.
PosthogApi.ListProjectActionsRetrieve and log actions for a specific project.
PosthogApi.LogTrackFilesystemViewsLog a new view for file system access tracking.
PosthogApi.RetrieveProjectActionRetrieve logs for a specific project action.
PosthogApi.UpdateProjectActionUpdate and track views for a project action in Datadog.
PosthogApi.UpdateActionPartialPartially update an action in a project to track views.
PosthogApi.MarkActionAsDeletedMark an action as deleted in a specific project.
PosthogApi.GetProjectActivityLogFetch the activity log for a specific project.
PosthogApi.ListAvailableAgentsRetrieve a list of agent definitions for tasks.
PosthogApi.RetrieveAgentDefinitionRetrieve a specific agent definition by ID.
PosthogApi.ListAnnotationsForProjectRetrieve annotations for a specific project.
PosthogApi.CreateAnnotationCreate a new annotation for a project.
PosthogApi.RetrieveProjectAnnotationRetrieve details of a specific annotation by ID.
PosthogApi.UpdateAnnotationUpdate an existing annotation by ID.
PosthogApi.ModifyAnnotationUpdate specific details of an annotation in a project.
PosthogApi.DeleteAnnotationMark an annotation as deleted in a project.
PosthogApi.GetAppMetricsRetrieve application metrics for a specific project and ID.
PosthogApi.GetErrorDetailsForAppMetricsRetrieve error details for specific app metrics.
PosthogApi.FetchMetricsHistoryRetrieve historical exports of app metrics.
PosthogApi.RetrieveAppMetricsHistoricalExportsRetrieve historical export data for app metrics.
PosthogApi.FetchBatchExportsRetrieve a list of batch exports for a specific project.
PosthogApi.CreateBatchExportInitiate a batch export for a project.
PosthogApi.ListBackfillExportsRetrieve list of batch export backfills for a project.
PosthogApi.CreateBatchExportBackfillCreate a new backfill for a batch export.
PosthogApi.GetBatchExportBackfillRetrieve details of a specific batch export backfill.
PosthogApi.TerminateBatchExportBackfillCancel a batch export backfill in Datadog.
PosthogApi.ListBatchExportRunsRetrieve batch export runs for a specific project and export.
PosthogApi.RetrieveBatchExportRunRetrieve details of a specific batch export run.
PosthogApi.StopBatchExportRunCancel an ongoing batch export run in a specific project.
PosthogApi.RetrieveBatchExportRunLogsRetrieve logs for a specific batch export run.
PosthogApi.RetryExportRunRetry a batch export run in Datadog.
PosthogApi.RetrievePosthogBatchExportsRetrieve specific Datadog batch export details.
PosthogApi.UpdateBatchExportUpdate an existing batch export in a project.
PosthogApi.EditBatchExportsUpdate specific details of batch exports.
PosthogApi.DestroyBatchExportDeletes a specific batch export in a project.
PosthogApi.StartBatchExportBackfillInitiate a backfill process for a BatchExport.
PosthogApi.RetrieveLogExportsRetrieve logs from batch exports by project and export ID.
PosthogApi.SuspendBatchExportPause an ongoing batch export process in a project.
PosthogApi.RunTestStepBatchExportInitiate a test step for batch exports.
PosthogApi.ReactivateBatchExportUnpause a paused BatchExport in a project.
PosthogApi.RunBatchExportsTestStepTriggers a test step for batch exports in a specified project.
PosthogApi.RetrieveBatchExportTestsRetrieve batch export test details for a project.
PosthogApi.ListProjectCohortsRetrieve a list of cohorts for a given project.
PosthogApi.CreateCohortTrackingLogs a new view on the resource for tracking purposes.
PosthogApi.RetrieveCohortsDataRetrieve cohort details and access logs for a project.
PosthogApi.ModifyCohortViewsUpdate cohort views to track new file system accesses.
PosthogApi.UpdateCohortViewsUpdate and track cohort file system views.
PosthogApi.SetCohortDeletedMark a cohort as deleted in the Datadog project.
PosthogApi.GetCohortActivityRetrieve logs of file system views for a cohort.
PosthogApi.AddPersonsToStaticCohortAdd persons to a static cohort in Datadog.
PosthogApi.RetrieveCohortCalculationHistoryRetrieve calculation history for a specific cohort.
PosthogApi.CreateStaticCohortCopyCreate a static copy of a dynamic cohort.
PosthogApi.GetCohortPersonsRetrieve a list of persons in a specific project cohort.
PosthogApi.RemovePersonFromStaticCohortRemoves a person from a static cohort in a project.
PosthogApi.RetrieveCohortActivityRetrieve logs of cohort activity views.
PosthogApi.ListDashboardTemplatesRetrieve a list of dashboard templates for a project.
PosthogApi.CreateDashboardTemplateCreate a new dashboard template in a Datadog project.
PosthogApi.RetrieveDashboardTemplateRetrieve a specific dashboard template by ID.
PosthogApi.ModifyDashboardTemplateUpdate a Datadog dashboard template.
PosthogApi.UpdateDashboardTemplatePartially update a dashboard template in Datadog.
PosthogApi.DeleteDashboardTemplateMark a Datadog dashboard template as deleted.
PosthogApi.RetrieveDashboardTemplateSchemaRetrieve JSON schema for dashboard templates.
PosthogApi.GetAvailableDashboardsRetrieve a list of dashboards for a specific project.
PosthogApi.CreateDashboardCreate a new dashboard for a specified project.
PosthogApi.ListDashboardCollaboratorsRetrieve the list of collaborators for a dashboard.
PosthogApi.CreateDashboardCollaboratorAdd a collaborator to a specified dashboard.
PosthogApi.DeleteCollaboratorFromDashboardRemove a collaborator from a specific dashboard.
PosthogApi.ListDashboardSharesRetrieve information about how dashboards are shared.
PosthogApi.SetDashboardSharingPasswordCreate a new password for dashboard sharing configuration.
PosthogApi.RemoveDashboardSharingPasswordRemove a password from a dashboard's sharing configuration.
PosthogApi.RefreshDashboardSharingLinkRefresh the sharing link for a specific dashboard.
PosthogApi.GetDashboardDetailsRetrieve details of a specific dashboard.
PosthogApi.UpdateDashboardUpdate a specific Datadog dashboard.
PosthogApi.UpdateDashboardPartialPartially update a dashboard's details.
PosthogApi.RemoveDashboardRequest the deletion of a specified dashboard.
PosthogApi.UpdateDashboardTilePositionRepositions a tile on a Datadog dashboard.
PosthogApi.RetrieveDashboardTilesStream metadata and tiles of a dashboard.
PosthogApi.CreateDashboardFromTemplateCreate a dashboard from a template JSON.
PosthogApi.FetchDataColorThemesRetrieve a list of data color themes for a project.
PosthogApi.AddDataColorThemeCreate a new data color theme for a project.
PosthogApi.RetrieveDataColorThemeRetrieve details of a specific data color theme.
PosthogApi.UpdateDataColorThemeUpdate the color theme for a specific project.
PosthogApi.ModifyDataThemeUpdate a specific data color theme for a project.
PosthogApi.DeleteDataColorThemeDelete a data color theme from a project.
PosthogApi.ListProjectDatasetItemsRetrieve dataset items for a specific project in Datadog.
PosthogApi.CreateDatasetItemCreate a new dataset item in a specified project.
PosthogApi.RetrieveDatasetItemRetrieve details of a specific dataset item.
PosthogApi.UpdateDatasetItemUpdate an existing dataset item with new information.
PosthogApi.ModifyDatasetItemUpdate specific details of a dataset item.
PosthogApi.SetDatasetItemDeletedMark a dataset item as deleted in a project.
PosthogApi.ListDatasetsRetrieve a list of datasets for a specific project.
PosthogApi.CreateDatasetProjectCreate a new dataset within a specified project.
PosthogApi.RetrieveDatasetInfoRetrieve details of a specific dataset in a project.
PosthogApi.UpdateDatasetUpdate a specific dataset within a project.
PosthogApi.UpdateDatasetInfoUpdate specific dataset information in a project.
PosthogApi.DeleteDatasetByIdFacilitates marking a dataset as deleted in a project.
PosthogApi.GetEarlyAccessFeaturesRetrieve a list of early access features for a project.
PosthogApi.CreateEarlyAccessFeatureTrackingCreate tracking for early access feature views.
PosthogApi.RetrieveEarlyAccessFeatureRetrieve information about an early access feature.
PosthogApi.ModifyEarlyAccessFeatureUpdate early access feature for a project.
PosthogApi.UpdateEarlyAccessFeatureUpdate an early access feature for a project.
PosthogApi.RemoveEarlyAccessFeatureRemove an early access feature from a project.
PosthogApi.RetrievePosthogEndpointRunRetrieve details of a specific Datadog endpoint run.
PosthogApi.UpdateEndpointUpdate an existing endpoint run in a project.
PosthogApi.FetchRecentExecutionTimesFetch the last 6 months of execution times for endpoints.
PosthogApi.ListProjectEnvironmentsGet a list of environments for a specific project.
PosthogApi.CreateProjectEnvironmentCreate a new environment for a specific project.
PosthogApi.GetProjectEnvironmentDetailsRetrieve details of a specific environment within a project.
PosthogApi.EditProjectEnvironmentUpdate environment settings for a specified project.
PosthogApi.ModifyProjectEnvironmentUpdate a specific environment of a project.
PosthogApi.DeleteEnvironmentDelete a specific environment from a project.
PosthogApi.GetEnvironmentActivityRetrieve project environment activity details.
PosthogApi.UpdateProjectEnvironmentUpdate product intent for a project environment.
PosthogApi.CompleteProjectOnboardingMark a project's product onboarding as complete in an organization.
PosthogApi.RetrieveDefaultEvaluationTagsRetrieve default evaluation tags for a project environment.
PosthogApi.CreateDefaultEvaluationTagsManage default evaluation tags for a team environment.
PosthogApi.DeleteDefaultEvaluationTagsDelete default evaluation tags for a project environment.
PosthogApi.DeleteEnvSecretTokenBackupDeletes a secret token backup in a project environment.
PosthogApi.GetProjectEventRestrictionsRetrieve event ingestion restrictions for a project environment.
PosthogApi.DemoDataStatusCheck if an environment is generating demo data.
PosthogApi.ResetProjectEnvironmentTokenResets the token for a specified project environment.
PosthogApi.RotateEnvironmentSecretTokenRotate the secret token for a project environment.
PosthogApi.RetrieveEventDefinitionsRetrieve event definitions for a specified project.
PosthogApi.RetrieveEventDefinitionRetrieve details of a specific event definition by ID.
PosthogApi.UpdateEventDefinitionUpdate an existing event definition in a project.
PosthogApi.ModifyEventDefinitionUpdate an event definition in a project.
PosthogApi.DeleteEventDefinitionDelete an event definition by ID and project.
PosthogApi.RetrieveEventDefinitionMetricsRetrieve metrics for a specific event definition.
PosthogApi.RetrieveEventDetailsRetrieve details of a specific event.
PosthogApi.RetrieveEventValuesRetrieve event values for a specified project.
PosthogApi.GetExperimentHoldoutsRetrieve the list of experiment holdouts for a project.
PosthogApi.CreateExperimentHoldoutCreate a new experiment holdout within a project.
PosthogApi.GetExperimentHoldoutRetrieve details of a specific experiment holdout from a project.
PosthogApi.UpdateExperimentHoldoutUpdate an experiment holdout in a specific project.
PosthogApi.ModifyExperimentHoldoutUpdate the details of an experiment holdout.
PosthogApi.DeleteExperimentHoldoutDelete an experiment holdout from a project.
PosthogApi.ListExperimentSavedMetricsRetrieve saved metrics for an experiment in a project.
PosthogApi.CreateExperimentSavedMetricsCreate and save metrics for an experiment in a project.
PosthogApi.RetrieveExperimentMetricsRetrieve saved experiment metrics from a project.
PosthogApi.UpdateExperimentSavedMetricsUpdate saved metrics for a specific experiment in Datadog.
PosthogApi.UpdateExperimentMetricsUpdate saved metrics for a specific experiment.
PosthogApi.DeleteSavedMetricDeletes a saved experimental metric.
PosthogApi.ListPosthogExperimentsRetrieve a list of experiments from a Datadog project.
PosthogApi.CreateExperimentInProjectCreate a new experiment within a specified project.
PosthogApi.GetProjectExperimentDetailsRetrieve details of a specific experiment within a project.
PosthogApi.UpdateExperimentUpdate details of a specific experiment in a project.
PosthogApi.UpdateExperimentDetailsPartially update experiment details in a project.
PosthogApi.DeleteExperimentDelete an experiment by setting it as deleted.
PosthogApi.CreateExposureCohortForExperimentCreate an exposure cohort for an experiment.
PosthogApi.DuplicateExperimentPosthogCreate a duplicate of a specific experiment.
PosthogApi.CreateExperimentTimeseriesRecalculationInitiate recalculation of experiment timeseries data.
PosthogApi.RetrieveExperimentTimeseriesRetrieve timeseries data for an experiment-metric pair.
PosthogApi.ListExperimentsEligibleFeatureFlagsRetrieve feature flags eligible for experiments.
PosthogApi.RetrieveExperimentsFlagStatusRetrieve status of experiments requiring flag implementation.
PosthogApi.ListProjectExportsRetrieve a list of exports for a given project ID.
PosthogApi.CreateExportsInitiate the export process for Datadog projects.
PosthogApi.RetrieveProjectExportRetrieve data of a specific project export.
PosthogApi.RetrieveExportedContentRetrieve exported content from a specific project.
PosthogApi.ListFeatureFlagsRetrieve feature flags for a specified project.
PosthogApi.CreateFeatureFlagCreate a new feature flag in a specific project.
PosthogApi.RetrieveFeatureFlagsRetrieve details of a specific feature flag.
PosthogApi.ModifyFeatureFlagsUpdate existing feature flags in a project.
PosthogApi.UpdateFeatureFlagsUpdate feature flags for a specific project.
PosthogApi.MarkFeatureFlagDeletedMark a feature flag as deleted.
PosthogApi.RetrieveFeatureFlagActivityRetrieve activity details for a specific feature flag.
PosthogApi.CreateStaticCohortForFeatureFlagCreate a static cohort for a specific feature flag.
PosthogApi.CreateFeatureFlagsDashboardCreate a dashboard for feature flags in a project.
PosthogApi.CreateFeatureFlagUsageDashboardCreate or manage feature flag usage dashboards.
PosthogApi.RetrieveFeatureFlagConfigRetrieve remote configuration of a specific feature flag.
PosthogApi.RetrieveFeatureFlagStatusRetrieve the status of a specific feature flag for a project.
PosthogApi.RetrieveFeatureFlagsActivityRetrieve feature flags activity for a specific project.
PosthogApi.GetFeatureFlagKeysRetrieve feature flag keys using a list of IDs.
PosthogApi.RetrieveFeatureFlagsEvaluationReasonsRetrieve evaluation reasons for feature flags by project.
PosthogApi.RetrieveLocalFeatureFlagsRetrieve feature flags for local evaluation in a project.
PosthogApi.GetFeatureFlagsRetrieve current feature flags for a user's project.
PosthogApi.CreateFeatureFlagBlastRadiusCreate a feature flag blast radius for a project.
PosthogApi.ListFileSystemsFetches the list of file systems for a given project.
PosthogApi.CreateProjectFileSystemCreate a file system for a specified project.
PosthogApi.RetrieveFileSystemInfoRetrieve detailed file system information for a project.
PosthogApi.UpdateFileSystemUpdates a file system in a specific project by ID.
PosthogApi.ModifyFileSystemUpdate specific details of a file system.
PosthogApi.DeleteFileSystemDelete a specified file system in a project.
PosthogApi.FetchFolderFileCountGet the count of all files in a folder.
PosthogApi.CreateFileSystemLinkCreate a link for a file system in a specific project.
PosthogApi.MoveFileSystemEntryMoves a file system entry to a new location within the project.
PosthogApi.FetchFileCountByPathRetrieve the count of files in a specified folder.
PosthogApi.CreateFileSystemLogViewCreate a new file system log view for a project.
PosthogApi.RetrieveUnfiledFilesRetrieve unfiled files for a specific project.
PosthogApi.GetFileShortcutsRetrieve a list of file system shortcuts for a given project.
PosthogApi.FileSystemShortcutCreateCreate a file system shortcut in a specific project.
PosthogApi.GetFileSystemShortcutRetrieve details of a file system shortcut.
PosthogApi.ModifyFileSystemShortcutUpdate a file system shortcut in a specified project.
PosthogApi.UpdateFileSystemShortcutUpdate a file system shortcut in a project.
PosthogApi.RemoveFileSystemShortcutDelete a file system shortcut from a project.
PosthogApi.GetFeatureFlagValuesRetrieve possible values for a feature flag.
PosthogApi.ListGroupsByTypeRetrieve all groups for a specified group type.
PosthogApi.CreateProjectGroupCreate a new group in a specified project.
PosthogApi.RetrieveGroupActivityFetches activity data for specified project groups.
PosthogApi.DeleteGroupPropertyDelete a group property in a Datadog project.
PosthogApi.RetrieveProjectGroupsRetrieve group details for a specific project.
PosthogApi.RetrieveGroupPropertyDefinitionsRetrieve group property definitions for a project.
PosthogApi.RetrieveGroupPropertyValuesRetrieve property values for groups within a project.
PosthogApi.RetrieveRelatedGroupsRetrieve related groups for a specific project in Datadog.
PosthogApi.UpdateGroupPropertyUpdate a property of a group within a project.
PosthogApi.ListGroupTypesRetrieve list of group types for a specific project.
PosthogApi.DeleteGroupTypeDelete a specified group type in a project.
PosthogApi.GetGroupTypeMetricsRetrieve metrics for a specific group type in a project.
PosthogApi.CreateGroupTypeMetricCreate a new metric for a specific group type.
PosthogApi.RetrieveGroupTypeMetricRetrieve metrics for a specific group type.
PosthogApi.UpdateGroupTypeMetricsUpdates metrics for a specified group type in a project.
PosthogApi.UpdateMetricsForGroupTypeUpdate metrics for a specific group type in a project.
PosthogApi.DeleteGroupTypeMetricDelete a specific metric from a group type.
PosthogApi.UpdateGroupDashboardUpdate a project's group detail dashboard.
PosthogApi.UpdateDefaultGroupColumnsUpdate default columns for group types in a project.
PosthogApi.UpdateGroupTypeMetadataUpdates metadata for group types in a project.
PosthogApi.ListHogFunctionsRetrieve a list of hog functions for a project.
PosthogApi.CreateHogFunctionLog a new file system view for a specified project.
PosthogApi.RetrieveProjectHogFunctionRetrieve details of a hog function in a project.
PosthogApi.ModifyHogFunctionsUpdate and track file system views for hog functions.
PosthogApi.UpdateHogFunctionViewsLog and update views for hog functions in a project.
PosthogApi.RemoveHogFunctionMarks a HOG function as deleted in a Datadog project.
PosthogApi.TrackFileSystemViewLog and track a file system view on resource access.
PosthogApi.TrackFsViewLogs a view each time a resource is accessed via GET.
PosthogApi.RetrieveLogsForFileSystemViewsRetrieves logs for tracked file system views.
PosthogApi.TrackFileSystemViewsRetrieve metrics for tracking file system views.
PosthogApi.GetHogFunctionMetricsTotalsRetrieve total metrics for a specified hog function.
PosthogApi.GetHogFunctionIconRetrieve the icon for hog functions in a specific project.
PosthogApi.RetrieveProjectIconsRetrieve and log views of project icons.
PosthogApi.UpdateHogfunctionOrderModify the order of execution for HogFunctions.
PosthogApi.ListProjectInsightsRetrieve insights list for a specific project.
PosthogApi.CreateInsightEntryLogs a new file system view entry for insights.
PosthogApi.ListInsightSharingRetrieve sharing details for a specific insight.
PosthogApi.CreateInsightsSharingPasswordCreate a new password for insights sharing configuration.
PosthogApi.DeletePasswordFromSharingConfigDelete a password from the sharing configuration of an insight.
PosthogApi.RefreshInsightSharingRefresh the sharing settings of an insight.
PosthogApi.RetrieveInsightDataRetrieve tracked insights for project file system views.
PosthogApi.UpdateInsightsUpdate insights tracking view for a project resource.
PosthogApi.UpdateInsightsViewLogLog a new view for a specific insight resource.
PosthogApi.DeleteInsightMarks an insight as deleted in a project.
PosthogApi.GetInsightsActivityRetrieve logs of insight views for a project.
PosthogApi.RetrieveInsightsActivityRetrieve insights activity logs for a specified project.
PosthogApi.StopInsightProcessCancel the ongoing insight creation process for a project.
PosthogApi.RetrieveRecentlyViewedInsightsRetrieve details of the last 5 insights viewed by the user.
PosthogApi.RecordInsightViewsUpdate the view timestamps for specified insights.
PosthogApi.ListProjectIntegrationsRetrieve a list of integrations for a specific project.
PosthogApi.CreateProjectIntegrationCreates a new integration for a specific project.
PosthogApi.GetIntegrationDetailsRetrieve integration details for a specific project.
PosthogApi.DeleteIntegrationDelete an existing integration for a project.
PosthogApi.GetIntegrationChannelsRetrieve integration channels for a specific project and ID.
PosthogApi.GetClickupListsRetrieve ClickUp lists for a specific project integration.
PosthogApi.RetrieveClickupSpacesRetrieve ClickUp spaces for a specific integration.
PosthogApi.RetrieveClickupWorkspacesRetrieve ClickUp workspaces for a project integration.
PosthogApi.CreateEmailVerificationIntegrationInitiate an email verification integration for a project.
PosthogApi.FetchGithubReposForIntegrationRetrieve GitHub repositories for a specified integration.
PosthogApi.GetGoogleAccessibleAccountsRetrieve accessible Google accounts for integration.
PosthogApi.RetrieveGoogleConversionDataRetrieve Google conversion actions for a specific project.
PosthogApi.RetrieveLinearTeamsFetch Linear team details for a specific integration.
PosthogApi.RetrieveLinkedinAdsAccountsRetrieve LinkedIn Ads accounts for a project integration.
PosthogApi.GetLinkedinAdsConversionRulesRetrieve LinkedIn Ads conversion rules for a specific project.
PosthogApi.RetrieveTwilioPhoneNumbersRetrieve Twilio phone numbers for a specific integration.
PosthogApi.GetIntegrationAuthorizationRetrieve integration authorization details for a project.
PosthogApi.CreateChatCompletionCreate a chat completion using OpenAI or compatible models.
PosthogApi.CreateMessageWithClaudeCreate a message using Anthropic's Claude models.
PosthogApi.RetrieveLogAttributesRetrieve log attributes for a specific project.
PosthogApi.CreateLogQueryInitiate a logs query for a specific project.
PosthogApi.CreateLogsSparklineCreate a sparkline for project logs.
PosthogApi.RetrieveLogValuesRetrieve log values for a specified project.
PosthogApi.ListPosthogNotebooksRetrieve a list of notebooks from Datadog.
PosthogApi.CreateNotebookCreate a new notebook within a specified project.
PosthogApi.RetrieveNotebookDetailsRetrieve details of a specific notebook.
PosthogApi.UpdateNotebookUpdate a specific notebook's details.
PosthogApi.UpdateNotebookDetailsUpdate notebook details in a specified project.
PosthogApi.DeleteNotebookDeletes a specific notebook by marking it as deleted.
PosthogApi.RetrieveNotebookActivityRetrieve activity details of a specific notebook.
PosthogApi.GetNotebookActivityRetrieve activity details for a specific project notebook.
PosthogApi.RetrieveNotebookCommentsRetrieve comments from notebook recordings in a project.
PosthogApi.ListPersistedFoldersRetrieve persisted folders for a given project.
PosthogApi.PersistFolderCreationCreate a new persisted folder in Datadog.
PosthogApi.RetrievePersistedFolderRetrieve a specific persisted folder within a project.
PosthogApi.UpdatePersistedFolderUpdate details of a persisted folder in a project.
PosthogApi.UpdateFolderInfoUpdate a persisted folder's metadata in Datadog.
PosthogApi.RemoveFolderDeletes a specified persisted folder from a project.
PosthogApi.RetrievePersonDataRetrieve detailed information about a specific person.
PosthogApi.ModifyPersonDetailsUpdate properties for a person in the project.
PosthogApi.UpdatePersonInfoUpdate person details using partial data.
PosthogApi.DeletePersonDelete an individual person from a project.
PosthogApi.GetPersonActivityRetrieve activities and details of a specific person.
PosthogApi.QueuePersonEventDeletionQueue deletion of events for a person during non-peak hours.
PosthogApi.RemovePersonAttributeDelete a specific property from a person's profile.
PosthogApi.RemovePersonRecordingsQueue deletion of all recordings associated with a person.
PosthogApi.RetrievePersonPropertiesTimelineRetrieve the timeline of a person's properties changes.
PosthogApi.SplitPersonEntityCreateCreate a sub-person entity for an existing person.
PosthogApi.ModifyUserAttributeUpdate a specific property for a person in a project.
PosthogApi.PersonActivityInfoRetrieve details of a person's activities.
PosthogApi.BulkDeletePersonsBulk delete persons by IDs in a specified project.
PosthogApi.GetPersonsCohortsRetrieve information about person cohorts in a project.
PosthogApi.RetrievePersonsFunnelRetrieve persons data for a project funnel.
PosthogApi.CreateOrUpdatePersonsCreate or update persons in a project funnel.
PosthogApi.FunnelCorrelationPersonsRetrieveRetrieve funnel correlation data for persons in a project.
PosthogApi.AddPersonsFunnelCorrelationCreate or update persons in a funnel correlation.
PosthogApi.GetPersonsLifecycleRetrieve lifecycle information of persons in a project.
PosthogApi.ResetPersonDistinctIdReset a distinct_id for a deleted person to reuse it.
PosthogApi.RetrievePersonsStickinessRetrieve information about persons' stickiness in a project.
PosthogApi.GetPersonTrendsRetrieve trends related to persons in a project.
PosthogApi.GetPersonInfoRetrieve or delete person details in a Datadog project.
PosthogApi.ListPluginConfigLogsRetrieve logs for a specific plugin configuration.
PosthogApi.ListPropertyDefinitionsRetrieve a list of property definitions for a specific project.
PosthogApi.RetrievePropertyDefinitionsRetrieve details of property definitions for a given project.
PosthogApi.UpdatePropertyDefinitionsUpdate property definitions for a specific project.
PosthogApi.UpdatePropertyDefinitionUpdate partial property definition details.
PosthogApi.DeletePropertyDefinitionDelete a property definition from a project.
PosthogApi.CheckPropertyEventAssociationCheck if a property has been seen with specified event names.
PosthogApi.RetrieveQueryFromProjectRetrieve a specific query from a project.
PosthogApi.DeleteProjectQueryDelete a specific project query.
PosthogApi.GetQueryLogDetailsRetrieve query log details for a specified query ID.
PosthogApi.CheckAsyncAuthChecks authorization for creating asynchronous queries.
PosthogApi.RetrieveDraftSqlQueryRetrieve draft SQL query for a specific project.
PosthogApi.ListSessionPlaylistsRetrieve session recording playlists, including synthetic ones.
PosthogApi.NewSessionRecordingPlaylistCreate a new session recording playlist for a project.
PosthogApi.RetrieveRecordingPlaylistRetrieve a session recording playlist for a project.
PosthogApi.ModifySessionRecordingPlaylistUpdate session recording playlists for a project.
PosthogApi.EditSessionPlaylistPartially update a session recording playlist.
PosthogApi.RemoveSessionRecordingPlaylistSoft delete a session recording playlist in a project.
PosthogApi.RetrieveRecordingPlaylistViewsRetrieve and log views of session recording playlists.
PosthogApi.AddSessionRecordingToPlaylistAdd a session recording to a specified playlist.
PosthogApi.DeleteSessionRecording2Delete a session recording from a playlist in a project.
PosthogApi.FetchSessionRecordingsRetrieve session recordings for a specific project.
PosthogApi.FetchSessionRecordingRetrieve details of a specific session recording.
PosthogApi.UpdateSessionRecording2Update session recording details for a specific project.
PosthogApi.EditSessionRecordingUpdate specific details of a session recording.
PosthogApi.DestroySessionRecordingDelete a specific session recording from a project.
PosthogApi.GetSessionRecordingsSharingLinksObtain sharing links for a Datadog session recording.
PosthogApi.CreateRecordingSharePasswordCreate a new password for sharing configuration of a recording.
PosthogApi.RemoveSharingPasswordDelete a sharing configuration password from a session recording.
PosthogApi.UpdateSessionRecordingSharingRefresh session recording sharing status.
PosthogApi.RetrieveSessionPropertyDefinitionsRetrieve definitions of session properties for a project.
PosthogApi.RetrieveProjectSessionValuesRetrieve session values for a specific project.
PosthogApi.GetProjectSubscriptionsRetrieve a list of subscriptions for a specific project.
PosthogApi.CreateProjectSubscriptionCreate a new subscription for a specified project.
PosthogApi.GetSubscriptionInfoRetrieve details of a specific project subscription.
PosthogApi.UpdateSubscriptionSettingsUpdate subscription settings for a project.
PosthogApi.UpdateSubscriptionDetailsUpdate details of a project subscription.
PosthogApi.UnsubscribeFromProjectAlertsSet project alert subscription as deleted.
PosthogApi.GetProjectSurveysRetrieve a list of surveys for a given project.
PosthogApi.CreateSurveyCreate a new survey for a project.
PosthogApi.RetrieveSurveyDataRetrieve data for a specific survey using project and survey IDs.
PosthogApi.UpdateSurveyTrackingTracks a new view for a survey by logging access.
PosthogApi.UpdateSurveyInfoUpdate information for a specific survey.
PosthogApi.DeleteSurveyDelete a survey from a specific project.
PosthogApi.FetchSurveyActivityRetrieve logs of survey activity views.
PosthogApi.DuplicateSurveyToProjectsDuplicate a survey to multiple projects in one transaction.
PosthogApi.GetSurveyResponseStatisticsGet survey response statistics for a specific survey.
PosthogApi.SummarizeSurveyResponsesCreate a summary of survey responses for a project.
PosthogApi.TrackSurveyActivityRetrieve and log survey activity views.
PosthogApi.GetSurveyResponseCountRetrieve the count of survey responses for a project.
PosthogApi.GetSurveyStatisticsRetrieve aggregated response statistics for surveys.
PosthogApi.ListProjectTasksRetrieve tasks for a specific project.
PosthogApi.CreateProjectTaskCreate a new task within a specified project.
PosthogApi.GetProjectTaskDetailsRetrieve details of a specific task within a project.
PosthogApi.UpdateProjectTaskUpdate task details within a project.
PosthogApi.UpdateTaskInProjectUpdate a specific task within a project.
PosthogApi.DeleteProjectTaskDelete a specific task within a project.
PosthogApi.InitiateTaskWorkflowInitiate the workflow for a specific task stage.
PosthogApi.UpdateTaskPositionUpdate the position of a task within its current stage.
PosthogApi.ListTaskRunsRetrieve a list of task run executions for a specific task.
PosthogApi.CreateTaskRunCreate and manage execution of a specific task by ID.
PosthogApi.GetTaskRunDetailsRetrieve details of a specific task run execution.
PosthogApi.UpdateTaskRunStatusUpdate the status of a specific task run.
PosthogApi.AppendTaskRunLogsAppend log entries to a specific task run log array.
PosthogApi.UpdateTaskRunOutputUpdate the output field for a specific task run.
PosthogApi.GetSavedQueriesListRetrieve saved warehouse queries for a specific project.
PosthogApi.AddWarehouseSavedQueryCreate a warehouse saved query for data management.
PosthogApi.RetrieveWarehouseSavedQueryRetrieve details of a specific warehouse saved query.
PosthogApi.EditWarehouseSavedQueryUpdate a specific warehouse saved query.
PosthogApi.ModifyWarehouseQueryPartially update a warehouse saved query in a project.
PosthogApi.DeleteWarehouseSavedQueryDeletes a specified warehouse saved query.
PosthogApi.RetrieveSavedQueryActivityRetrieve activity details of a saved warehouse query.
PosthogApi.GetAncestorsOfSavedQueryRetrieve ancestors of a saved query in Datadog.
PosthogApi.CancelRunningSavedQueryCancel a running saved query workflow in progress.
PosthogApi.GetQueryDescendantsRetrieve descendants of a saved query.
PosthogApi.UndoMaterializationRevert back to the original view by undoing materialization.
PosthogApi.ExecuteSavedQueryExecutes a saved query in Datadog's warehouse.
PosthogApi.WarehouseTablesOverviewRetrieve a list of warehouse tables for a specific project.
PosthogApi.AddWarehouseTableCreate a new warehouse table in a specified project.
PosthogApi.GetWarehouseTableRetrieve details of a specific warehouse table.
PosthogApi.EditWarehouseTableUpdates information for a specific warehouse table.
PosthogApi.UpdateWarehouseTable2Partially update a warehouse table entry.
PosthogApi.RemoveWarehouseTableDelete a specified warehouse table from a project.
PosthogApi.UpdateTableSchemaRefresh the schema of a specific warehouse table.
PosthogApi.ModifyTableSchemaUpdate the schema of a warehouse table.
PosthogApi.WarehouseTableFileOperationsCreate a new warehouse table from a file.
PosthogApi.FetchWebAnalyticsBreakdownRetrieve breakdown of web analytics by property.
PosthogApi.GetWebAnalyticsOverviewRetrieve an overview of web analytics data for a project.
PosthogApi.ListWebExperimentsRetrieve a list of web experiments for a given project.
PosthogApi.CreateWebExperimentCreate a web experiment for a project.
PosthogApi.RetrieveWebExperimentRetrieve details of a specific web experiment.
PosthogApi.UpdateWebExperimentUpdate web experiment details within a project.
PosthogApi.UpdateWebExperimentStatusUpdate the status of a web experiment.
PosthogApi.DeleteWebExperimentDelete a web experiment from a specific project.
PosthogApi.ListUsersRetrieve a list of users from Datadog.
PosthogApi.RetrieveUserInformationRetrieve detailed information about a specific user.
PosthogApi.UpdateUserDetailsUpdate user details in the database.
PosthogApi.UpdateUserInfoPartially update a user's information in Datadog.
PosthogApi.DeleteUserAccountDeletes a user account from the system.
PosthogApi.RetrieveUserHedgehogConfigRetrieve a user's hedgehog configuration details.
PosthogApi.UpdateUserHedgehogConfigUpdate a user's hedgehog configuration settings in Datadog.
PosthogApi.CreateUserScenePersonalizationCreate personalized scene settings for a user.
PosthogApi.InitiateUser2faSetupInitiate two-factor authentication setup for a user.
PosthogApi.GenerateBackupCodesGenerate new backup codes for two-factor authentication.
PosthogApi.DisableUser2faDisable two-factor authentication for a user.
PosthogApi.RetrieveUser2faSetupStatusRetrieve a user's two-factor authentication setup status.
PosthogApi.Retrieve2faStatusRetrieve current 2FA status and backup codes if enabled.
PosthogApi.ValidateTwoFactorAuthenticationValidate a user's two-factor authentication code.
PosthogApi.ValidateUser2faValidate a user's two-factor authentication status.
PosthogApi.CancelEmailChangeRequestCancel a pending email change request.
PosthogApi.RequestEmailVerificationRequest an email verification for a user.
PosthogApi.VerifyUserEmailInitiates the email verification process for a user.

If you need to perform an action that’s not listed here, you can get in touch with us to request a new , or create your own tools.

PosthogApi.RetrieveAppMetrics


Retrieve application metrics for a specific environment.

Parameters

  • plugin_config_id (integer, required) A unique integer value identifying the plugin configuration.
  • project_id (string, required) A string representing the ID of the to access metrics for. Obtain this ID by calling /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveAppMetricsErrorDetails


Retrieve detailed error metrics for a specific app.

Parameters

  • plugin_config_id (integer, required) A unique integer identifying the plugin configuration.
  • project_id (string, required) String representing the ID to access. Obtain this ID via /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveAppMetricsExports


Retrieve historical app metrics exports for a .

Parameters

  • plugin_configuration_id (string, required) The ID of the plugin configuration to retrieve metrics for. Ensure it matches the correct configuration in your Datadog setup.
  • project_id_of_the_posthog_project (string, required) The ID of the Datadog to access. Obtain it via the /api/projects/ endpoint.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveHistoricalAppMetrics


Retrieve historical app metrics for a specific environment.

Parameters

  • export_id (string, required) The identifier of the historical export you want to retrieve. This should be a valid string corresponding to a specific export.
  • plugin_configuration_id (string, required) The ID of the plugin configuration to retrieve historical metrics for. This identifies which plugin’s data you want to access.
  • project_id (string, required) The ID to access for retrieving historical app metrics. Obtain it via a call to /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ListEnvBatchExports


Retrieve the list of batch exports for a specific environment.

Parameters

  • project_identifier (string, required) The ID to access for fetching batch exports. Obtain it by calling /api/projects/.
  • initial_result_index (integer, optional) The initial index from which to return the results. Use this to navigate pages.
  • results_per_page (integer, optional) Specify the number of results to return per page.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CreateBatchExportForEnvironments


Initiate a batch export for selected environments.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • project_id (string, optional) The ID of the you want to access for batch export. Obtain it via a call to /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ListBatchExportBackfills


Retrieve a list of batch export backfills.

Parameters

  • batch_export_identifier (string, required) The unique identifier for the batch export to retrieve specific backfill details.
  • project_id (string, required) The ID of the to access batch export backfills. Obtainable via /api/projects/.
  • pagination_cursor (string, optional) The pagination cursor for retrieving the next set of results in a paginated response.
  • results_ordering_field (string, optional) Specify the field by which to order the batch export backfills results.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CreateBackfillForBatchExport


Create a new backfill for a BatchExport.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • batch_export_identifier (string, optional) The unique identifier of the BatchExport for which to create a backfill. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_id (string, optional) The ID of the to access. Call /api/projects/ to retrieve this ID. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveBatchExportBackfill


Retrieve details of a batch export backfill.

Parameters

  • batch_export_backfill_uuid (string, required) The UUID identifying the specific batch export backfill to retrieve.
  • batch_export_identifier (string, required) The identifier for the specific batch export. Provide as a string to retrieve backfill details.
  • project_id (string, required) The unique ID of the to access. Use /api/projects/ to retrieve the ID if unknown.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CancelBatchExportBackfill


Cancel a batch export backfill process.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • batch_export_identifier (string, optional) A unique identifier string for the batch export backfill to be canceled. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • batch_export_backfill_id (string, optional) A UUID string identifying the specific batch export backfill to cancel. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_id (string, optional) The ID of the to access. Call /api/projects/ to find the project ID. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ListEnvironmentExports


Fetches a list of batch export runs for a given environment.

Parameters

  • batch_export_identifier (string, required) The ID of the batch export you wish to access. Required to retrieve batch export runs for a specific .
  • project_id (string, required) The unique identifier of the you want to access in Datadog. Use /api/projects/ to find the ID.
  • order_by_field (string, optional) Specify the field used to order the batch export run results. This determines the sorting criteria for the list of export runs.
  • pagination_cursor (string, optional) The value used for paginating results in a list of export runs. It allows fetching subsequent pages of results.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveEnvironmentExportRun


Retrieve details of a specific environment export run.

Parameters

  • batch_export_id (string, required) A unique identifier for the batch export run. Provide the UUID identifying this export.
  • batch_export_run_id (string, required) A UUID string identifying this specific batch export run for retrieval.
  • project_id (string, required) The unique identifier for the you wish to access. Retrieve this by calling /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CancelBatchExportRun


Cancel an ongoing batch export run.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • batch_export_run_id (string, optional) A UUID string identifying the specific batch export run to be canceled. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • batch_export_run_uuid (string, optional) A UUID string that identifies the batch export run to be canceled. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_id (string, optional) The ID of the you want to access. Use /api/projects/ to find this ID. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveEnvironmentBatchExportLogs


Retrieve logs from a specific environment batch export run.

Parameters

  • batch_export_identifier (string, required) A string representing the unique identifier for the batch export.
  • batch_export_run_id (string, required) A UUID string identifying the specific batch export run.
  • project_identifier (string, required) The unique ID needed to access the specific project. Retrieve this ID by calling /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetryBatchExportRun


Initiate a retry of a batch export run.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • batch_export_identifier (string, optional) A string representing the UUID of the batch export run to retry. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • batch_export_run_id (string, optional) The UUID identifying the batch export run to retry. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_id (string, optional) ID for accessing the specific project. Use /api/projects/ to find this ID. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveEnvironmentBatchExport


Retrieve details of a specific environment batch export.

Parameters

  • batch_export_uuid (string, required) A UUID string identifying the specific batch export to retrieve details for.
  • project_id (string, required) The ID of the to access. Retrieve via /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateEnvironmentBatchExports


Update environment batch exports details.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • batch_export_uuid (string, optional) The UUID identifying the specific batch export to update. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_id (string, optional) ID to access; retrieve from /api/projects/ if needed. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateEnvironmentExport


Update environment export batch details.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • batch_export_id (string, optional) A UUID string that uniquely identifies the environment export batch to be updated. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_id (string, optional) The ID of the to access. Retrieve it with a call to /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.DeleteBatchExport


Delete a batch export in a specific environment.

Parameters

  • batch_export_uuid (string, required) A UUID string identifying the batch export to delete.
  • project_id (string, required) The ID of the to access for batch export deletion. Obtainable via /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.TriggerBatchExportBackfill


Trigger a backfill for a BatchExport.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • batch_export_uuid (string, optional) A UUID string identifying this batch export. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_id (string, optional) The ID for accessing the desired project. Retrieve it via /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveEnvironmentLogs


Retrieve logs from environment batch exports.

Parameters

  • batch_export_id (string, required) A UUID string that specifies the batch export to retrieve logs for. This is a unique identifier for the log batch export.
  • project_id (string, required) The ID of the to access for retrieving environment batch export logs. Obtainable via a call to /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.PauseBatchExport


Pause a batch export operation.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • batch_export_id (string, optional) A UUID string identifying the batch export to be paused. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_id (string, optional) The unique identifier for the . Use /api/projects/ to find it. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RunEnvironmentTestStep


Initiate a test step execution for environment batch exports.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • batch_export_uuid (string, optional) A UUID string to identify the specific batch export for the test step execution. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_id (string, optional) The unique ID for the targeted environment. Obtainable via /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UnpauseBatchExport


Unpause a paused BatchExport to resume data export.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • batch_export_id (string, optional) A UUID string identifying the batch export to unpause. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_id (string, optional) The ID of the to access. Retrieve using a call to /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CreateEnvironmentBatchExport


Initiate a batch export for environment tests.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • project_id (string, optional) The ID of the to access for initiating the batch export. To find this, call /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.GetEnvironmentsBatchExportStatus


Gets the status of a test batch export for environments.

Parameters

  • project_id_for_export_status (string, required) The ID to retrieve the test batch export status. Obtainable from a call to /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ListEnvironmentDashboards


Retrieve dashboards for a specific environment.

Parameters

  • project_id (string, required) ID required to access a specific environment in Datadog. Use the /api/projects/ endpoint to find the ID.
  • initial_index_for_results (integer, optional) The index from which to start returning results, useful for pagination.
  • response_format (string, optional) Specifies the format of the response. Accepted values are ‘json’ or ‘txt’.
  • results_per_page (integer, optional) The number of dashboard results to return per page.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CreateEnvironmentDashboard


Create a new dashboard within a specific environment.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • project_identifier (string, optional) The ID of the for accessing its environment. Retrieve via /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • response_format (string, optional) Specify the format of the response. Options: ‘json’, ‘txt’. Only used when mode is ‘execute’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ListCollaboratorsOnDashboard


Retrieve collaborators for a dashboard in a .

Parameters

  • dashboard_identifier (integer, required) The unique identifier for the dashboard. Must be an integer and is required to retrieve collaborators.
  • project_identifier (string, required) The unique identifier for the . Obtainable by calling the /api/projects/ endpoint.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.AddDashboardCollaborator


Add a collaborator to a specific dashboard.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • dashboard_id (integer, optional) The unique identifier of the dashboard to which the collaborator is being added. It must be an integer value. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_id (string, optional) The ID of the to access. Retrieve using the /api/projects/ endpoint. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RemoveDashboardCollaborator


Remove a collaborator from a dashboard in a specific environment.

Parameters

  • collaborator_user_uuid (string, required) The unique ID of the collaborator to be removed from the dashboard.
  • dashboard_id (integer, required) The unique identifier of the dashboard from which you want to remove a collaborator. This should be an integer.
  • project_id (string, required) ID of the to access. Retrieve the ID using the /api/projects/ endpoint if needed.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ListSharedDashboards


Retrieve shared dashboard information for a specified .

Parameters

  • dashboard_identifier (integer, required) The unique integer ID of the dashboard whose sharing information you want to retrieve.
  • project_id (string, required) The ID of the you want to access for retrieving shared dashboard details. Obtain this by calling /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CreateDashboardSharingPassword


Create a password for sharing a dashboard.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • dashboard_identifier (integer, optional) The unique integer identifier for the dashboard. This ID is required to create a sharing password. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_identifier (string, optional) The ID of the for which you want to create a dashboard sharing password. Use /api/projects/ to find this ID. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.DeleteDashboardSharingPassword


Delete a password from a dashboard’s sharing configuration.

Parameters

  • dashboard_identifier (integer, required) The unique integer identifier for the dashboard from which the password is to be deleted.
  • password_identifier (string, required) The unique identifier of the password to be deleted from the dashboard’s sharing configuration. This is required to specify which password to remove.
  • project_identifier (string, required) Unique identifier for the . Retrieve by calling /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RefreshDashboardSharing


Refresh a dashboard’s sharing link in Datadog environments.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • dashboard_id (integer, optional) The unique integer ID of the Datadog dashboard to refresh the sharing link for. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_id (string, optional) Specify the ID for accessing the desired project in Datadog. Retrieve it via a call to /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.GetEnvironmentDashboard


Retrieve a specific dashboard for an environment.

Parameters

  • dashboard_id (integer, required) A unique integer value identifying the dashboard to retrieve.
  • project_id (string, required) ID for accessing the specific environment dashboard. Obtainable via call to /api/projects/.
  • response_format (string, optional) Specify the format of the response data. Use ‘json’ for JSON format or ‘txt’ for plain text format.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateEnvironmentDashboard


Update settings of an environment dashboard.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • dashboard_id (integer, optional) A unique integer value to identify the environment dashboard to update. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_id (string, optional) The ID of the to access. Retrieve this using the /api/projects/ endpoint if needed. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • response_format (string, optional) Specify the desired format of the response. Options are ‘json’ or ‘txt’. Only used when mode is ‘execute’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateDashboardEnvironment


Update specific dashboard settings in an environment.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • dashboard_id (integer, optional) Unique integer identifying the dashboard to update. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_identifier (string, optional) The ID of the to access. Call /api/projects/ to find this ID. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • response_format (string, optional) Specifies the format of the response. Options include ‘json’ or ‘txt’. Only used when mode is ‘execute’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.DeleteDashboard


Mark a dashboard as deleted.

Parameters

  • dashboard_id (integer, required) A unique integer value identifying the dashboard to be marked as deleted.
  • project_id (string, required) ID to access the desired project. Retrieve using /api/projects/ if needed.
  • response_format (string, optional) Specifies the format of the response. Options include ‘json’ and ‘txt’.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.MoveDashboardTile


Move a tile’s position in a specific dashboard.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • dashboard_id (integer, optional) A unique integer value identifying this dashboard within Datadog. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_id (string, optional) The identifier for the you want to access. Retrieve it by calling the /api/projects/ endpoint. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • response_format (string, optional) Specifies the desired format of the response data. Options are ‘json’ or ‘txt’. Only used when mode is ‘execute’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.StreamDashboardTiles


Stream dashboard metadata and tiles via Server-Sent Events.

Parameters

  • dashboard_id (integer, required) A unique integer value identifying the dashboard to stream.
  • project_id (string, required) The ID of the you wish to access. Obtain this by calling /api/projects/.
  • response_format (string, optional) Specifies the format for the streamed dashboard response. Choose ‘json’ for JSON format or ‘txt’ for plain text.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CreateEnvironmentDashboardFromTemplate


Create an environment dashboard from a template.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • project_identifier (string, optional) The ID for the target environment in Datadog. Retrieve this ID via the /api/projects/ API call. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • response_format (string, optional) Specifies the format of the response. Choose between ‘json’ or ‘txt’. Only used when mode is ‘execute’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ListDataColorThemes


Retrieve data color themes for a specific environment.

Parameters

  • project_identifier (string, required) ID to access specific environment data color themes. Obtain by calling /api/projects/.
  • initial_index (integer, optional) The initial index from which to return the results. Used for pagination.
  • results_per_page (integer, optional) The maximum number of results to return on each page.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CreateDataColorTheme


Create a new data color theme for the environment.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • project_identifier (string, optional) ID to access the desired project. Obtain it through a call to /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveEnvironmentColorTheme


Retrieve color theme data for a specific environment.

Parameters

  • color_theme_id (integer, required) A unique integer value identifying the data color theme for the environment.
  • project_identifier (string, required) The ID of the whose environment color theme data is being accessed. Obtain it via /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateEnvironmentColorTheme


Update the color theme of an environment.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • data_color_theme_id (integer, optional) A unique integer value identifying the data color theme to update. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_id (string, optional) The ID of the to access. Retrieve it via a call to /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateEnvironmentTheme


Update color themes for environments.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • color_theme_id (integer, optional) A unique integer identifying the data color theme to update. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_identifier (string, optional) The unique ID of the you want to access. Obtain it via /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.DeleteEnvironmentColorTheme


Delete a specific environment’s color theme in Datadog.

Parameters

  • data_color_theme_id (integer, required) A unique integer value used to identify the data color theme to be deleted.
  • project_id (string, required) The ID of the for accessing its environment. Obtain by calling /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ListEnvironmentDatasetItems


Retrieve dataset items for a specific environment.

Parameters

  • project_identifier (string, required) The ID of the you’re accessing. Use /api/projects/ to find it.
  • filter_by_dataset_id (string, optional) Specify the dataset ID to filter the results by a specific dataset.
  • results_per_page (integer, optional) Number of results to return per page. This defines pagination size.
  • results_start_index (integer, optional) The initial index from which to return the results. Use this to control the starting point of the returned dataset items.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CreateEnvironmentDatasetItem


Create a dataset item in the specified environment.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • project_id (string, optional) The unique identifier for the you want to access. Obtain it by calling /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveEnvironmentDatasetItem


Retrieve a specific environment dataset item by ID.

Parameters

  • dataset_item_id (string, required) A UUID string that identifies the specific dataset item to retrieve.
  • project_id (string, required) The unique identifier for the to access. To find it, call /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateEnvironmentDatasetItem


Update an environment dataset item in a .

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • dataset_item_uuid (string, optional) A UUID string uniquely identifying the dataset item to be updated. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_id (string, optional) The unique identifier of the you want to access. Retrieve it by making a call to /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ModifyEnvironmentDatasetItem


Update specific fields in an environment dataset item.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • dataset_item_id (string, optional) A UUID string specifying the dataset item to be updated. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_identifier (string, optional) The unique ID of the to access. Use /api/projects/ to find this ID. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.DeleteEnvironmentDatasetItem


Marks a dataset item in an environment as deleted.

Parameters

  • dataset_item_id (string, required) A UUID string identifying the dataset item to mark as deleted.
  • project_id (string, required) The unique ID for accessing the desired project. Retrieve by calling /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ListEnvironmentDatasets


Retrieve datasets for a specified environment.

Parameters

  • project_id (string, required) The ID of the to access. Retrieve the ID by calling /api/projects/.
  • dataset_ids (array[string], optional) List of dataset IDs to filter results. Provide multiple IDs separated by commas.
  • ordering_criteria (array[string], optional) Specify the ordering of the dataset results. Options include created_at, -created_at, updated_at, -updated_at. Multiple criteria can be provided as a list.
  • results_limit_per_page (integer, optional) Specifies the number of datasets to return per page. This is used to control pagination and manage the volume of data retrieved in a single call.
  • results_start_index (integer, optional) The initial index to start returning datasets from, for pagination purposes.
  • search_terms (string, optional) Search terms to filter datasets by name, description, or metadata.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CreateEnvironmentDataset


Create a dataset environment in a specified .

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • project_id_for_environment (string, optional) ID for accessing the project where the dataset environment will be created. To get this ID, call the /api/projects/ endpoint. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveEnvironmentDataset


Retrieve a specific environment dataset by ID.

Parameters

  • environment_dataset_id (string, required) A UUID string identifying the specific environment dataset to retrieve.
  • project_id (string, required) The ID of the you want to access. Use /api/projects/ to find this ID.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateEnvironmentDataset


Updates details of a specific environment dataset.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • dataset_id (string, optional) A UUID string identifying the specific dataset to update. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_id (string, optional) The ID of the you want to access. Retrieve the ID by calling /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ModifyEnvironmentDataset


Update dataset in a specific environment.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • dataset_uuid (string, optional) A UUID string identifying the dataset to update within the environment. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_identifier (string, optional) The unique identifier of the to access. Retrieve via /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.DeleteDataset


Delete a dataset by setting it to deleted status.

Parameters

  • dataset_uuid (string, required) A UUID string identifying the dataset to be marked as deleted.
  • project_identifier (string, required) The unique identifier for the . Use /api/projects/ to find it.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.FetchEndpointRunStatus


Retrieve the run status of an endpoint.

Parameters

  • endpoint_name (string, required) The name of the endpoint you want to update or retrieve status for.
  • project_id (string, required) The unique ID of the to access. Obtain it via a call to /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateEnvironmentEndpoint


Update an existing environment endpoint.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • endpoint_name (string, optional) The name of the endpoint to update. This is used to identify the specific endpoint within the . Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_id (string, optional) The ID of the to access. Retrieve it via a call to /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.GetLastExecutionTimes


Retrieve last execution times for multiple endpoints.

Parameters

  • endpoint_names (array[string], required) List of endpoint names to retrieve execution times for. Each name should be a string.
  • project_id (string, required) The ID of the you wish to access. Use the /api/projects/ endpoint to retrieve the ID if needed.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ListErrorTrackingAssignmentRules


Retrieve error tracking assignment rules for a given environment.

Parameters

  • project_id (string, required) The unique ID of the to access. Retrieve it by calling /api/projects/.
  • results_per_page (integer, optional) Specify the number of results to return per page when listing error tracking assignment rules.
  • results_start_index (integer, optional) The initial index to start returning results from within the list.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CreateErrorTrackingAssignmentRule


Create a new error tracking assignment rule.

Parameters

  • assignee_username (string, required) Username of the individual to whom the error tracking assignment rule is assigned. This should be a valid username within the .
  • assignment_rule_filters (string, required) Filters to specify the criteria for the error tracking assignment rule. Input as a string.
  • order_key_priority (integer, required) An integer specifying the priority order of the rule. Lower values imply higher priority.
  • project_id (string, required) ID of the to access. Retrieve via /api/projects/ call.
  • rule_id (string, required) A unique identifier for the error tracking assignment rule to be created.
  • disabled_data_state (string, optional) Indicates if data for the error tracking rule is disabled. Use ‘true’ to disable, ‘false’ to enable.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveErrorTrackingAssignmentRules


Retrieve error tracking assignment rules for a .

Parameters

  • error_tracking_rule_id (string, required) A UUID identifying the error tracking assignment rule to retrieve.
  • project_id (string, required) The unique identifier for the to access. Obtain this by calling /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateErrorTrackingRules


Updates error tracking assignment rules for a .

Parameters

  • assignee_identifier (string, required) The unique identifier for the person to whom errors will be assigned. This can be a user ID or username within the .
  • assignment_rule_id (string, required) A UUID string that identifies the error tracking assignment rule to update.
  • environment_id (string, required) The unique identifier for the environment whose error tracking rules are being updated.
  • filter_criteria (string, required) Specifies the filter criteria for updating error tracking assignment rules. This should be a string detailing the conditions used to filter the errors.
  • project_id (string, required) ID to access. Retrieve it via a call to /api/projects/.
  • update_order_key (integer, required) The order key for arranging assignment rules in a specified sequence. Provide an integer value.
  • disable_error_data (string, optional) Specify whether to disable error data for tracking rules. Accepts a string value indicating the disabled state.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateErrorTrackingAssignmentRules


Partially update error tracking assignment rules for environments.

Parameters

  • project_identifier (string, required) The unique ID of the to access for updating error tracking rules. Obtain it via /api/projects/.
  • assignee_for_error_tracking (string, optional) The identifier of the assignee for the error tracking rule. This should be a string representing the or team to which the error tracking assignment is being made.
  • disabled_data (string, optional) Provide a string indicating which data or fields should be marked as disabled in the error tracking rules.
  • error_tracking_rule_id (string, optional) A UUID string identifying the specific error tracking assignment rule to update.
  • filter_expression (string, optional) Provide a string that specifies criteria for selecting which rules to update. Use logical expressions to define this filter.
  • order_key (integer, optional) The order key for sorting or prioritizing the assignment rules. Provide as an integer.
  • rule_identifier (string, optional) The unique ID of the error tracking assignment rule to update.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.DeleteErrorTrackingRule


Deletes a specified error tracking assignment rule.

Parameters

  • project_id (string, required) The ID of the to access. Obtain this by calling /api/projects/.
  • rule_id (string, required) The UUID of the error tracking assignment rule to be deleted.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ReorderAssignmentRules


Reorder error tracking assignment rules in a environment.

Parameters

  • project_id (string, required) The ID for accessing the desired project. Retrieve it using /api/projects/.
  • disable_rule_data (string, optional) Specify whether rule data is disabled, using ‘true’ or ‘false’.
  • rule_filters (string, optional) A string containing conditions to filter assignment rules for reordering. Useful for applying specific criteria when reordering rules.
  • rule_id (string, optional) The specific ID of the assignment rule to be reordered within the environment.
  • rule_order_position (integer, optional) The new position for the assignment rule in the order list. Use an integer to specify the desired position.
  • target_assignee (string, optional) Specifies the assignee for the error tracking rules in the . This should be a valid identifier in the Datadog environment.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ListErrorTrackingFingerprints


Retrieve error tracking fingerprints for a specific .

Parameters

  • project_identifier (string, required) The unique ID of the you want to access. Obtain this by calling /api/projects/.
  • initial_index_for_results (integer, optional) The initial index from which to return the results for the error tracking fingerprints list.
  • results_per_page (integer, optional) Number of results to return per page.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.GetErrorTrackingFingerprint


Retrieve a specific error tracking fingerprint by ID.

Parameters

  • error_tracking_fingerprint_uuid (string, required) A UUID identifying the error tracking issue fingerprint v2.
  • project_id (string, required) ID to access specific project data. Use /api/projects/ to retrieve this ID.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.DeleteErrorFingerprint


Mark an error fingerprint as deleted in Datadog.

Parameters

  • error_fingerprint_uuid (string, required) A UUID string identifying the specific error tracking issue fingerprint to be marked as deleted.
  • posthog_project_id (string, required) The ID of the Datadog you want to modify. Obtainable via a call to /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)


Resolve GitHub file links for error tracking .

Parameters

  • project_id (string, required) The ID of the to access. Retrieve the ID via a call to /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ListErrorTrackingGroupingRules


Retrieve error tracking grouping rules for a .

Parameters

  • project_id (string, required) The ID of the to access. Retrieve it by calling /api/projects/.
  • initial_index_for_results (integer, optional) The starting index from which to return results, used for pagination.
  • results_per_page (integer, optional) Number of results to return per page when listing error tracking grouping rules.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CreateErrorTrackingGroupingRule


Create a new error tracking grouping rule for a .

Parameters

  • assignee_identifier (string, required) The identifier of the to whom the error tracking issue is assigned. Provide a valid user ID or username.
  • error_tracking_filters (string, required) Filters for error tracking grouping rule. Provide criteria to classify errors, such as error types or patterns.
  • order_priority_key (integer, required) An integer representing the priority or sequence order of the error tracking grouping rule within the .
  • project_id (string, required) The ID of the to access. Obtainable via a call to /api/projects/.
  • rule_identifier (string, required) A unique string identifier for the new error tracking grouping rule.
  • grouping_rule_disabled_data (string, optional) Indicate if the grouping rule data should be disabled. Accepts a boolean in string form, like ‘true’ or ‘false’.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveErrorGroupingRules


Retrieve error tracking grouping rules for an environment.

Parameters

  • grouping_rule_id (string, required) A UUID string identifying this specific error tracking grouping rule for retrieval.
  • project_id_for_access (string, required) The ID of the you are trying to access for retrieving error tracking grouping rules. Obtain using the /api/projects/ endpoint.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateErrorTrackingGroupingRules


Update error tracking grouping rules for a .

Parameters

  • assignee_user_id (string, required) The ID of the person to whom the error tracking task is assigned.
  • filters_for_grouping_rules (string, required) Specify filters as a string to refine which errors to group. This can include criteria like error type or severity.
  • grouping_rule_id (string, required) A UUID string identifying the error tracking grouping rule to update in Datadog.
  • priority_order_key (integer, required) Specify the integer value to determine the priority order of grouping rules.
  • project_id (string, required) The ID of the to access. Retrieve this by calling /api/projects/.
  • rule_id (string, required) The unique identifier for the error tracking grouping rule to be updated.
  • disabled_data (string, optional) A string indicating which data to disable in the error tracking grouping rules. Provide the specific data identifier or description.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ModifyGroupingRules


Update error tracking grouping rules for a .

Parameters

  • project_id (string, required) The ID of the you want to access. Retrieve it by calling /api/projects/.
  • assigned_user (string, optional) Specify the assigned to manage the error tracking rules. It should be the username or ID of the Datadog user.
  • disable_data_filtering (string, optional) Specifies data filtering rules to be disabled. Provide a string indicating the types of rules or data aspects to disable.
  • error_tracking_rule_uuid (string, optional) A UUID string identifying the error tracking grouping rule to update.
  • filters_string (string, optional) String containing filtering conditions for updating grouping rules. Specify conditions to narrow down rules to be updated.
  • grouping_rule_order_key (integer, optional) An integer that specifies the priority order of the error grouping rule within a . Higher values may denote higher priority.
  • rule_id (string, optional) The ID of the grouping rule to be updated. Required for specifying which rule to modify within the .

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RemoveErrorTrackingRule


Delete an error tracking grouping rule in a .

Parameters

  • error_tracking_rule_id (string, required) A UUID string identifying the specific error tracking grouping rule to be deleted.
  • project_identifier (string, required) The ID of the to access. Obtain it using /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ReorderErrorTrackingRules


Reorder error tracking grouping rules in a .

Parameters

  • project_identifier (string, required) The unique identifier for the you wish to access. Obtainable via the /api/projects/ endpoint.
  • disabled_data_details (string, optional) Specify details of the data to disable or modify. Format as a string describing which elements are affected.
  • error_grouping_filters (string, optional) Filters to apply for selecting specific error tracking rules to reorder. This can include criteria like rule severity, type, etc.
  • error_tracking_rule_id (string, optional) Unique identifier for the error tracking rule you want to reorder.
  • new_order_key (integer, optional) An integer representing the new order position for the error tracking grouping rules.
  • rule_assignee (string, optional) Assign a person or role responsible for the error tracking grouping rule. Expected to be a string representing a ’s name or identifier.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ListErrorTrackingReleases


Retrieve releases from error tracking for a specific environment.

Parameters

  • project_id (string, required) The unique identifier of the to access. Obtain by calling /api/projects/.
  • results_per_page (integer, optional) The number of results to return per page for error tracking releases.
  • start_index_for_results (integer, optional) The starting index for the results to be returned. Use this to paginate results in the list of error tracking releases.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CreateErrorTrackingRelease


Create a new error tracking release for a .

Parameters

  • error_release_id (string, required) Unique identifier for the error tracking release to be accessed or modified.
  • hash_identifier (string, required) Unique string identifier for the release hash. Required for tracking specific releases.
  • project_id (string, required) ID of the for which to create an error tracking release. Obtainable via /api/projects/.
  • project_name (string, required) The name of the for which you want to create an error tracking release.
  • release_creation_timestamp (string, required) Timestamp indicating when the error tracking release was created. Format should be ISO 8601 (e.g., 2023-10-02T14:48:00Z).
  • release_version (string, required) The version identifier for the new error tracking release.
  • team_identifier (integer, required) The integer ID of the team associated with the error tracking release. Required to specify the team in Datadog.
  • release_metadata (string, optional) Optional metadata for the error tracking release. Provide additional information in a string format.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveErrorTrackingRelease


Retrieves details of a specific error tracking release.

Parameters

  • project_identifier (string, required) ID to access specific error tracking release data. Obtainable via /api/projects/ call.
  • release_uuid (string, required) A UUID string identifying the specific error tracking release to retrieve details for.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateErrorTrackingReleases


Update error tracking releases in a environment.

Parameters

  • created_at_timestamp (string, required) The timestamp indicating when the release was created. Format should be ISO 8601 (e.g., ‘2023-09-23T18:25:43.511Z’).
  • project_identifier (string, required) The ID for accessing the specific project in Datadog. Obtainable by calling /api/projects/.
  • project_key (string, required) The identifier or name of the for which you’re updating the error tracking release.
  • release_hash_id (string, required) A unique identifier for the release you want to update. Provides a reference to the specific release version within the ’s error tracking data.
  • release_id (string, required) A UUID string identifying the error tracking release to update.
  • release_version (string, required) The version of the release being updated. This should typically be a string representing the version code or number.
  • team_identifier (integer, required) The unique integer identifier for the team. Used to specify which team’s release information to update.
  • update_id (string, required) The unique identifier for the release you want to update.
  • metadata_description (string, optional) Provide a string with additional information or details about the release metadata.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateErrorTrackingRelease


Update details for an error tracking release.

Parameters

  • project_id (string, required) The ID of the to access. Retrieve by calling /api/projects/.
  • error_tracking_release_id (string, optional) A UUID string identifying the error tracking release to be updated.
  • release_creation_date (string, optional) The date and time when the error tracking release was created. Expected in ISO 8601 format (e.g., 2023-10-31T14:30:00Z).
  • release_hash_identifier (string, optional) A unique string identifier for the error tracking release to be updated.
  • release_id (string, optional) The unique identifier of the error tracking release to update.
  • release_metadata (string, optional) Metadata for the error tracking release. This should be a string detailing any additional information relevant to the release.
  • release_project_name (string, optional) The name of the associated with the error tracking release to be updated.
  • release_version (string, optional) The specific version of the error tracking release to update. It should be a string representing the version number.
  • team_identifier (integer, optional) The unique identifier for the team associated with the error tracking release. Expected to be an integer.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.DeleteErrorTrackingRelease


Deletes a specific error tracking release from a environment.

Parameters

  • error_tracking_release_id (string, required) A UUID string identifying the error tracking release to be deleted.
  • project_id (string, required) The ID of the being accessed. Use /api/projects/ to find the ID.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveErrorTrackingReleaseHash


Retrieve details for a specific error tracking release hash.

Parameters

  • project_id (string, required) The ID of the to access. Obtainable via a call to /api/projects/.
  • release_hash_id (string, required) The unique identifier for the error tracking release hash. This ID is necessary to retrieve the specific details.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ListErrorTrackingSuppressionRules


List error tracking suppression rules for a environment.

Parameters

  • project_id (string, required) The ID of the to access. Obtain by calling /api/projects/.
  • results_per_page (integer, optional) Number of results to return per page.
  • results_start_index (integer, optional) The starting index for the results to be returned, useful for pagination.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CreateErrorTrackingSuppressionRule


Create a new error tracking suppression rule.

Parameters

  • project_id (string, required) The unique ID of the to access. Obtain it by calling /api/projects/.
  • suppress_rule_order_key (integer, required) An integer representing the order or priority of the suppression rule in the list. Determines processing sequence.
  • suppression_rule_filters (string, required) A string defining the criteria to filter which errors should be suppressed. Specify conditions relevant to your ’s needs.
  • suppression_rule_id (string, required) A unique identifier for the suppression rule to be created. This ID helps in tracking and managing the specific rule.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.GetSuppressionRuleDetails


Retrieve details of a suppression rule in error tracking.

Parameters

  • project_identifier (string, required) The unique identifier for the to access. Obtainable via the /api/projects/ call.
  • suppression_rule_uuid (string, required) A UUID string identifying the specific error tracking suppression rule.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateErrorTrackingSuppressionRules


Update error tracking suppression rules for a .

Parameters

  • filters (string, required) String criteria used to specify which errors to suppress. Format should align with Datadog’s filtering syntax.
  • project_identifier (string, required) The unique identifier for the you want to access. Use the API call /api/projects/ to obtain this ID.
  • rule_id (string, required) The unique identifier for the suppression rule to be updated.
  • suppression_rule_id (string, required) A UUID string identifying the error tracking suppression rule.
  • suppression_rule_order_key (integer, required) Specify the order key for the suppression rule. This determines its priority in execution.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateErrorSuppressionRule


Update error tracking suppression rules for a .

Parameters

  • project_id (string, required) The ID of the you’re trying to access. Call /api/projects/ to find the ID.
  • rule_id (string, optional) The unique identifier of the suppression rule to update. This ID is required to specify which rule you want to partially update.
  • rule_order_key (integer, optional) Specify the order for the suppression rule as an integer. Determines rule priority or execution sequence.
  • suppression_rule_filters (string, optional) A string defining filters for the suppression rule updates (e.g., specific conditions or parameters).
  • suppression_rule_id (string, optional) The UUID identifying the error tracking suppression rule to update.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RemoveErrorSuppressionRule


Delete an error tracking suppression rule.

Parameters

  • project_identifier (string, required) The ID of the to access. Use /api/projects/ to find it.
  • suppression_rule_uuid (string, required) A UUID string that uniquely identifies the error tracking suppression rule to be deleted.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ReorderErrorTrackingSuppressionRules


Reorder error tracking suppression rules for a .

Parameters

  • project_id (string, required) The unique ID of the for which you want to reorder suppression rules. To locate the ID, make a call to /api/projects/.
  • error_tracking_filters (string, optional) Specify filter criteria to narrow down which suppression rules are reordered, using a string format.
  • new_order_key (integer, optional) Integer representing the new order sequence for suppression rules in a .
  • suppression_rule_id (string, optional) The unique ID of the suppression rule you’re reordering within the .

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ListErrorTrackingSymbolSets


Retrieve error tracking symbol sets for a .

Parameters

  • project_id (string, required) The unique ID of the to access. Obtain it by calling /api/projects/.
  • results_per_page (integer, optional) Specifies the number of results to return per page.
  • start_index (integer, optional) The initial index from which to return the results for pagination.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CreateSymbolSet


Create a new symbol set for error tracking in a .

Parameters

  • project_id (string, required) ID needed to access the specific project for creating a symbol set. Obtainable via /api/projects/ call.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveErrorTrackingSymbolSet


Retrieve details of a specific error tracking symbol set.

Parameters

  • error_tracking_symbol_set_uuid (string, required) A UUID string identifying the specific error tracking symbol set to retrieve.
  • project_id (string, required) ID for accessing the specified project. Use /api/projects/ to find this ID.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateEnvironmentSymbolSet


Update error tracking symbol sets in environments.

Parameters

  • error_tracking_symbol_set_id (string, required) A UUID identifying the error tracking symbol set to update.
  • project_id_for_symbol_set_update (string, required) The ID of the for updating the symbol set. Obtainable via /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateErrorTrackingSymbols


Update symbol sets for error tracking in a specific environment.

Parameters

  • error_tracking_symbol_set_id (string, required) A UUID identifying the error tracking symbol set to update.
  • project_identifier (string, required) The ID of the you wish to access. Retrieve by calling /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.DeleteSymbolSet


Deletes an error tracking symbol set by ID.

Parameters

  • project_identifier (string, required) The ID of the to access. Use the /api/projects/ endpoint to find this ID.
  • symbol_set_id (string, required) A UUID string identifying the error tracking symbol set to delete.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CompleteSymbolSetUpload


Finalize the upload of symbol sets in Datadog error tracking.

Parameters

  • project_id_for_symbol_set (string, required) Specify the ID for accessing the project in Datadog. Retrieve using the /api/projects/ endpoint.
  • reference_id (string, required) A unique identifier for the symbol set upload reference.
  • symbol_set_id (string, required) A UUID string identifying the specific error tracking symbol set to be finalized.
  • team_identifier (integer, required) The unique integer identifier representing the team within the Datadog .
  • upload_created_at_timestamp (string, required) The timestamp marking when the upload was created, in ISO 8601 format.
  • upload_session_id (string, required) The unique identifier for the symbol set upload session you wish to complete. This ID is obtained during the initial upload process.
  • storage_pointer (string, optional) A string representing the storage location pointer for the symbol set. Required to identify the upload location within Datadog.
  • upload_failure_reason (string, optional) Provide the reason for upload failure if applicable. This helps in diagnosing issues related to the symbol set upload process in Datadog.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CompleteSymbolSetsUpload


Complete the uploading process for symbol sets in error tracking.

Parameters

  • project_id (string, required) Specifies the ID for access. Obtain this ID via the /api/projects/ endpoint.
  • reference_identifier (string, required) A string used to identify the symbol set upload reference. It helps in finalizing the upload process.
  • symbol_set_id (string, required) Unique identifier for the symbol set upload session to complete.
  • team_identifier (integer, required) The integer ID of the team associated with the symbol sets upload you are finalizing. Required for access control and process completion.
  • upload_completion_timestamp (string, required) Timestamp indicating when the upload process was completed, in ISO 8601 format.
  • storage_pointer (string, optional) A string value representing the storage pointer identifier for the symbol sets. Used to specify the location where the symbol sets are stored.
  • upload_failure_reason (string, optional) A description of the reason for the upload failure, if applicable. Provide detailed information about what caused the issue.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.StartErrorTrackingUpload


Initiate a bulk upload for error tracking symbols.

Parameters

  • project_id (string, required) The unique ID of the to access. Obtainable via /api/projects/ API call.
  • team_id (integer, required) Numeric ID of the team associated with the error tracking upload.
  • upload_creation_timestamp (string, required) The ISO 8601 timestamp indicating when the upload was created. This helps to record the exact time of initiating the upload process.
  • upload_reference (string, required) A unique identifier for the bulk upload session to ensure proper tracking and management.
  • upload_task_id (string, required) Unique identifier for the bulk upload task. Used to reference the upload process.
  • storage_pointer (string, optional) A string that identifies where the symbol sets are stored. Use this to specify the location for the bulk upload.
  • upload_failure_reason (string, optional) Provide a description if there was a failure during bulk upload initiation. This can help identify issues with the upload process.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.StartSymbolUpload


Initiate symbol set upload for error tracking environments.

Parameters

  • project_identifier (string, required) The ID of the to access. Obtain it via a call to /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CreateEvaluationRun


Initiate a new evaluation run for a .

Parameters

  • project_identifier (string, required) The ID of the to access for the evaluation run. Retrieve it using /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ListEnvironmentEvaluations


Retrieve evaluations for a specific environment.

Parameters

  • project_identifier (string, required) The unique ID of the to access evaluations. Retrieve via /api/projects/.
  • evaluation_ids (array[string], optional) List of evaluation IDs to filter results. Multiple IDs allowed, separated by commas.
  • evaluation_ordering (array[string], optional) Specify the ordering of results. Use created_at, updated_at, or name, with optional ’-’ for descending.
  • filter_by_enabled_status (boolean, optional) Filter by enabled (true) or disabled (false) evaluations.
  • results_offset_index (integer, optional) The initial index from which to return the results, allowing pagination control.
  • results_per_page (integer, optional) Number of results to return per page in the environment evaluations list.
  • search_query (string, optional) Search in the evaluation’s name or description. Use this to filter results by specific keywords.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CreateEnvironmentEvaluation


Create a new environment evaluation for a .

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • project_id (string, optional) ID to access. Obtainable from calling /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveEnvironmentEvaluation


Retrieve details of a specific environment evaluation.

Parameters

  • evaluation_id (string, required) A UUID string that uniquely identifies the evaluation to be retrieved.
  • project_id (string, required) The unique identifier for the to access. Use /api/projects/ to find it.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateEnvironmentEvaluation


Update an environment’s evaluation in a .

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • evaluation_id (string, optional) A UUID string uniquely identifying the evaluation to be updated. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_id (string, optional) The ID of the you want to update. Obtainable via the /api/projects/ endpoint. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ModifyEnvironmentEvaluation


Update specific environment evaluation details.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • evaluation_id (string, optional) A UUID string that identifies the specific environment evaluation to update. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_identifier (string, optional) Provide the ID to identify and access the specific project. Use /api/projects/ to retrieve the ID if needed. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.DeleteEvaluation


Marks an evaluation as deleted in the environment.

Parameters

  • evaluation_uuid (string, required) A UUID string identifying the evaluation to be marked as deleted.
  • project_identifier (string, required) The ID of the to access in Datadog. Retrieve it via a call to /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveEnvironmentEvent


Retrieve details of a specific environment event.

Parameters

  • event_id (string, required) The unique identifier for the environment event you want to retrieve details for.
  • project_identifier (string, required) The unique ID of the you want to access. Use /api/projects/ to obtain it if unknown.
  • response_format (string, optional) Specify the desired format of the response. Options are ‘csv’ or ‘json’.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveEnvironmentEventValues


Retrieve event values for a specific environment.

Parameters

  • project_id (string, required) The ID of the to access environment data. Retrieve via /api/projects/.
  • output_format (string, optional) Specifies the format of the returned data. Use ‘csv’ or ‘json’.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.EnvironmentExportsOverview


Retrieve a list of exports for a specified environment.

Parameters

  • project_identifier (string, required) The ID of the to access. Retrieve the ID using a call to /api/projects/.
  • result_start_index (integer, optional) The initial index from which to start returning results for the exports list.
  • results_per_page (integer, optional) Specify the number of results to return per page.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CreateEnvironmentExports


Initiates the creation of environment exports in Datadog.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • project_id (string, optional) The unique ID of the for which you want to create environment exports. Use /api/projects/ to find the ID. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveEnvironmentExports


Retrieve details of an environment export in Datadog.

Parameters

  • export_id (integer, required) A unique integer value identifying the exported asset to retrieve.
  • project_id (string, required) The ID of the to access. Retrieve using /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveEnvironmentExportContent


Retrieve content of a specific environment export.

Parameters

  • exported_asset_id (integer, required) A unique integer value identifying the exported asset. Required to retrieve the specific environment export content.
  • project_identifier (string, required) ID to access the desired project. Retrieve the ID by calling /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ListProjectFileSystems


Retrieve file systems for a given environment.

Parameters

  • project_identifier (string, required) The ID of the to access. Use /api/projects/ to retrieve this ID if unknown.
  • initial_result_index (integer, optional) The initial index from which to return the results. Use this to paginate through data.
  • results_per_page_limit (integer, optional) Specify the number of results to return per page when listing file systems.
  • search_term (string, optional) A search term to filter the results based on specific criteria.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CreateFileSystemEnvironment


Create a new file system environment in a .

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • project_id (string, optional) The ID of the to access for environment creation. Retrieve it from /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.GetEnvironmentFileSystemDetails


Retrieve details of a file system in a specific environment.

Parameters

  • file_system_uuid (string, required) A UUID string identifying the file system to retrieve details for.
  • project_identifier (string, required) ID to access the specific project environment. Use /api/projects/ to find this ID.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateEnvironmentFileSystem


Update a file system for a specific environment.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • file_system_id (string, optional) A UUID string identifying this file system for the update. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_id (string, optional) The unique identifier for the containing the environment. Retrieve using the /api/projects/ endpoint if unknown. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ModifyEnvironmentFileSystem


Partially update a file system environment in a .

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • file_system_id (string, optional) A UUID string that uniquely identifies the specific file system to be updated. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_identifier (string, optional) The unique identifier for the you want to modify. Use the endpoint /api/projects/ to retrieve this ID if unknown. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.DeleteFilesystemEnvironment


Deletes a file system in the specified environment.

Parameters

  • filesystem_id (string, required) A UUID string identifying the file system to be deleted.
  • project_identifier (string, required) The ID of the specific environment. Obtainable through /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.GetFileCountInFolder


Retrieve the count of all files in a specified folder.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • file_system_uuid (string, optional) A UUID string identifying the file system to get the file count. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_id (string, optional) ID for accessing the desired project. Use /api/projects/ to find the ID. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)


Create a link between environment and file system.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • file_system_uuid (string, optional) A UUID string that uniquely identifies the file system to be linked. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_id (string, optional) The ID of the to access. Retrieve using /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.MoveFileWithinEnvironment


Move a file within an environment’s file system.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • file_system_uuid (string, optional) A UUID string identifying the file system to move within the environment. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_id (string, optional) ID for accessing the specific project environment. Obtain it via a call to /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CountFilesInDirectory


Get count of all files in a specified folder.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • project_identifier (string, optional) The ID for accessing the desired project. Retrieve this ID by calling /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CreateEnvironmentFileSystemLogView


Create a file system log view for an environment.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • project_id (string, optional) ID to access the specific environment. Use /api/projects/ to find it. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveUnfiledFileSystemItems


Retrieve unfiled file system items for a .

Parameters

  • project_id (string, required) The ID of the specific whose unfiled file system items you want to retrieve. To obtain this ID, call /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ListFileSystemShortcuts


Retrieve file system shortcuts for a specified .

Parameters

  • project_id (string, required) The ID of the whose file system shortcuts you want to access. Use the /api/projects/ call to find the ID.
  • result_start_index (integer, optional) The initial index from which to start returning results for the file system shortcuts list.
  • results_per_page (integer, optional) Specifies the number of results to return per page when retrieving file system shortcuts.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CreateFileSystemShortcut


Create a file system shortcut for a environment.

Parameters

  • creation_timestamp (string, required) The timestamp indicating when the file system shortcut was created. Format: YYYY-MM-DDTHH:MM:SSZ.
  • file_system_path (string, required) The file system path where the shortcut will point to. This should specify the environment-specific directory.
  • project_identifier (string, required) The unique ID of the to access. Obtain it via a call to /api/projects/.
  • shortcut_identifier (string, required) A unique identifier for the filesystem shortcut to be created. Used to distinguish this shortcut.
  • reference_name (string, optional) A string representing the reference name for the file system shortcut. Use a unique identifier or description that aids in shortcut identification.
  • shortcut_type (string, optional) Specify the type of shortcut to create, such as “folder” or “file”.
  • target_href (string, optional) The URL or path to which the file system shortcut will point. This should be a valid string representing the reference destination.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveFileSystemShortcut


Retrieve details of a specific file system shortcut.

Parameters

  • file_system_shortcut_id (string, required) A UUID string identifying the specific file system shortcut to retrieve details for.
  • project_identifier (string, required) The unique ID needed to access the specific project. Obtain this by querying /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateEnvFileSystemShortcut


Updates a file system shortcut in a specified environment.

Parameters

  • creation_timestamp (string, required) The timestamp when the shortcut was created. Format: ISO 8601 string.
  • file_system_path (string, required) The path of the file system shortcut to update. Specify the full directory path as a string.
  • file_system_shortcut_id (string, required) A UUID string identifying the file system shortcut to be updated.
  • project_identifier (string, required) The ID of the to access. Retrieve this by calling /api/projects/.
  • shortcut_id (string, required) Unique identifier of the file system shortcut to update in the specified environment.
  • reference_identifier (string, optional) The reference identifier for the file system shortcut to be updated.
  • shortcut_href (string, optional) The URL or URI of the file system shortcut to update.
  • shortcut_type (string, optional) Specifies the type of the file system shortcut to be updated, such as ‘document’ or ‘folder’.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ModifyEnvFileSystemShortcut


Update a file system shortcut in a specific environment.

Parameters

  • project_id (string, required) The unique ID of the to access. Retrieve it via a call to /api/projects/.
  • created_at_timestamp (string, optional) The timestamp of when the file system shortcut was created, in ISO 8601 format.
  • file_system_shortcut_id (string, optional) Unique identifier for the file system shortcut to be updated.
  • file_system_shortcut_type (string, optional) Specifies the type of the file system shortcut to update, such as ‘symlink’ or ‘hardlink’.
  • reference_identifier (string, optional) A unique string identifier for the file system shortcut to be updated.
  • shortcut_file_path (string, optional) The path to the file system shortcut that needs to be updated in the environment.
  • shortcut_href (string, optional) The URL or link to the file system shortcut that needs updating. This should be a valid URI.
  • shortcut_id (string, optional) A UUID string that uniquely identifies the file system shortcut to update.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.DeleteFileSystemShortcut


Deletes a file system shortcut in an environment.

Parameters

  • file_system_shortcut_id (string, required) The UUID string that uniquely identifies the file system shortcut to be deleted.
  • project_identifier (string, required) The unique identifier for the you wish to access. Retrieve this by calling /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ListEnvironmentGroups


Retrieve all groups for a specific environment’s group type.

Parameters

  • group_type_index (integer, required) The index representing the specific group type to list. Use this to filter groups by type.
  • project_id (string, required) ID of the to access. Retrieve the ID from the /api/projects/ endpoint.
  • search_group_name (string, required) Search term for the group name to filter results.
  • pagination_cursor (string, optional) The pagination cursor value to navigate through the paginated list of environment groups.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CreateEnvironmentGroup


Create a new environment group in a .

Parameters

  • environment_group_key (string, required) A string identifier for the environment group. It must be unique within the .
  • group_type_index (integer, required) An integer representing the index of the group type to be created within the . Ensure it matches the available types for grouping.
  • project_identifier (string, required) The unique identifier for the to access. Retrieve using /api/projects/.
  • environment_group_properties (string, optional) A JSON string containing key-value pairs for the properties of the environment group. Define attributes like settings and configurations relevant to the group.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveEnvironmentGroupActivity


Retrieve activity data for groups within an environment.

Parameters

  • group_type_index (integer, required) An integer that specifies the type of group to find within the environment.
  • project_id (string, required) ID required to access activity data for the specified environment group. Obtain this ID by making a call to /api/projects/.
  • user_id_for_group_retrieval (string, required) Specify the user ID to retrieve group activities for within a .

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.DeleteEnvironmentGroupProperty


Deletes a property from an environment group.

Parameters

  • creation_date (string, required) The date when the property was created, in ISO 8601 format.
  • environment_group_type_index (integer, required) An integer representing the group type index to identify the environment group.
  • group_key (string, required) Specify the key of the environment group you want to target for property deletion.
  • group_key_for_deletion (string, required) The key of the property to delete from the environment group.
  • group_type_index (integer, required) Specify the group type index to identify which group to delete the property from. This should be an integer value.
  • project_id (string, required) The unique identifier for the . Obtain it by calling /api/projects/.
  • group_properties_to_delete (string, optional) A comma-separated list of property names you want to delete from the environment group.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.FindEnvironmentGroups


Retrieve details of environment groups by ID.

Parameters

  • environment_group_key (string, required) Specify the key of the environment group you want to find within the .
  • group_type_to_find (integer, required) Specify the type of environment group to find. This is represented as an integer value that corresponds to a specific group type within the .
  • project_id (string, required) The ID of the to access. Call /api/projects/ to find the project ID.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveEnvironmentPropertyDefinitions


Retrieve property definitions for environment groups.

Parameters

  • project_identifier (string, required) ID for accessing environment groups. Use /api/projects/ to find this ID.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveEnvironmentPropertyValues


Retrieve property values of environments within a .

Parameters

  • project_identifier (string, required) The unique ID of the to access. Retrieve this ID via a call to the /api/projects/ endpoint.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.GetRelatedEnvironmentGroups


Retrieve related environment groups for a .

Parameters

  • group_type_identifier (integer, required) An integer representing the specific group type to locate within the environment groups.
  • project_id (string, required) The unique ID of the to access related environment groups. Obtainable via a call to /api/projects/.
  • user_id_for_group_search (string, required) The ID of the for whom you want to find related groups. This helps in retrieving specific group associations for the given user.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateEnvironmentGroupProperty


Update a property of an environment group.

Parameters

  • creation_timestamp (string, required) The date and time when the property was created, in ISO 8601 format (e.g., ‘2023-10-05T14:48:00Z’).
  • environment_group_key (string, required) A unique identifier for the environment group whose property is being updated.
  • group_key (string, required) Specify the key of the group to locate within the for updating properties.
  • group_type_identifier (integer, required) A unique integer representing the type of environment group to locate and update.
  • group_type_index_identifier (integer, required) The integer index identifying the type of the environment group to be updated. Ensure it corresponds to the correct group type required for the operation.
  • project_id (string, required) The unique ID for accessing specific project resources. Retrieve this ID by making a call to /api/projects/.
  • group_properties (string, optional) A JSON string representing the properties to update in the environment group.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ListProjectHogFunctions


Retrieve a list of hog functions for a given .

Parameters

  • project_identifier (string, required) The ID to access the specific project. Use /api/projects/ to find the ID.
  • created_at (string, optional) The creation date of the hog function. Expected in ISO 8601 format (e.g., 2023-10-11T15:00:00Z).
  • created_by_user_id (integer, optional) The ID of the person who created the hog functions.
  • function_id (string, optional) The unique identifier for the hog function to be retrieved. Specify this to get details of a specific function.
  • function_types (array[string], optional) Specify one or more hog function types to filter by, separated by commas.
  • include_enabled_functions (boolean, optional) If set to true, returns only enabled hog functions; otherwise, returns all functions.
  • results_offset (integer, optional) The initial index from which to return the results for paginated data.
  • results_per_page (integer, optional) Specify the number of results to return per page for the hog functions list.
  • search_term (string, optional) A string used to search and filter the list of hog functions.
  • update_timestamp (string, optional) A timestamp indicating the last update time of the hog function. Use format YYYY-MM-DDTHH:MM:SSZ.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CreateHogFunctionEnvironment


Track and create a new file system view in an environment.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • project_id (string, optional) The ID of the to access. Call /api/projects/ to retrieve project IDs if needed. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.TrackHogFunctionViews


Tracks views on a specific hog function by logging access.

Parameters

  • hog_function_uuid (string, required) A UUID string to identify the specific hog function for view tracking.
  • target_project_id (string, required) The ID of the to access. Use /api/projects/ to find the ID.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateHogFunctions


Update and log views of file system resources.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • hog_function_uuid (string, optional) A UUID string identifying this hog function to update and log views. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_identifier (string, optional) The ID of the you want to access. Retrieve it using a call to /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateHogFunctionViewLog


Log a new view for an environment’s hog function.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • hog_function_uuid (string, optional) A UUID string identifying the hog function to log a view for. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_identifier (string, optional) The ID of the to access. Retrieve it by calling /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.DeleteHogFunction


Marks a hog function as deleted in a .

Parameters

  • hog_function_id (string, required) A UUID string identifying the specific hog function to mark as deleted.
  • project_identifier (string, required) The unique identifier for the to access. To find it, make a call to /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CreateHogFunctionBroadcast


Create a broadcast for hog functions in an environment.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • hog_function_id (string, optional) A UUID string identifying the hog function for broadcast creation. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_identifier (string, optional) String representing the ID of the to access. Obtain the ID via a call to /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.TrackHogFunctionInvocation


Track and log hog function invocations in a .

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • hog_function_id (string, optional) A UUID string identifying the hog function to track in the specified environment. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_id (string, optional) The ID of the to access. Call /api/projects/ to retrieve the ID if needed. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveHogFunctionLogs


Retrieve logs for hog function views in an environment.

Parameters

  • hog_function_uuid (string, required) A UUID string identifying the specific hog function to retrieve logs for.
  • project_identifier (string, required) The unique identifier for the to access. Obtainable via a call to /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveHogFunctionMetrics


Retrieve hog function metrics for a specific environment.

Parameters

  • hog_function_uuid (string, required) A UUID string identifying the specific hog function for which metrics are being retrieved.
  • project_identifier (string, required) ID of the target project. Retrieve via /api/projects/ if unknown.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveHogFunctionMetricsTotals


Retrieve total metrics for a specific HOG function.

Parameters

  • hog_function_uuid (string, required) A UUID string identifying the specific HOG function for which to retrieve metrics.
  • project_id (string, required) The ID of the to access. Obtainable via the /api/projects/ endpoint.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveHogFunctionIcon


Retrieve the icon for a specified hog function view access.

Parameters

  • project_id (string, required) The ID of the to access. Obtain it by calling /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveEnvironmentHogFunctionIcons


Logs and retrieves hog function icons for a given environment.

Parameters

  • project_id (string, required) The ID of the to access. Use /api/projects/ to find the correct ID.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateHogFunctionsOrder


Update the execution order of HogFunctions.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • project_id (string, optional) The unique identifier for the whose HogFunctions you want to rearrange. Use /api/projects/ to find it. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.GetEnvironmentInsights


Retrieve insights for a specific environment.

Parameters

  • project_id (string, required) The ID of the to access. Use /api/projects/ to find the correct ID.
  • created_by_user_id (integer, optional) The ID of who created the insight. Expected as an integer.
  • initial_result_index (integer, optional) The initial index from which to start returning results.
  • refresh_method (string, optional) Strategy for refreshing insights, with options for cache use and sync/async execution. Choices include: ‘force_cache’, ‘blocking’, ‘async’, ‘lazy_async’, ‘force_blocking’, and ‘force_async’.
  • response_format (string, optional) Specify the format of the retrieved insights (csv or json).
  • results_per_page (integer, optional) Number of results to return per page for pagination.
  • return_basic_insight_metadata_only (boolean, optional) Set to true to return only basic metadata without results for faster response.
  • short_identifier (string, optional) The short identifier for the environment to retrieve insights for. This is unique per environment.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CreateEnvironmentInsight


Create a new insight for an environment.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • project_id (string, optional) ID to access the specific project. Retrieve using /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • output_format (string, optional) Specify the format of the output data. Accepted values are ‘csv’ or ‘json’. Only used when mode is ‘execute’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ListEnvironmentInsights


Retrieve sharing details of environment insights.

Parameters

  • insight_id (integer, required) The identifier for the specific insight. Provide as an integer to specify which insight’s sharing details to retrieve.
  • project_identifier (string, required) Unique identifier for the to access. Retrieve via /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CreateSharingPassword


Create a new password for sharing configuration.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • insight_identifier (integer, optional) The unique integer ID of the insight for which you want to create a sharing password. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_id (string, optional) The ID of the you want to access. Obtain this by calling /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.DeleteInsightSharingPassword


Delete a password from an insight’s sharing configuration.

Parameters

  • insight_identifier (integer, required) The unique integer ID of the insight whose sharing password you want to delete.
  • password_identifier (string, required) The unique identifier of the password to be deleted from the sharing configuration.
  • project_id (string, required) The unique identifier for the you wish to access. Obtain this ID by calling /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RefreshInsightsSharing


Refresh sharing status of insights in a .

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • insight_id (integer, optional) The ID of the insight you want to refresh sharing for. This should be an integer. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_id (string, optional) The ID of the you want to access. Use /api/projects/ to find the project ID. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.FetchEnvironmentInsights


Retrieve insights for a specific environment.

Parameters

  • insight_identifier (integer, required) A unique integer identifying the specific insight to retrieve.
  • project_identifier (string, required) The ID of the to access. Retrieve it by calling /api/projects/.
  • dashboard_id_context (integer, optional) The ID of the dashboard to apply its filters and date range if loading insight in the of a dashboard.
  • insight_refresh_strategy (string, optional) Determines how to refresh the insight: choose from ‘force_cache’, ‘blocking’, ‘async’, ‘lazy_async’, ‘force_blocking’, or ‘force_async’. Dictates calculation synchronization and use of cache.
  • output_format (string, optional) Specify the format for the output data. Options are ‘csv’ or ‘json’.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateEnvironmentInsights


Update insights for a specified environment.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • insight_identifier (integer, optional) A unique integer identifying the specific insight to update. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_identifier (string, optional) The unique string ID of the to access. Obtainable via /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • output_format (string, optional) Specify the format for the response data. Options are ‘csv’ or ‘json’. Only used when mode is ‘execute’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateEnvironmentInsightsLog


Log a view of environment insights to track changes.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • insight_identifier (integer, optional) A unique integer identifying the environment insight to log. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_identifier (string, optional) The ID needed to access the desired environment insights. Retrieve it by calling /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • output_format (string, optional) Specify the format of the data to be returned. Options are ‘csv’ or ‘json’. Only used when mode is ‘execute’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.DeleteEnvironmentInsight


Marks an environment insight as deleted.

Parameters

  • insight_id (integer, required) A unique integer value identifying the environment insight to be marked as deleted.
  • project_identification (string, required) The ID of the to access. Obtain by calling /api/projects/.
  • response_format (string, optional) Specify the response format for the deletion confirmation, either ‘csv’ or ‘json’.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveEnvironmentInsightActivity


Retrieve logs of views on environment insights.

Parameters

  • insight_id (integer, required) A unique integer identifying the specific insight to retrieve logs for.
  • project_id (string, required) The unique ID of the to access. Call /api/projects/ to retrieve it.
  • response_format (string, optional) Specify the format of the response. Allowed values are ‘csv’ or ‘json’.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.TrackEnvironmentInsights


Retrieve and log environment activity insights.

Parameters

  • environment_project_id (string, required) ID for accessing environment insights. Obtainable via the /api/projects/ endpoint.
  • output_format (string, optional) Specify the output format of the retrieved data. Accepts ‘csv’ or ‘json’.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CancelInsightCreation


Cancel the creation of an environment insight.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • project_identifier (string, optional) The ID of the to access. Use /api/projects/ to find the ID. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • response_format (string, optional) Specify the response format as either ‘csv’ or ‘json’. Only used when mode is ‘execute’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveLastViewedInsights


Fetches the last 5 insights viewed, sorted by recency.

Parameters

  • project_id (string, required) The ID of the to access insights for. Use /api/projects/ to find the ID.
  • response_format (string, optional) Specifies the format of the returned data. Accepts ‘csv’ or ‘json’. Defaults to ‘json’.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateInsightViewTimestamps


Updates the view timestamps for specific insights.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • project_identifier (string, optional) ID to access. Retrieve this ID using the /api/projects/ endpoint if needed. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • response_format (string, optional) Specifies the format of the returned data. Options are ‘csv’ or ‘json’. Only used when mode is ‘execute’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ListEnvironmentIntegrations


Retrieve a list of integrations for a specified environment.

Parameters

  • project_identifier (string, required) ID for accessing the desired project’s environment. Obtain this ID by calling /api/projects/.
  • results_per_page (integer, optional) Number of results to return per page for the environment integrations list.
  • starting_index (integer, optional) The initial index from which to return results, used for pagination.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CreateEnvironmentIntegration


Create a new integration for a specified environment.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • project_identifier (string, optional) ID needed to access the specific project. Retrieve it via /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveIntegrationDetails


Retrieve integration details for a specific environment.

Parameters

  • integration_id (integer, required) A unique integer value identifying the specific integration to retrieve.
  • project_identifier (string, required) ID to access the specific environment. Retrieve it via the /api/projects/ endpoint.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.DeleteEnvironmentIntegration


Delete an integration from a environment.

Parameters

  • integration_id (integer, required) A unique integer representing the integration to be deleted.
  • project_identifier (string, required) The unique identifier for the . Use an API call to /api/projects/ to retrieve this if unknown.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveIntegrationChannels


Retrieve integration channels for a specific .

Parameters

  • integration_id (integer, required) A unique integer identifying the specific integration within Datadog.
  • project_id (string, required) The unique ID of the you want to access. Obtain it by calling /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveClickupLists


Retrieve ClickUp lists for specific integrations.

Parameters

  • integration_id (integer, required) Unique integer identifying the specific integration.
  • project_id (string, required) The unique ID of the you want to access. Retrieve it via the /api/projects/ endpoint.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.GetClickupSpaces


Retrieve ClickUp spaces for a specific integration.

Parameters

  • integration_identifier (integer, required) An integer value uniquely identifying the integration to retrieve ClickUp spaces for.
  • project_identifier (string, required) The unique ID of the to access specific ClickUp spaces. Obtain this ID via the /api/projects/ endpoint.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.GetClickupWorkspaces


Retrieve ClickUp workspaces for a specific integration.

Parameters

  • clickup_project_id (string, required) The ID for accessing the desired ClickUp workspace. Obtain the ID by calling /api/projects/.
  • integration_id (integer, required) A unique integer value identifying the integration to retrieve workspaces for.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.VerifyEmailIntegration


Verify email address for an integration’s environment.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • integration_id (integer, optional) A unique integer value identifying this integration within the environment. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_id (string, optional) ID for which you want to verify the email integration. Retrieve it by calling /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.GetGithubReposForIntegration


Retrieve GitHub repositories linked to a Datadog integration.

Parameters

  • integration_id (integer, required) A unique integer identifying the specific integration within Datadog.
  • project_id (string, required) The unique ID of the to access. Obtain the project ID using the /api/projects/ endpoint.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveGoogleAccessibleAccounts


Retrieve Google accessible for a given integration.

Parameters

  • integration_id (integer, required) A unique integer identifying the integration.
  • project_id (string, required) Project ID to access specific Google . Obtain by calling /api//.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.GetGoogleConversionActions


Retrieve Google conversion actions for a specific environment.

Parameters

  • integration_identifier (integer, required) A unique integer identifying the integration.
  • project_id (string, required) The ID of the you want to access. Obtain this from /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveIntegrationTeams


Retrieve linear teams for an integration in a .

Parameters

  • integration_id (integer, required) A unique integer identifying the integration to retrieve team details.
  • project_id (string, required) The ID of the you want to access. Find this ID by calling /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.GetLinkedinAdsAccounts


Retrieve LinkedIn Ads linked to a .

Parameters

  • integration_id (integer, required) A unique integer to identify the LinkedIn Ads integration within Datadog.
  • project_id (string, required) The ID of the project to access LinkedIn Ads . Retrieve this ID via the /api// endpoint.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveLinkedinAdsConversionRules


Retrieve LinkedIn Ads conversion rules for a .

Parameters

  • integration_id (integer, required) A unique integer identifying the LinkedIn Ads integration to retrieve conversion rules for.
  • project_id (string, required) The ID of the for which you want to retrieve LinkedIn Ads conversion rules. Obtain this ID by calling /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.GetTwilioPhoneNumbers


Retrieve Twilio phone numbers for a specific integration.

Parameters

  • integration_identifier (integer, required) A unique integer value identifying the Twilio integration for which phone numbers should be retrieved.
  • project_id (string, required) The ID of the you want to access. Use /api/projects/ to retrieve the ID if needed.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveIntegrationAuthorization


Retrieve integration authorization status for a .

Parameters

  • project_id (string, required) The unique identifier for the you want to access. Obtain the ID by calling /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveEnvironmentLogAttributes


Retrieve log attributes for a specific environment.

Parameters

  • project_id (string, required) The unique identifier for the whose environment log attributes you want to retrieve. Obtainable via a call to /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CreateLogsQueryForEnvironment


Create a logs query for a specific environment.

Parameters

  • project_identifier (string, required) The unique ID of the being accessed. Use /api/projects/ to find it.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CreateEnvironmentLogSparkline


Create a sparkline for environment logs in Datadog.

Parameters

  • project_id_for_log_sparkline (string, required) The ID for accessing the environment logs in Datadog. Retrieve this ID by calling /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveEnvironmentLogsValues


Fetch log values for a given environment and .

Parameters

  • project_id (string, required) The unique ID of the to access. Obtainable via a call to /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CreateMaxToolsInsight


Create an insight for maximum tools in a .

Parameters

  • project_id (string, required) The ID of the you want to access to create the insight. Obtainable via /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.GetPersistedFolders


Retrieve a list of persisted folders for a given environment.

Parameters

  • project_id (string, required) The ID of the you want to access. Obtain this by calling /api/projects/.
  • results_per_page (integer, optional) Number of results to return per page when retrieving folders.
  • starting_index (integer, optional) The initial index from which to return the results, used for pagination.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CreatePersistedFolder


Create a persisted folder in a Datadog environment.

Parameters

  • folder_creation_timestamp (string, required) Timestamp indicating when the folder was created. It should be in ISO 8601 format.
  • folder_id (string, required) A unique identifier for the persisted folder to be created in the environment.
  • folder_type (string, required) Specifies the type of the folder to create. Acceptable values are ‘home’ for Home directory and ‘pinned’ for Pinned directory.
  • folder_updated_at (string, required) Timestamp indicating when the folder was last updated.
  • project_identifier (string, required) The ID of the Datadog for accessing a specific environment. Obtain this by calling /api/projects/.
  • folder_protocol (string, optional) Specify the protocol for the persisted folder, typically as a string indicator.
  • persisted_folder_path (string, optional) Specify the path for the persisted folder in the Datadog environment. This should be a valid directory path within the .

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrievePersistedEnvironmentFolder


Retrieve details of a persisted environment folder by ID.

Parameters

  • persisted_folder_id (string, required) A UUID string identifying the persisted folder to retrieve.
  • project_identifier (string, required) The unique identifier for the related to the persisted folder. Obtainable via a call to /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateEnvironmentFolder


Update a specific folder in an environment .

Parameters

  • folder_creation_date (string, required) The date and time when the folder was created, in ISO 8601 format (e.g., ‘2023-10-12T14:23:30Z’).
  • folder_id (string, required) The identifier for the folder to be updated in the environment.
  • folder_type (string, required) Specify the type of the folder: ‘home’ for Home, ‘pinned’ for Pinned.
  • folder_update_timestamp (string, required) Timestamp indicating when the folder was last updated. Expected in ISO 8601 format.
  • folder_uuid (string, required) A UUID string identifying the Persisted Folder to update.
  • project_identifier (string, required) String ID of the to access. Retrieve by calling /api/projects/.
  • folder_path (string, optional) The path of the folder within the environment to update.
  • folder_protocol_type (string, optional) Specifies the protocol type for accessing the folder. Must be a string.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ModifyEnvFolder


Partially update a specific environment folder.

Parameters

  • project_id (string, required) Provide the ID to access the specific environment. Retrieve it via /api/projects/.
  • environment_folder_creation_date (string, optional) The creation date of the environment folder. Expected in YYYY-MM-DD format.
  • environment_folder_id (string, optional) The unique identifier for the environment folder to update. Provide a valid string ID.
  • environment_folder_last_updated (string, optional) The timestamp when the environment folder was last updated. Use ISO 8601 format.
  • environment_folder_protocol (string, optional) Specify the protocol type for the environment folder, such as ‘home’ or ‘pinned’.
  • folder_path (string, optional) Specify the updated path for the environment folder.
  • folder_type (string, optional) Specify the type of the folder: home for Home or pinned for Pinned.
  • persisted_folder_id (string, optional) A UUID string that uniquely identifies the persisted folder to be updated.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.DeletePersistedFolder


Delete a persisted folder from a environment.

Parameters

  • persisted_folder_uuid (string, required) A UUID identifying the persisted folder to be deleted.
  • project_id (string, required) The unique ID of the where the folder resides. Retrieve this ID by calling /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrievePersonDetails


Retrieve details of a specific person in a .

Parameters

  • person_id (integer, required) Unique integer identifying the person to retrieve details for.
  • project_identifier (string, required) The ID of the to retrieve the person’s details. Obtainable via a call to /api/projects/.
  • response_format (string, optional) Specify the format for the response data. Options are ‘csv’ or ‘json’.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdatePersonProperties


Update specific properties of a person in a .

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • person_id (integer, optional) A unique integer identifier for the person whose properties are to be updated. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_id (string, optional) The ID of the to access. Retrieve using /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • response_format (string, optional) Specify the format for the endpoint response. Choose between ‘csv’ or ‘json’. Only used when mode is ‘execute’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ModifyPersonsInEnvironment


Modify or remove persons in a given environment.

Parameters

  • project_id_of_target_environment (string, required) The ID for the environment you want to access. Find it with a call to /api/projects/.
  • distinct_ids_list (array[string], optional) List of unique identifiers for individuals to be updated or deleted. Each identifier should be a string.
  • person_created_at (string, optional) The timestamp of when the person was created, formatted as a string. This helps identify the creation date of the person within the system.
  • person_id (integer, optional) The unique identifier for the person you want to update or delete. This is an integer value.
  • person_identifier (integer, optional) A unique integer used to identify the person for modification or deletion.
  • person_identifier_uuid (string, optional) The unique identifier for the person whose data is to be updated or deleted. This UUID is required for the operation.
  • person_name (string, optional) The name of the person to modify. This is required for updating the person’s information.
  • person_properties (string, optional) JSON string of properties and values to update for a person. This may include attributes like name, email, etc.
  • response_format (string, optional) Specifies the format of the response data. Acceptable values are ‘csv’ or ‘json’.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.DeletePersonRecord


Deletes an individual person record from a .

Parameters

  • person_id (integer, required) A unique integer value identifying the person to be deleted.
  • project_id (string, required) The ID of the to access. Obtain it by calling /api/projects/.
  • delete_events_task (boolean, optional) If true, a task to delete all events associated with this person is created and queued, running every Sunday at 5 AM UTC.
  • response_format (string, optional) Specifies the format of the response, either ‘csv’ or ‘json’.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrievePersonActivity


Retrieve a person’s activity from the environment.

Parameters

  • person_id (integer, required) A unique integer identifying the person whose activity you want to retrieve.
  • project_id (string, required) ID to access. Obtain by calling /api/projects/.
  • output_format (string, optional) Specify the output format for the data, either ‘csv’ or ‘json’.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.QueuePersonEventsDeletion


Queue the deletion of all events for a specific person.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • person_identifier (integer, optional) A unique integer identifying the person whose events are to be deleted. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_id (string, optional) ID needed to access the specific project. Obtainable via /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • events_export_format (string, optional) The format in which to export events before deletion. Acceptable values are ‘csv’ or ‘json’. Only used when mode is ‘execute’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.DeletePersonProperty


Deletes a specific property from a person.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • property_key_to_delete (string, optional) Specify the property key of the person to delete. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • person_identifier (integer, optional) A unique integer identifier for the person whose property is to be deleted. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_id (string, optional) The ID of the to access. Use /api/projects/ to retrieve this ID. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • response_format (string, optional) Specify the format of the response. Options are ‘csv’ or ‘json’. Only used when mode is ‘execute’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.DeletePersonRecordings


Queue deletion of all recordings associated with a person.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • person_id (integer, optional) A unique integer identifier for the person whose recordings should be deleted. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_identifier (string, optional) The ID of the for which you want to queue recording deletions. Obtainable via /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • response_format (string, optional) Specify the format for the response, either ‘csv’ or ‘json’. Only used when mode is ‘execute’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrievePersonPropertyTimeline


Retrieve timeline of property changes for a person.

Parameters

  • person_identifier (integer, required) Unique integer value for identifying the person.
  • project_id (string, required) The ID of the to access. Obtainable via a call to /api/projects/.
  • output_format (string, optional) Specify the format of the data to be retrieved. Options are ‘csv’ or ‘json’.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ReadOrDeletePerson


Read or delete a person’s record in the environment.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • person_id (integer, optional) Unique integer identifier for the person to read or delete. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_identifier (string, optional) Unique identifier for the to access. Retrieve via /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • output_format (string, optional) Specify the format of the response. Choose between ‘csv’ or ‘json’. Only used when mode is ‘execute’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdatePersonProperty


Update a specific property for a person in an environment.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • property_key (string, optional) The key of the property you want to update for a person. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • property_value (string, optional) Specify the value for the property to update for a person. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • person_identifier (integer, optional) Unique identifier for the person. Use an integer value to specify the person whose property you wish to update. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_identifier (string, optional) Specify the ID of the you wish to access. Retrieve the project ID via /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • output_format (string, optional) The format in which the response is returned. Choose either ‘csv’ or ‘json’. Only used when mode is ‘execute’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.GetPersonsActivity


Retrieve activity data for persons in a environment.

Parameters

  • project_identifier (string, required) The unique ID of the to access. Use /api/projects/ to find the ID.
  • response_format (string, optional) Specifies the format of the response data. Choose either ‘csv’ or ‘json’.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.BulkDeletePersonsInEnvironment


Bulk delete persons by IDs in a Datadog environment.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • target_project_id (string, optional) The ID of the you wish to access for this operation. Retrieve it using the /api/projects/ endpoint. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • distinct_ids_to_delete (json, optional) Provide a list of up to 1000 distinct IDs to delete all associated persons. Only used when mode is ‘execute’.
  • response_format (string, optional) Specify the format of the API response, either ‘csv’ or ‘json’. Only used when mode is ‘execute’.
  • posthog_person_ids (json, optional) A list of up to 1000 PostHog person IDs to delete from the environment. Only used when mode is ‘execute’.
  • delete_events (boolean, optional) If true, a task to delete all events related to this person will be created and queued, executing at 5AM UTC every Sunday. Only used when mode is ‘execute’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrievePersonsCohorts


Retrieve persons cohort data from specified environments.

Parameters

  • project_id (string, required) ID for accessing the specified cohort data. Obtain this by calling /api/projects/.
  • response_format (string, optional) Specifies the format of the response. Supported values are ‘csv’ and ‘json’.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.FetchPersonsFunnelData


Fetch persons data from the funnel in a specified environment.

Parameters

  • project_id (string, required) The ID of the to access. Use /api/projects/ to find this ID.
  • output_format (string, optional) Specify the format of the data output: ‘csv’ or ‘json’.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CreatePersonsFunnel


Create a funnel for tracking persons.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • target_project_id (string, optional) The ID of the you want to access. Obtain it via /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • output_format (string, optional) Specify the output format for the funnel creation. Options are ‘csv’ or ‘json’. Only used when mode is ‘execute’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrievePersonsFunnelCorrelation


Retrieve persons related to funnel correlation in an environment.

Parameters

  • project_id (string, required) The ID of the to access. Retrieve using /api/projects/.
  • response_format (string, optional) Specifies the format of the response. Acceptable values are ‘csv’ or ‘json’.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CreatePersonsFunnelCorrelation


Create a funnel correlation for persons in a .

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • project_id (string, optional) The unique identifier for the to access. Obtain this by calling /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • output_format (string, optional) Specifies the output format of the response. Accepts ‘csv’ or ‘json’. Only used when mode is ‘execute’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrievePersonsLifecycle


Retrieve lifecycle details of persons in a .

Parameters

  • project_id (string, required) The unique identifier of the to access. Use /api/projects/ to find this ID.
  • response_format (string, optional) Specify the format of the response data. Choose either ‘csv’ or ‘json’.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ResetDistinctId


Reset a distinct_id for a deleted person.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • project_id (string, optional) The ID of the to access. Retrieve this via the /api/projects/ endpoint. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • response_format (string, optional) Specify the format of the response. Options are ‘csv’ or ‘json’. Only used when mode is ‘execute’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrievePersonStickiness


Retrieve stickiness data for persons in a environment.

Parameters

  • project_identifier (string, required) The unique ID needed to access stickiness data. Obtainable via a call to /api/projects/.
  • response_format (string, optional) Specifies the format of the response data. Available options are ‘csv’ or ‘json’.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrievePersonsTrends


Retrieve trends data for persons in a specified environment.

Parameters

  • project_id (string, required) The ID of the to access for retrieving person trends. Obtain this by calling /api/projects/.
  • response_format (string, optional) Specify the format of the response: ‘csv’ or ‘json’.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrievePersonsData


Retrieve information about persons in a specified environment.

Parameters

  • project_identifier (string, required) The unique ID required to access the specific environment. Obtainable via /api/projects/.
  • response_format (string, optional) Specifies the format in which the response should be returned. Options are ‘csv’ or ‘json’.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ListEnvironmentPluginLogs


Retrieve logs for a plugin configuration in a specific environment.

Parameters

  • plugin_configuration_id (string, required) The identifier for the plugin configuration to retrieve logs for. Required to specify which plugin configuration’s logs to access.
  • project_id (string, required) The ID of the to access logs for. Obtain this ID by calling /api/projects/.
  • results_offset_index (integer, optional) The starting index for the results to return from the API. Used for pagination.
  • results_per_page (integer, optional) Specify the number of results to return per page for pagination.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.GetEnvironmentQueryResults


Retrieve results of an environment query for a .

Parameters

  • project_id (string, required) The ID of the you want to access. Retrieve it via a call to /api/projects/.
  • query_id (string, required) The ID of the specific query to retrieve results for within the ’s environment.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.DeleteEnvironmentQuery


Delete a specific query environment.

Parameters

  • project_id_access (string, required) Specify the ID of the project you want to access. Obtain the ID by calling /api/projects/.
  • query_id (string, required) The unique ID of the environment query to be deleted. This is necessary to specify which query environment should be removed.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveQueryLogDetails


Retrieve query log details for a given query ID.

Parameters

  • project_id (string, required) The unique identifier for the . Call /api/projects/ to find it.
  • query_id (string, required) The unique identifier for the query issued in the last 24 hours to retrieve its log details.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CheckPosthogEnvAuthenticationAsync


Check authentication for Datadog environment asynchronously.

Parameters

  • posthog_project_id (string, required) ID to access a specific Datadog environment. Obtainable via a call to /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveEnvironmentDraftSql


Retrieve draft SQL for a specific environment.

Parameters

  • project_identifier (string, required) The ID of the to access. Obtain by calling /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ListSyntheticPlaylists


Retrieve synthetic session recording playlists.

Parameters

  • project_identifier (string, required) A string representing the ID to access specific project environments for synthetic session recording playlists. Obtain the ID by calling /api/projects/.
  • created_by_user_id (integer, optional) The ID of the creator of the playlists to filter results by. If not specified, playlists by any creator will be included.
  • playlist_short_id (string, optional) A unique identifier for the playlist. Used to specify which playlist to retrieve or target.
  • results_per_page (integer, optional) Specifies the number of results to return per page.
  • starting_index_for_results (integer, optional) The starting index from which the results will be returned. Used for pagination in retrieving playlists.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CreateSessionRecordingPlaylist


Create a new session recording playlist for an environment.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • project_id (string, optional) Provide the ID to access the specific project. You can retrieve the ID by calling /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveSessionRecordingPlaylists


Retrieve a session recording playlist for a specific .

Parameters

  • playlist_short_id (string, required) The short identifier of the session recording playlist to retrieve. Required for accessing specific playlist details.
  • project_id (string, required) The unique identifier of the to access. Obtain this ID from the /api/projects/ endpoint.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateSessionRecordingPlaylist


Update a session recording playlist within an environment.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • project_id (string, optional) ID required to access the specific project. Obtainable via the /api/projects/ endpoint. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • playlist_short_id (string, optional) The short ID of the session recording playlist to update. It identifies the specific playlist within a environment. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ModifyRecordingPlaylist


Update session recording playlists for a given and ID.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • project_id (string, optional) The unique ID of the to access. Retrieve the ID via /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • session_recording_short_id (string, optional) The unique short identifier for the session recording playlist you want to update. Typically a concise string for quick reference. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.DeleteSessionRecordingPlaylist


Mark a session recording playlist as deleted.

Parameters

  • project_id (string, required) The ID of the to access. Retrieve by calling /api/projects/.
  • session_recording_playlist_short_id (string, required) The short ID of the session recording playlist to mark as deleted.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveSessionRecordings


Retrieve session recordings for a specified playlist.

Parameters

  • playlist_short_id (string, required) The unique short ID of the session recording playlist to retrieve recordings from.
  • project_id (string, required) The unique ID of the . Obtain this by calling the /api/projects/ endpoint.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CreateSessionRecordingPlaylistEntry


Add a recording to a session playlist.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • project_id (string, optional) The unique identifier for the to access. Obtain by calling /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • session_recording_id (string, optional) The ID of the session recording to be added to the playlist. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • session_recording_short_id (string, optional) The short ID of the session recording to add to the playlist. It must be a valid string identifier. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.DeleteSessionRecording


Deletes a session recording from a playlist.

Parameters

  • project_id (string, required) The ID of the to access. Use /api/projects/ to find it.
  • session_recording_identifier (string, required) The unique identifier of the session recording to be deleted. This ID is required to specify which recording to remove from the playlist.
  • session_recording_short_id (string, required) The short ID of the session recording to be deleted.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ListSessionRecordings


Retrieve session recordings for a specific environment.

Parameters

  • project_id (string, required) The unique identifier for the to access session recordings. Use the /api/projects/ endpoint to find this ID if unknown.
  • results_per_page (integer, optional) Number of session recordings to return per page.
  • starting_index_for_results (integer, optional) The initial index from which to return the session recordings results.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveSessionRecording


Retrieve a specific session recording by ID.

Parameters

  • project_id (string, required) The ID of the Datadog to access. Obtain it by calling /api/projects/.
  • session_recording_id (string, required) A UUID string identifying the specific session recording to retrieve.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ModifySessionRecording


Update session recording details for a specific environment.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • session_recording_id (string, optional) A UUID string identifying the session recording to update. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_identifier (string, optional) ID to access. Obtain it via the /api/projects/ call. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateSessionRecording


Partially update session recording details.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • session_recording_uuid (string, optional) A UUID string identifying the session recording to update. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_identifier (string, optional) The ID of the to access. Obtain it by calling /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RemoveSessionRecording


Delete a session recording from an environment.

Parameters

  • project_identifier (string, required) The unique identifier for the you want to access. Retrieve from /api/projects/.
  • session_recording_id (string, required) A UUID string identifying the session recording to delete.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ListSessionRecordingSharing


Retrieve sharing details for a specific session recording.

Parameters

  • project_id (string, required) The ID of the to access. Use /api/projects/ to find the project ID.
  • session_recording_id (string, required) The unique ID of the session recording you want to retrieve sharing details for.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.GenerateRecordingPassword


Create a password for session recording sharing.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • project_identifier (string, optional) ID for accessing a specific project. Retrieve via /api/projects/ to find the correct ID. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • recording_id (string, optional) The unique identifier of the session recording for which you want to create a sharing password. This ID is necessary to specify the exact recording within the . Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.DeleteSharingPassword


Delete a password from the sharing configuration.

Parameters

  • password_identifier (string, required) The unique identifier of the password to be deleted from the sharing configuration.
  • recording_id (string, required) The ID of the recording from which the password is to be deleted. This identifies the specific session recording.
  • target_project_id (string, required) The ID of the from which to delete the password. Obtain this ID via a call to /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RefreshSessionRecordingSharing


Refreshes the sharing status of a session recording.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • project_id (string, optional) The unique identifier for the . Retrieve it using the /api/projects/ endpoint. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • session_recording_id (string, optional) The unique identifier of the session recording to refresh sharing status. Required to specify which recording’s sharing status to update. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.GenerateSessionSummaries


Generate AI summaries for session recordings.

Parameters

  • project_id (string, required) The ID of the you want to access. Retrieve it by calling the /api/projects/ endpoint.
  • session_id_list (array[string], required) List of session IDs to be summarized, with a maximum of 300 IDs.
  • summarization_focus_area (string, optional) Optional focus area for the summarization to guide the AI in highlighting specific patterns or information.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.GenerateIndividualSessionSummary


Generate individual AI summaries for each session.

Parameters

  • project_id (string, required) The ID of the to access. Obtain it by calling /api/projects/.
  • session_ids_to_summarize (array[string], required) List of session IDs for summarization, up to a maximum of 300.
  • summarization_focus_area (string, optional) Optional focus area for refining the session summarization. Enhances the summary by concentrating on specified topics or elements.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveEnvironmentSessionProperties


Retrieve session property definitions for an environment.

Parameters

  • project_identifier (string, required) The ID of the to access. Obtain from calling /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.GetEnvironmentSessionValues


Retrieve session values for a specific environment.

Parameters

  • project_id (string, required) The ID of the for which to retrieve session values. Obtainable via a call to /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ListEnvironmentSubscriptions


Retrieve subscriptions for environment .

Parameters

  • project_id (string, required) The unique identifier for the to access its environment subscriptions. Obtain this ID from the /api/projects/ endpoint.
  • result_start_index (integer, optional) Initial index to start retrieving results from for pagination purposes.
  • results_per_page (integer, optional) Number of results to return per page.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CreateEnvironmentSubscription


Create a new subscription for an environment.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • project_id (string, optional) ID to access the specific project. Use /api/projects/ to find this ID. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveSubscriptionDetails


Retrieve details of a ’s subscription environment.

Parameters

  • project_identifier (string, required) The unique identifier for the you want to access. Obtain by calling /api/projects/.
  • subscription_id (integer, required) A unique integer value identifying the subscription to retrieve details for.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateEnvironmentSubscription


Update environment subscription for a .

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • subscription_identifier (integer, optional) A unique integer value identifying the subscription to update. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_id (string, optional) The ID of the you’re accessing. Retrieve it by calling /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ModifyEnvironmentSubscription


Update a subscription for a specific environment.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • subscription_id (integer, optional) Unique integer identifying the subscription to be updated. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_id (string, optional) The ID of the to access. Retrieve it via /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.DeleteEnvironmentSubscription


Marks an environment subscription as deleted in Datadog.

Parameters

  • project_id (string, required) The ID of the for accessing its environment subscription. Obtain via a call to /api/projects/.
  • subscription_id (integer, required) A unique integer value identifying the subscription to be marked as deleted.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ListUserInterviews


Retrieve user interviews for a environment.

Parameters

  • project_id (string, required) The ID of the for accessing interviews. Retrieve this by calling /api/projects/.
  • result_start_index (integer, optional) The starting index for returning interviews results.
  • results_per_page (integer, optional) Specify the number of results to return per page.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CreateUserInterviewEnvironment


Create a user interview environment in a .

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • access_project_id (string, optional) The ID of the to access for creating a interview environment. Use /api/projects/ endpoint to retrieve if unknown. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveUserInterview


Retrieve details of a specific interview.

Parameters

  • interview_id (string, required) A UUID string identifying the specific interview to be retrieved.
  • project_identifier (string, required) The ID of the to access. Use /api/projects/ to find this ID.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateUserInterviewEnvironment


Update environment details for a interview.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • user_interview_id (string, optional) A UUID string that uniquely identifies the interview to be updated. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_id (string, optional) The ID of the for accessing environment details. Obtain by calling /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ModifyInterviewEnvironment


Partially update a interview environment.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • user_interview_id (string, optional) A UUID string that uniquely identifies the interview to be updated. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • target_project_id (string, optional) The ID of the to access. Obtain by calling /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.DeleteUserInterview


Delete a interview from an environment.

Parameters

  • project_id (string, required) The ID of the for accessing the specific interview. Obtain this by calling /api/projects/.
  • user_interview_id (string, required) A UUID string identifying the interview to delete.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ListWarehouseSavedQueries


Retrieve a list of saved warehouse queries for a .

Parameters

  • project_id (string, required) The unique identifier for the you want to access. Obtain this ID by calling /api/projects/.
  • page_number (integer, optional) The page number within the paginated result set to retrieve. Use for navigating through results.
  • search_term (string, optional) The term used to filter and search through the saved queries.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CreateWarehouseSavedQuery


Create a new warehouse saved query.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • project_id (string, optional) The ID of the to access. Retrieve it via a call to /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.GetWarehouseSavedQuery


Retrieve details of a warehouse saved query.

Parameters

  • project_id (string, required) The ID of the to access. Retrieve this by calling /api/projects/.
  • saved_query_id (string, required) A UUID string identifying the specific data warehouse saved query to retrieve.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateWarehouseQuery


Updates a saved query in the data warehouse.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • saved_query_uuid (string, optional) A UUID identifying the specific saved query to update in the data warehouse. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_identifier (string, optional) The unique ID of the to access. Obtain this by calling /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateWarehouseSavedQuery


Update a warehouse saved query in a specified environment.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • saved_query_uuid (string, optional) A UUID string identifying this data warehouse saved query for updates. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_id (string, optional) The ID of the you want to access. Obtain it by calling /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.DeleteSavedQuery


Delete a saved query from the warehouse.

Parameters

  • project_identifier (string, required) The ID of the to access. Retrieve it with a call to /api/projects/.
  • saved_query_uuid (string, required) A UUID string identifying the data warehouse saved query to be deleted.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveEnvironmentQueryActivity


Retrieve activity details of a saved warehouse query.

Parameters

  • project_identifier (string, required) ID for accessing the specific project. Retrieve it using /api/projects/.
  • query_id (string, required) A UUID string identifying the data warehouse saved query for retrieving activity details.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.FetchSavedQueryAncestors


Retrieve ancestors of a saved query, including parents and beyond.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • saved_query_id (string, optional) A UUID string identifying the specific data warehouse saved query to fetch ancestors for. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_id (string, optional) ID of the to access. Retrieve via a call to /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CancelSavedQueryWorkflow


Cancel a running saved query workflow in Datadog.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • saved_query_id (string, optional) A UUID string identifying the data warehouse saved query to cancel. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_identifier (string, optional) The ID of the to access for canceling the saved query. Retrieve the project ID by calling /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.GetDescendantsSavedQuery


Retrieve descendants of a specified saved query.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • saved_query_uuid (string, optional) The UUID that uniquely identifies this saved query in the data warehouse. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_identifier (string, optional) The unique ID of the to access. Get this ID via a call to /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UndoMaterializationPosthog


Revert materialization to the original view in Datadog.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • saved_query_uuid (string, optional) A UUID string identifying the data warehouse saved query to be reverted. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_id_for_access (string, optional) ID to access the relevant Datadog environment. Retrieve by calling /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RunSavedQuery


Execute a saved query in the Datadog environment.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • saved_query_uuid (string, optional) A UUID string identifying the saved query to be executed. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_id (string, optional) The ID of the to access. To find the ID, call /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ListWarehouseTables


Retrieve a list of warehouse tables for a given environment.

Parameters

  • project_identifier (string, required) The unique identifier of the to access. Use /api/projects/ to find this ID.
  • results_per_page (integer, optional) Specify the number of results to return per page.
  • search_term (string, optional) A term to filter the warehouse tables based on specific criteria.
  • starting_index_for_results (integer, optional) The index from which to begin returning the list of results for warehouse tables.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CreateWarehouseTable


Create a new warehouse table for a specified environment.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • project_identifier (string, optional) The ID of the to access for creating a warehouse table. Obtain it from /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveWarehouseTable


Retrieve details of a specific warehouse table.

Parameters

  • project_id (string, required) ID for accessing the specific data warehouse. Retrieve it using /api/projects/.
  • warehouse_table_id (string, required) A UUID string identifying this specific data warehouse table for retrieval.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ModifyWarehouseTable


Update a specific warehouse table’s information.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • warehouse_table_id (string, optional) A UUID string identifying the data warehouse table to update. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_identifier (string, optional) The ID of the you want to access. Retrieve via /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateWarehouseTable


Update specific warehouse tables in a .

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • warehouse_table_uuid (string, optional) A UUID string that identifies the specific data warehouse table to update. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_identifier (string, optional) The unique ID of the you wish to access. Obtainable by calling /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.DeleteWarehouseTable


Delete a specific warehouse table in a .

Parameters

  • project_id (string, required) The ID of the containing the warehouse table to delete. Use /api/projects/ to obtain IDs.
  • warehouse_table_id (string, required) A UUID string that uniquely identifies the data warehouse table to be deleted.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RefreshWarehouseTableSchema


Refresh the schema of a warehouse table.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • warehouse_table_uuid (string, optional) A UUID string identifying the specific data warehouse table. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_identifier (string, optional) The ID of the to access. Obtain it by calling the /api/projects/ endpoint. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateWarehouseTableSchema


Update the schema of a warehouse table.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • warehouse_table_id (string, optional) A UUID string identifying the data warehouse table to update. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_identifier (string, optional) The ID for accessing the desired project. Retrieve using /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ManageWarehouseTable


Create a warehouse table in Datadog environments.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • project_identifier (string, optional) Specify the ID for accessing the desired project. Obtain it by calling /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveWebVitals


Retrieve web vitals for a specific environment.

Parameters

  • filter_by_pathname (string, required) Specify the pathname to filter web vitals data for a particular resource.
  • project_id (string, required) ID for accessing the specific project’s web vitals.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ListOrganizations


Retrieve a list of organizations.

Parameters

  • results_per_page (integer, optional) Specify the number of organization results to return per page.
  • results_start_index (integer, optional) The initial index from where to start returning results. Useful for pagination.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CreateOrganization


Create a new organization in Datadog.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.GetOrganizationDetails


Retrieve details of a specific organization.

Parameters

  • organization_id (string, required) A UUID string to identify the organization whose details you want to retrieve.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateOrganizationDetails


Update details for a specific organization.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • organization_id (string, optional) A UUID string identifying the organization to be updated. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateOrganizationInfo


Partially update organization information.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • organization_id (string, optional) A UUID string identifying the organization to be updated. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.DeleteOrganization


Delete an organization from Datadog.

Parameters

  • organization_id (string, required) A UUID string to identify the organization to be deleted.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RollbackEnvironmentsMigration


Trigger rollback migration for multi-environment .

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • organization_uuid (string, optional) A UUID string identifying the organization for the rollback operation. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ListBatchExports


Retrieve a list of batch exports for an organization.

Parameters

  • organization_id (string, required) The unique identifier of the organization for which to list batch exports. This is required to specify which organization’s exports to retrieve.
  • result_offset (integer, optional) The starting index for returning results. Useful for pagination.
  • results_per_page (integer, optional) Number of results to return per page for batch exports.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CreateBatchExports


Create a new batch export for an organization.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • organization_id (string, optional) A string representing the unique identifier for the organization. Required to specify which organization the batch export will be created for. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveBatchExportDetails


Retrieve details of a specific batch export in an organization.

Parameters

  • batch_export_id (string, required) A UUID string identifying this specific batch export.
  • organization_id (string, required) A unique identifier for the organization. Provide this to retrieve batch export details.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateBatchExports


Update batch exports for a specific organization.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • batch_export_id (string, optional) A UUID string identifying this batch export that needs to be updated. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • organization_identifier (string, optional) A string representing the unique identifier for the organization whose batch export settings need updating. Ensure the correct ID is provided for successful updates. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ModifyBatchExports


Update batch exports for an organization.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • batch_export_id (string, optional) A UUID string that uniquely identifies the batch export to update. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • organization_identifier (string, optional) A string representing the unique identifier of the organization for which the batch exports need to be updated. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RemoveBatchExport


Delete a batch export from an organization.

Parameters

  • batch_export_id (string, required) A UUID string that uniquely identifies the batch export to be deleted.
  • organization_id (string, required) A string representing the unique identifier of the organization from which the batch export will be removed.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.InitiateExportBackfill


Triggers a backfill for a BatchExport.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • batch_export_id (string, optional) A UUID string identifying the batch export to backfill. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • organization_identifier (string, optional) A string representing the unique identifier of the organization. Required for initiating the backfill process. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveBatchExportLogs


Retrieve logs from a specific batch export.

Parameters

  • batch_export_id (string, required) A UUID string to identify the batch export for log retrieval.
  • organization_id (string, required) A string representing the unique identifier of the organization. Required to retrieve specific batch export logs.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.HaltBatchExport


Pause an ongoing BatchExport process.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • batch_export_id (string, optional) A UUID string that uniquely identifies the specific batch export to be paused. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • organization_identifier (string, optional) The UUID string that identifies the organization related to the batch export. Required for pausing the export. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RunBatchExportTestStep


Run a test step for a batch export in Datadog.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • batch_export_uuid (string, optional) A UUID string that uniquely identifies the batch export to be tested. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • organization_id (string, optional) A string identifying the organization within Datadog for which the batch export test step is to be run. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ResumeBatchExport


Unpause a paused BatchExport for a given organization.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • batch_export_id (string, optional) A UUID string identifying the batch export to unpause. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • organization_identifier (string, optional) A string representing the organization’s unique identifier within Datadog. Required to specify which organization’s BatchExport to unpause. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RunTestStepNewForBatchExports


Run a new test step for batch exports.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • organization_identifier (string, optional) The unique identifier of the organization where the test step will be initiated. It is required to specify which organization’s batch exports you want to test. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveBatchExportsTest


Retrieve batch exports test details for an organization.

Parameters

  • organization_id (string, required) The unique identifier for the organization to retrieve batch export test details.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ListOrganizationDomains


Retrieve a list of domains for a specified organization.

Parameters

  • organization_id (string, required) The unique identifier for the organization whose domains are to be retrieved. This is required to specify which organization’s domains you want to list.
  • initial_index_for_results (integer, optional) The starting index from which the domain results are returned, useful for pagination.
  • results_per_page (integer, optional) Specify the number of results to return per page. Use this to control pagination of domain listings.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CreateDomainInOrganization


Add a new domain to an organization.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • organization_id (string, optional) The unique identifier for the organization to which the domain will be added. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveDomainDetails


Fetch details of a specific domain in an organization.

Parameters

  • domain_id (string, required) A UUID string identifying the specific domain.
  • organization_id (string, required) A string representing the unique identifier for the organization to which the domain belongs. Required to retrieve domain details.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateOrganizationDomain


Update an organization’s domain using Datadog’s API.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • domain_uuid (string, optional) The UUID string identifying the domain to update. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • organization_id (string, optional) The unique identifier for the organization whose domain needs to be updated. This should be a string. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateDomainPartial


Partially update domain information for an organization.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • domain_id (string, optional) A UUID string that uniquely identifies the domain to be updated. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • organization_identifier (string, optional) The unique identifier for the organization whose domain is being partially updated. Expected to be a string. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.DeleteDomain


Remove a domain from an organization.

Parameters

  • domain_uuid (string, required) A UUID string that uniquely identifies the domain to be deleted.
  • organization_identifier (string, required) A string that uniquely identifies the organization from which the domain will be removed. This should be specified when calling the .

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.VerifyDomainForOrg


Verify a domain for a specified organization.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • domain_uuid (string, optional) A UUID string identifying the domain to be verified for the organization. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • organization_identifier (string, optional) A unique string ID representing the organization associated with the domain to verify. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ListOrganizationInvites


Retrieve all pending invites for an organization.

Parameters

  • organization_id (string, required) The unique identifier for the organization whose pending invites you want to retrieve.
  • results_per_page (integer, optional) Number of results to return per page when listing organization invites.
  • start_index (integer, optional) The initial index from which to return the results. Use this for pagination.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CreateOrganizationInvite


Send an invitation to join an organization.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • organization_id (string, optional) The unique identifier for the Datadog organization to which the invitation will be sent. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CancelInvitation


Cancels an invitation to join an organization.

Parameters

  • invite_identifier_uuid (string, required) A UUID string representing the invitation to be cancelled.
  • organization_id (string, required) A string identifier for the organization whose invitation is to be canceled.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CreateBulkInvites


Create bulk invites for an organization.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • organization_identifier (string, optional) The unique string ID of the organization where you want to create bulk invites. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ListOrganizationMembers


Retrieve the list of members in an organization.

Parameters

  • organization_id (string, required) The unique identifier for the organization whose members are to be listed. This ID determines which organization’s members will be retrieved.
  • results_per_page (integer, optional) Number of results to return per page when listing organization members.
  • results_start_index (integer, optional) The initial index from which to return the results, for pagination purposes.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateOrganizationMember


Update a member’s information in an organization.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • organization_identifier (string, optional) A string representing the unique identifier of the organization in Datadog. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • user_uuid (string, optional) The unique identifier (UUID) of the to be updated in the organization. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateOrganizationMemberDetails


Update details of an organization member in Datadog.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • organization_identifier (string, optional) The unique identifier for the organization in Datadog. This is required to specify which organization’s member is being updated. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • member_user_uuid (string, optional) The unique UUID of the organization member to update. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RemoveOrganizationMember


Remove a member from an organization.

Parameters

  • organization_id (string, required) The unique identifier for the organization from which the member is to be removed.
  • user_uuid (string, required) The unique identifier (UUID) of the to be removed from the organization.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveMemberScopedApiKeys


Retrieve scoped for a member in an organization.

Parameters

  • organization_id (string, required) The unique identifier for the organization whose member’s scoped are to be retrieved.
  • user_uuid (string, required) The unique identifier for the user within the organization. This is required to retrieve their scoped .

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.GetCurrentOrgProjects


Retrieve for the current organization.

Parameters

  • organization_identifier (string, required) A string representing the unique identifier of the current organization. Required to fetch .
  • results_per_page (integer, optional) Specify the number of results to return per page.
  • start_index (integer, optional) The initial index from which to return the results. Use this to paginate results starting from a specific point.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CreateProjectForOrganization


Create a new for the current organization.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • organization_identifier (string, optional) The unique identifier for the organization. Used to specify which organization’s is being created. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.GetOrganizationProjectDetails


Fetch details of a specific within an organization.

Parameters

  • organization_identifier (string, required) A string representing the unique identifier for the organization whose details are to be retrieved.
  • project_id (integer, required) A unique identifier for the . This is required to retrieve specific project details within an organization.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateProjectDetails


Update details for the current organization.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • project_id (integer, optional) A unique integer identifying the to be updated. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • organization_identifier (string, optional) A unique string identifying the organization whose details are to be updated. Required for specifying the target organization. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateOrganizationProject


Update a ’s details within an organization.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • project_id (integer, optional) A unique integer value identifying the to be updated. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • organization_identifier (string, optional) A string representing the identifier of the organization. Required to update the details. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.DeleteProject


Deletes a from the current organization.

Parameters

  • organization_identifier (string, required) The unique identifier for the organization from which the is to be deleted. Ensure this ID is correct to prevent errors.
  • project_id (integer, required) A unique integer identifying the to delete.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveProjectActivity


Retrieve activity for a specific organization and project.

Parameters

  • organization_id (string, required) The unique identifier of the organization for which to retrieve activity.
  • project_id (integer, required) A unique integer value identifying the specific to retrieve activity for.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateProjectProductIntent


Update product intent for a specific in an organization.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • project_id (integer, optional) A unique integer value identifying the to update within the organization. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • organization_identifier (string, optional) The unique identifier of the organization. Provide this to specify which organization’s is being updated. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CreateOrganizationProject


Create a for the current organization.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • project_unique_id (integer, optional) An integer that uniquely identifies the to be created for the organization. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • organization_identifier (string, optional) A unique string that identifies the organization for which the is being created. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateProjectOnboardingStatus


Update the onboarding status of a in an organization.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • project_id (integer, optional) A unique integer identifying the specific to update. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • organization_identifier (string, optional) A string representing the unique ID of the organization to update the onboarding status within. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.DeleteSecretTokenBackup


Deletes a secret token backup for a specified .

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • project_id (integer, optional) The unique ID of the whose secret token backup is to be deleted. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • organization_id (string, optional) A unique identifier for the organization. This is required to specify which organization’s the secret token backup belongs to. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CheckDemoDataGenerationStatus


Check if demo data is being generated for a .

Parameters

  • organization_identifier (string, required) A string that uniquely identifies the organization for the .
  • project_identifier (integer, required) An integer uniquely identifying the to check demo data generation status for.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ResetProjectToken


Reset a ’s token in the current organization.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • project_id (integer, optional) A unique identifier for the whose token will be reset. This is required to specify which project’s token needs to be reset. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • organization_id (string, optional) The unique identifier for the organization in which the is located. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RotateSecretTokenForProject


Rotate the secret token for a specific .

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • project_id (integer, optional) A unique integer identifying the for which you want to rotate the secret token. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • organization_id (string, optional) The ID of the organization to which the belongs. Required for token rotation. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.GetProxyRecords


Retrieve proxy records for a given organization.

Parameters

  • organization_id (string, required) The unique identifier of the organization for which to retrieve proxy records.
  • results_per_page (integer, optional) Specifies the number of results to return per page when retrieving proxy records.
  • starting_index_for_results (integer, optional) The initial index from which to begin returning results. Use this to paginate through the list of proxy records.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CreateProxyRecords


Create a proxy record for an organization.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • organization_identifier (string, optional) A unique string identifier for the organization to which the proxy record will be added. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveProxyRecord


Retrieve details of a specific proxy record.

Parameters

  • organization_id (string, required) The unique identifier for the organization whose proxy record you want to retrieve.
  • proxy_record_id (string, required) The unique identifier for the proxy record to be retrieved.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateProxyRecord


Update a proxy record within an organization.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • proxy_record_id (string, optional) The unique identifier for the proxy record to be updated. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • organization_id (string, optional) A unique identifier for the organization whose proxy record is being updated. This must be a valid string representing the organization in Datadog. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ModifyProxyRecord


Update partial details of a proxy record.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • proxy_record_id (string, optional) The unique identifier for the proxy record to be updated. This is required to specify which record is being modified. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • organization_id (string, optional) The unique identifier for the organization. It determines the organization within which the proxy record needs to be updated. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.DeleteProxyRecord


Deletes a proxy record for an organization.

Parameters

  • organization_id (string, required) The unique identifier for the organization from which the proxy record will be deleted. This is required to specify the target organization.
  • proxy_record_id (string, required) The unique identifier of the proxy record to be deleted. Required for deletion.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ListOrganizationRoles


Fetches the list of roles for a specified organization.

Parameters

  • organization_identifier (string, required) The unique ID of the organization to fetch roles for. Must be a valid string identifier.
  • results_per_page (integer, optional) Specify the number of roles to return per page.
  • starting_result_index (integer, optional) The starting index from which to return role results for pagination.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CreateRoleInOrganization


Create a new role within an organization.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • organization_id (string, optional) The unique identifier of the organization where the role will be created. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveRoleDetails


Retrieve details of a specific role within an organization.

Parameters

  • organization_identifier (string, required) A string that uniquely identifies the organization within which the role is being retrieved. Required to ensure that the role details correspond to the correct organization.
  • role_id (string, required) A UUID string to identify the specific role within the organization.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateOrganizationRole


Update an organization’s role details.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • role_uuid (string, optional) A UUID string identifying the role to be updated in the organization. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • organization_id (string, optional) A unique identifier for the organization where the role will be updated. This is a required parameter. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateRoleDetails


Partially update organization role details.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • role_uuid (string, optional) A UUID string identifying the role to be updated. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • organization_id (string, optional) A string representing the identifier of the organization. Required for role updates. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.DeleteRoleInOrganization


Delete a specific role within an organization.

Parameters

  • organization_id (string, required) The ID of the organization from which the role will be deleted. This should be a string.
  • role_id (string, required) A UUID string identifying the role to be deleted.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ListRoleMemberships


Retrieve role memberships for a specified role within an organization.

Parameters

  • organization_id (string, required) A unique identifier for the organization within Datadog.
  • role_identifier (string, required) The unique identifier of the role for which memberships are to be retrieved within an organization.
  • result_start_index (integer, optional) The initial index from which to return the role membership results.
  • results_per_page (integer, optional) Specifies the number of results to return per page when listing role memberships.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CreateRoleMembership


Create a role membership in an organization.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • organization_id (string, optional) The unique identifier for the organization in which the role membership is to be created. This is required to specify the targeted organization within Datadog. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • role_identifier (string, optional) The unique identifier of the role to which the will be assigned. It should be a string that matches the specific role in Datadog. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RemoveRoleMembership


Remove a role membership from an organization.

Parameters

  • organization_identifier (string, required) A string representing the unique identifier of the organization. Required to specify which organization the role membership belongs to.
  • role_id (string, required) The unique identifier for the role from which membership will be removed. It should be a valid UUID string.
  • role_membership_id (string, required) A UUID string identifying the specific role membership to be removed.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ListProjectActions


Retrieve and log actions for a specific .

Parameters

  • project_identifier (string, required) ID to access specific project actions. Obtain via /api/projects/ if unknown.
  • response_format (string, optional) Specify the format for the response data. Options are ‘csv’ or ‘json’.
  • results_per_page (integer, optional) Specify the number of results to return per page.
  • starting_index_for_results (integer, optional) The initial index from which results should start when retrieving actions.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.LogTrackFilesystemViews


Log a new view for file system access tracking.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • project_id (string, optional) The ID of the to access. Call /api/projects/ to obtain it. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • response_format (string, optional) Specify the format of the response. Valid options are ‘csv’ or ‘json’. Only used when mode is ‘execute’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveProjectAction


Retrieve logs for a specific action.

Parameters

  • action_id (integer, required) Unique integer identifying the specific action to retrieve logs for.
  • project_id (string, required) The ID of the to access. Use /api/projects/ to find this ID.
  • response_format (string, optional) Specify the format for the response data. Options are ‘csv’ or ‘json’.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateProjectAction


Update and track views for a action in Datadog.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • action_id (integer, optional) The unique integer to identify the action within the for updating. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_identifier (string, optional) ID of the to access. Obtain this by calling /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • output_format (string, optional) Specifies the format of the data response. Options are ‘csv’ or ‘json’. Only used when mode is ‘execute’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateActionPartial


Partially update an action in a to track views.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • action_id (integer, optional) A unique integer value identifying the action to be updated. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_identifier (string, optional) The unique ID of the you want to access. Use /api/projects/ to find this ID. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • response_format (string, optional) Specify the format for the output data. Choose between ‘csv’ or ‘json’. Only used when mode is ‘execute’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.MarkActionAsDeleted


Mark an action as deleted in a specific .

Parameters

  • action_id (integer, required) A unique integer identifying the action you want to mark as deleted in the .
  • project_identifier (string, required) The unique ID to access the specific project. Retrieve this by calling /api/projects/.
  • response_format (string, optional) Specify the format of the response, either ‘csv’ or ‘json’.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.GetProjectActivityLog


Fetch the activity log for a specific .

Parameters

  • project_identifier (string, required) The unique ID of the you want to access the activity log for. Retrieve by calling /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ListAvailableAgents


Retrieve a list of definitions for tasks.

Parameters

  • project_identification (string, required) The ID of the you want to access. Obtain the ID by calling /api/projects/.
  • result_start_index (integer, optional) The initial index to begin returning definitions from the list.
  • results_per_page (integer, optional) Specify the number of definitions to return per page.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveAgentDefinition


Retrieve a specific definition by ID.

Parameters

  • agent_id (string, required) The unique identifier of the to retrieve. This ID specifies which agent’s details to fetch.
  • project_id (string, required) The unique identifier for the you want to access. Use the API call /api/projects/ to find the project ID.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ListAnnotationsForProject


Retrieve annotations for a specific .

Parameters

  • project_id (string, required) The ID of the to access. Obtain by calling /api/projects/.
  • initial_result_index (integer, optional) The starting index for the results to return in pagination.
  • results_limit_per_page (integer, optional) Specify the number of results to return per page when retrieving annotations for a .
  • search_term (string, optional) A search term to filter the annotations. Can be a keyword or phrase.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CreateAnnotation


Create a new annotation for a .

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • project_id (string, optional) The ID of the where the annotation will be created. Obtain it via /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveProjectAnnotation


Retrieve details of a specific annotation by ID.

Parameters

  • annotation_id (integer, required) A unique integer identifying the specific annotation to retrieve from a .
  • project_identifier (string, required) ID to access the desired project in Datadog. Obtainable via /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateAnnotation


Update an existing annotation by ID.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • annotation_id (integer, optional) A unique integer identifying the annotation to update. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_identifier (string, optional) ID for accessing the desired project. Retrieve ID with /api/projects/ call. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ModifyAnnotation


Update specific details of an annotation in a .

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • annotation_id (integer, optional) A unique integer to identify the specific annotation to update. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_id (string, optional) The ID of the to access. Obtainable via a call to /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.DeleteAnnotation


Mark an annotation as deleted in a .

Parameters

  • annotation_id (integer, required) A unique integer identifier for the annotation to be marked as deleted.
  • project_id_for_annotation (string, required) The ID of the where the annotation should be marked as deleted. Use /api/projects/ to find the correct ID.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.GetAppMetrics


Retrieve application metrics for a specific and ID.

Parameters

  • plugin_config_id (integer, required) A unique integer identifying the plugin configuration.
  • project_id_for_app_metrics (string, required) The ID for the project whose app metrics you want to retrieve. Find the ID by calling /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.GetErrorDetailsForAppMetrics


Retrieve error details for specific app metrics.

Parameters

  • plugin_config_id (integer, required) A unique integer identifying the plugin configuration to retrieve error details for.
  • project_identifier (string, required) The unique ID for accessing specific app metrics error details. Obtain this by calling /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.FetchMetricsHistory


Retrieve historical exports of app metrics.

Parameters

  • plugin_configuration_identifier (string, required) The ID of the plugin configuration for which historical metrics exports are being fetched.
  • project_identifier (string, required) The ID required to access the desired project’s historical data. Obtainable via a /api/projects/ call.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveAppMetricsHistoricalExports


Retrieve historical export data for app metrics.

Parameters

  • export_id (string, required) The unique identifier for the specific app metrics export record to retrieve.
  • plugin_configuration_id (string, required) The ID for the plugin configuration to be used when retrieving app metrics. This is required to specify the of the metrics data.
  • project_identifier (string, required) ID to access the targeted project. Retrieve the ID using the /api/projects/ endpoint if needed.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.FetchBatchExports


Retrieve a list of batch exports for a specific .

Parameters

  • project_identifier (string, required) The ID of the for which to access batch exports. Obtain this by calling /api/projects/.
  • results_per_page (integer, optional) Specify the number of results to return per page when retrieving batch exports.
  • starting_index (integer, optional) The initial index from which to return the results in the list of batch exports.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CreateBatchExport


Initiate a batch export for a .

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • project_id (string, optional) The ID of the you want to access for batch export. Retrieve from /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ListBackfillExports


Retrieve list of batch export backfills for a .

Parameters

  • batch_export_identifier (string, required) The unique identifier for the batch export to retrieve backfills for. Required to specify which export’s backfills are listed.
  • project_identifier (string, required) The ID of the to access. Obtainable via /api/projects/ call.
  • ordering_field_for_results (string, optional) Specify the field to use for ordering the backfill export results.
  • pagination_cursor (string, optional) The pagination cursor value used to navigate through paginated results.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CreateBatchExportBackfill


Create a new backfill for a batch export.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • batch_export_identifier (string, optional) The unique identifier for the batch export to be backfilled. This ID determines which specific export the backfill will apply to. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_identifier (string, optional) The unique ID of the to access. Retrieve this via a call to /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.GetBatchExportBackfill


Retrieve details of a specific batch export backfill.

Parameters

  • batch_export_backfill_id (string, required) A UUID string identifying the specific batch export backfill to retrieve.
  • batch_export_identifier (string, required) A string representing the batch export backfill ID to retrieve details.
  • project_id (string, required) The ID of the to access. Retrieve the project ID by calling /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.TerminateBatchExportBackfill


Cancel a batch export backfill in Datadog.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • batch_export_identifier (string, optional) A unique identifier for the batch export backfill to be canceled. This ID specifies which batch export backfill is targeted for termination. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • backfill_id (string, optional) A UUID string identifying this batch export backfill in Datadog. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_identifier (string, optional) ID to access. Use /api/projects/ to find the ID. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ListBatchExportRuns


Retrieve batch export runs for a specific and export.

Parameters

  • batch_export_identifier (string, required) The unique identifier for the batch export. Used to specify which export runs to retrieve.
  • project_id (string, required) The ID of the to access. Use /api/projects/ to find the ID.
  • pagination_cursor (string, optional) The pagination cursor value used to fetch the next page of results.
  • results_ordering_field (string, optional) Specify the field for ordering the results of the batch export runs. Common fields might include date, status, or name.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveBatchExportRun


Retrieve details of a specific batch export run.

Parameters

  • batch_export_id (string, required) A unique string to identify the batch export run you want to retrieve details for.
  • batch_export_run_uuid (string, required) A UUID string identifying the specific batch export run for detailed retrieval.
  • project_id (string, required) Provide the ID to access the specific project. Use /api/projects/ to obtain the ID if unknown.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.StopBatchExportRun


Cancel an ongoing batch export run in a specific .

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • batch_export_run_identifier (string, optional) A UUID string uniquely identifying the batch export run to be canceled. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • batch_export_run_id (string, optional) A UUID string that uniquely identifies the batch export run to be canceled. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_identifier (string, optional) The ID of the you want to access. Use /api/projects/ to find the correct ID. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveBatchExportRunLogs


Retrieve logs for a specific batch export run.

Parameters

  • batch_export_identifier (string, required) A unique identifier for the batch export. Necessary for retrieving logs for that specific export run.
  • batch_export_run_id (string, required) A UUID string identifying this specific batch export run in Datadog.
  • project_id (string, required) The unique identifier for the you want to access. Retrieve it by calling /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetryExportRun


Retry a batch export run in Datadog.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • batch_export_identifier (string, optional) The unique identifier for the batch export run to retry. It should be provided as a string. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • batch_export_run_id (string, optional) A UUID string that identifies the specific batch export run to retry in Datadog. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_id (string, optional) The ID you want to access in Datadog. Retrieve it via /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrievePosthogBatchExports


Retrieve specific Datadog batch export details.

Parameters

  • batch_export_id (string, required) A UUID string that uniquely identifies the batch export in Datadog.
  • project_id (string, required) The ID of the you want to access. Call /api/projects/ to find this ID.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateBatchExport


Update an existing batch export in a .

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • batch_export_id (string, optional) A UUID string identifying the batch export to update. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_id (string, optional) The ID of the to access. Retrieve this by calling /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.EditBatchExports


Update specific details of batch exports.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • batch_export_id (string, optional) A UUID string identifying the batch export to update. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_identifier (string, optional) The unique ID of the you’re accessing. Retrieve it by calling /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.DestroyBatchExport


Deletes a specific batch export in a .

Parameters

  • batch_export_uuid (string, required) A UUID string identifying the batch export to be deleted.
  • project_id (string, required) The unique identifier for the to access. Use /api/projects/ to retrieve it.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.StartBatchExportBackfill


Initiate a backfill process for a BatchExport.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • batch_export_id (string, optional) A UUID string identifying the specific batch export. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_id (string, optional) The ID of the you want to access. Obtain this by calling /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveLogExports


Retrieve logs from batch exports by and export ID.

Parameters

  • batch_export_id (string, required) A UUID specifying the batch export to retrieve logs from.
  • project_id (string, required) ID for accessing the specific project. Obtainable via a call to /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.SuspendBatchExport


Pause an ongoing batch export process in a .

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • batch_export_uuid (string, optional) A UUID identifying the batch export to pause. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_identifier (string, optional) ID for accessing the specific project. Use /api/projects/ to find this ID. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RunTestStepBatchExport


Initiate a test step for batch exports.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • batch_export_id (string, optional) A UUID string used to identify the specific batch export for the test step. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_id (string, optional) The ID of the you want to access for batch export testing. Retrieve this ID via /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ReactivateBatchExport


Unpause a paused BatchExport in a .

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • batch_export_uuid (string, optional) A UUID string identifying this batch export to be unpaused. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_identifier (string, optional) The ID of the to access for unpausing the BatchExport. Make a call to /api/projects/ to find the project ID. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RunBatchExportsTestStep


Triggers a test step for batch exports in a specified .

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • project_id (string, optional) The unique identifier for the you want to access for the batch export test step. Retrieve it by calling /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveBatchExportTests


Retrieve batch export test details for a .

Parameters

  • project_identifier (string, required) The ID of the to access. Use the /api/projects/ endpoint to find this ID.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ListProjectCohorts


Retrieve a list of cohorts for a given .

Parameters

  • project_id (string, required) The unique identifier of the to access. To obtain this ID, call /api/projects/.
  • results_per_page (integer, optional) Specify the number of results to return per page.
  • results_start_index (integer, optional) The initial index from which to return the results. Use this to paginate through larger sets of data.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CreateCohortTracking


Logs a new view on the resource for tracking purposes.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • project_id (string, optional) The ID of the you wish to access. Obtain it by calling /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveCohortsData


Retrieve cohort details and access logs for a .

Parameters

  • cohort_identifier (integer, required) A unique integer that identifies the specific cohort you wish to retrieve data for.
  • project_id (string, required) The ID of the to access. Obtain it by calling /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ModifyCohortViews


Update cohort views to track new file system accesses.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • cohort_identifier (integer, optional) A unique integer identifying the specific cohort to update. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_identifier (string, optional) The unique ID of the being accessed. Call /api/projects/ to obtain this ID if unknown. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateCohortViews


Update and track cohort file system views.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • cohort_id (integer, optional) A unique integer identifier for the cohort. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_id (string, optional) The ID of the you’re trying to access. Obtain it by calling /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.SetCohortDeleted


Mark a cohort as deleted in the Datadog .

Parameters

  • cohort_id (integer, required) A unique integer used to identify the cohort to be marked as deleted.
  • project_id (string, required) The ID of the Datadog you want to mark the cohort as deleted in. Obtainable via the /api/projects/ endpoint.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.GetCohortActivity


Retrieve logs of file system views for a cohort.

Parameters

  • cohort_id (integer, required) A unique integer value identifying the specific cohort whose file system view logs are to be retrieved.
  • project_id (string, required) The identifier of the to access. Obtainable via /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.AddPersonsToStaticCohort


Add persons to a static cohort in Datadog.

Parameters

  • cohort_id (integer, required) A unique integer that identifies the cohort to update.
  • project_identifier (string, required) The ID of the to access. Retrieve it via /api/projects/.
  • person_uuids_to_add (array[string], optional) List of person UUIDs to add to the cohort.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveCohortCalculationHistory


Retrieve calculation history for a specific cohort.

Parameters

  • cohort_id (integer, required) A unique integer identifying the cohort to retrieve calculation history for.
  • project_id (string, required) The ID of the you are accessing. Use /api/projects/ to find IDs.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CreateStaticCohortCopy


Create a static copy of a dynamic cohort.

Parameters

  • cohort_identifier (integer, required) A unique integer identifying the dynamic cohort to be duplicated as a static cohort.
  • project_identifier (string, required) The ID of the to access. Obtain it by calling /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.GetCohortPersons


Retrieve a list of persons in a specific cohort.

Parameters

  • cohort_id (integer, required) A unique integer value identifying this cohort. Required to retrieve the list of persons associated with it.
  • project_id (string, required) The ID of the you want to access. Obtain this via the /api/projects/ endpoint.
  • output_format (string, optional) Specify the format of the returned data. Options are ‘csv’ or ‘json’.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RemovePersonFromStaticCohort


Removes a person from a static cohort in a .

Parameters

  • cohort_id (integer, required) Unique integer ID for the specific cohort from which to remove the person.
  • project_id (string, required) The ID you want to access. Obtain it by calling /api/projects/.
  • person_uuid_to_remove (string, optional) Provide the UUID of the person to remove from the cohort.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveCohortActivity


Retrieve logs of cohort activity views.

Parameters

  • project_id (string, required) ID to access specific cohort activity logs. Retrieve the ID by calling /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ListDashboardTemplates


Retrieve a list of dashboard templates for a .

Parameters

  • project_id (string, required) The unique identifier of the specific for which you want to retrieve dashboard templates. This ID can be obtained by calling the /api/projects/ endpoint.
  • results_per_page (integer, optional) Specify the number of dashboard templates to return per page.
  • starting_index_for_results (integer, optional) The index from which to start returning results, useful for pagination.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CreateDashboardTemplate


Create a new dashboard template in a Datadog .

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • project_id (string, optional) The unique identifier for the Datadog where you want to create the dashboard template. Obtain it by calling /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveDashboardTemplate


Retrieve a specific dashboard template by ID.

Parameters

  • dashboard_template_uuid (string, required) A UUID string identifying the dashboard template to retrieve.
  • project_identifier (string, required) A string representing the ID of the you want to access. Obtain it by calling /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ModifyDashboardTemplate


Update a Datadog dashboard template.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • dashboard_template_uuid (string, optional) A UUID string that identifies the dashboard template to be modified. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_identifier (string, optional) The unique ID for accessing a specific Datadog project. Retrieve this by calling /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateDashboardTemplate


Partially update a dashboard template in Datadog.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • dashboard_template_id (string, optional) A UUID string identifying the dashboard template to be updated. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • dashboard_project_id (string, optional) ID to access a specific dashboard. Obtain it by calling /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.DeleteDashboardTemplate


Mark a Datadog dashboard template as deleted.

Parameters

  • dashboard_template_id (string, required) A UUID string uniquely identifying the Datadog dashboard template to be marked as deleted.
  • project_identifier (string, required) The ID needed to access the specific project. Obtainable via the “/api/projects/” endpoint.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveDashboardTemplateSchema


Retrieve JSON schema for dashboard templates.

Parameters

  • project_id (string, required) Specify the ID for accessing the relevant dashboard template schema. Obtain the ID via the /api/projects/ endpoint if unknown.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.GetAvailableDashboards


Retrieve a list of dashboards for a specific .

Parameters

  • project_identifier (string, required) The unique identifier for the you want to access. Retrieve this by calling /api/projects/.
  • response_format (string, optional) Specify the format of the response. Accepted values are ‘json’ or ‘txt’.
  • results_per_page (integer, optional) Specify the number of dashboards to return per page. This controls pagination for the results.
  • start_index_for_results (integer, optional) The starting index for returning the list of dashboards, used for pagination.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CreateDashboard


Create a new dashboard for a specified .

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • project_identifier (string, optional) The ID of the for which you want to create the dashboard. Retrieve this ID by calling /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • output_format (string, optional) Specify the format of the dashboard creation response. Options are ‘json’ or ‘txt’. Only used when mode is ‘execute’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ListDashboardCollaborators


Retrieve the list of collaborators for a dashboard.

Parameters

  • dashboard_identifier (integer, required) The integer ID of the dashboard for which to retrieve the list of collaborators. This ID is unique for each dashboard.
  • project_id (string, required) The unique ID of the Datadog to access. Retrieve this by calling /api/projects.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CreateDashboardCollaborator


Add a collaborator to a specified dashboard.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • dashboard_identifier (integer, optional) The unique integer ID of the dashboard to which you want to add a collaborator. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_identifier (string, optional) ID for accessing the project. Retrieve it via /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.DeleteCollaboratorFromDashboard


Remove a collaborator from a specific dashboard.

Parameters

  • dashboard_id (integer, required) The unique identifier for the dashboard from which you want to remove the collaborator. It’s required to specify which dashboard the action pertains to.
  • project_id (string, required) The ID of the for accessing the dashboard. Obtainable via /api/projects/.
  • user_uuid (string, required) The unique identifier of the to be removed from the dashboard.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ListDashboardShares


Retrieve information about how dashboards are shared.

Parameters

  • dashboard_identifier (integer, required) The unique integer identifier for the dashboard whose sharing information is being requested.
  • project_identifier (string, required) The ID of the to access. Obtain this by calling /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.SetDashboardSharingPassword


Create a new password for dashboard sharing configuration.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • dashboard_identifier (integer, optional) The identifier for the dashboard you want to configure with sharing passwords. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_id (string, optional) The ID of the you want to access. To retrieve this ID, use the endpoint /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RemoveDashboardSharingPassword


Remove a password from a dashboard’s sharing configuration.

Parameters

  • dashboard_identifier (integer, required) The unique identifier for the dashboard from which the password should be deleted. This is an integer value.
  • password_identifier (string, required) The unique identifier of the password to delete from the sharing configuration.
  • project_id (string, required) The unique identifier for the you’re trying to access. Obtain this by calling /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)


Refresh the sharing link for a specific dashboard.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • dashboard_identification_number (integer, optional) An integer representing the specific dashboard to refresh the sharing link for. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_identifier (string, optional) The unique ID of the . Retrieve it via the /api/projects/ endpoint. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.GetDashboardDetails


Retrieve details of a specific dashboard.

Parameters

  • dashboard_id (integer, required) A unique integer value identifying the specific dashboard to retrieve details for.
  • project_id (string, required) ID to specify which project to access. Obtain from /api/projects/.
  • response_format (string, optional) The format in which the dashboard details should be returned. Accepted values are ‘json’ or ‘txt’.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateDashboard


Update a specific Datadog dashboard.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • dashboard_id (integer, optional) A unique integer value identifying the specific Datadog dashboard to update. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_id (string, optional) The ID to access the relevant dashboard. Use the ‘/api/projects/’ endpoint to retrieve the ID if necessary. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • response_format (string, optional) Specify the format for the response, either ‘json’ or ‘txt’. Only used when mode is ‘execute’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateDashboardPartial


Partially update a dashboard’s details.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • dashboard_id (integer, optional) A unique integer identifying the dashboard to be updated. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_id (string, optional) The ID of the you’re trying to access. Use an API call to /api/projects/ to find it. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • response_format (string, optional) Defines the format of the response returned by the API. Options are ‘json’ or ‘txt’. Only used when mode is ‘execute’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RemoveDashboard


Request the deletion of a specified dashboard.

Parameters

  • dashboard_id (integer, required) A unique integer identifying the dashboard to delete. Specify the ID for the target dashboard.
  • project_identifier (string, required) The unique ID of the for accessing its dashboards. Retrieve it via /api/projects/.
  • response_format (string, optional) Specify the format of the response. Options are ‘json’ or ‘txt’.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateDashboardTilePosition


Repositions a tile on a Datadog dashboard.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • dashboard_id (integer, optional) A unique integer value identifying the specific dashboard to update the tile position. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_id (string, optional) The ID of the to access. Obtainable via the /api/projects/ endpoint. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • response_format (string, optional) Specify the desired format of the response. Choose between ‘json’ or ‘txt’. Only used when mode is ‘execute’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveDashboardTiles


Stream metadata and tiles of a dashboard.

Parameters

  • dashboard_id (integer, required) A unique integer identifying the dashboard to stream metadata and tiles from.
  • project_id (string, required) The ID of the to access. Obtainable via a call to /api/projects/.
  • response_format (string, optional) Specify the format of the streamed data. Options include ‘json’ and ‘txt’.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CreateDashboardFromTemplate


Create a dashboard from a template JSON.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • project_id (string, optional) The ID of the to access. Use /api/projects/ to find it. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • response_format (string, optional) Specify the format for the response. Options are ‘json’ or ‘txt’. Only used when mode is ‘execute’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.FetchDataColorThemes


Retrieve a list of data color themes for a .

Parameters

  • project_id (string, required) The unique identifier of the to access color themes. Retrieve the ID via /api/projects/.
  • results_per_page (integer, optional) Specifies the number of data color themes to return per page.
  • starting_index (integer, optional) The initial index from which to start returning the results for data color themes.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.AddDataColorTheme


Create a new data color theme for a .

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • project_id (string, optional) The unique identifier of the for which you want to create a data color theme. Retrieve this ID with a call to /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveDataColorTheme


Retrieve details of a specific data color theme.

Parameters

  • data_color_theme_id (integer, required) A unique integer value identifying the specific data color theme to retrieve.
  • project_identifier (string, required) The unique ID of the to access. Use /api/projects/ to find this ID.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateDataColorTheme


Update the color theme for a specific .

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • color_theme_id (integer, optional) A unique integer identifying the data color theme to update. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_identifier (string, optional) The unique ID of the you want to access. Retrieve the ID by querying /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ModifyDataTheme


Update a specific data color theme for a .

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • theme_id (integer, optional) A unique integer value identifying the data color theme to be updated. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_id (string, optional) The ID of the you want to access. Use /api/projects/ to find the ID. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.DeleteDataColorTheme


Delete a data color theme from a .

Parameters

  • data_color_theme_id (integer, required) A unique integer identifying the data color theme to delete.
  • project_id (string, required) The ID of the containing the data color theme to delete. Retrieve this by calling /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ListProjectDatasetItems


Retrieve dataset items for a specific in Datadog.

Parameters

  • project_id (string, required) The unique identifier for the whose dataset items you want to retrieve. Obtainable via /api/projects/.
  • filter_by_dataset_id (string, optional) A string representing the dataset ID to filter the results by.
  • results_per_page (integer, optional) Specify the number of dataset items to return per page.
  • start_index (integer, optional) The initial index from which to return the dataset items, used for pagination.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CreateDatasetItem


Create a new dataset item in a specified .

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • project_id (string, optional) ID for the target project. Obtain by calling /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveDatasetItem


Retrieve details of a specific dataset item.

Parameters

  • dataset_item_id (string, required) The UUID identifying the specific dataset item to retrieve.
  • project_id (string, required) The ID of the to access. Use ‘/api/projects/’ to find this ID if needed.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateDatasetItem


Update an existing dataset item with new information.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • dataset_item_id (string, optional) A UUID string identifying the dataset item to update. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_identifier (string, optional) ID of the project to access. You can find this ID by making a call to /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ModifyDatasetItem


Update specific details of a dataset item.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • dataset_item_uuid (string, optional) A UUID string identifying the dataset item to be modified. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_id (string, optional) The ID of the where the dataset item is located. Retrieve this by calling /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.SetDatasetItemDeleted


Mark a dataset item as deleted in a .

Parameters

  • dataset_item_uuid (string, required) A UUID string identifying the specific dataset item to mark as deleted.
  • project_identifier (string, required) ID of the to access. To find this, call /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ListDatasets


Retrieve a list of datasets for a specific .

Parameters

  • project_id (string, required) The ID of the to access datasets for. Use /api/projects/ to find this ID.
  • dataset_ids (array[string], optional) A list of dataset IDs. Can include multiple IDs separated by commas.
  • initial_result_index (integer, optional) The initial index from which to return the results.
  • order_datasets_by (array[string], optional) Specify the order of dataset results. Options: ‘created_at’, ‘-created_at’, ‘updated_at’, ‘-updated_at’.
  • results_per_page (integer, optional) Specify the number of results returned per page. This determines how many datasets are retrieved in one API call.
  • search_query (string, optional) Search within dataset name, description, or metadata using a keyword or phrase.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CreateDatasetProject


Create a new dataset within a specified .

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • project_id (string, optional) The ID of the where the dataset will be created. Obtainable via the /api/projects/ call. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveDatasetInfo


Retrieve details of a specific dataset in a .

Parameters

  • dataset_identifier (string, required) A UUID string identifying the specific dataset to retrieve.
  • project_identifier (string, required) The ID of the to access. Use /api/projects/ to retrieve project IDs.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateDataset


Update a specific dataset within a .

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • dataset_identifier (string, optional) A UUID string identifying the dataset to be updated. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_id (string, optional) The ID of the to access. Use /api/projects/ to find this ID. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateDatasetInfo


Update specific dataset information in a .

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • dataset_uuid (string, optional) A UUID string that uniquely identifies the dataset to be updated. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_identifier (string, optional) The ID of the to be accessed. Retrieve using a call to /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.DeleteDatasetById


Facilitates marking a dataset as deleted in a .

Parameters

  • dataset_uuid (string, required) A UUID string that uniquely identifies the dataset to be marked as deleted within the .
  • project_identifier (string, required) Provide the ID for accessing the desired project. Use the /api/projects/ endpoint to locate the ID.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.GetEarlyAccessFeatures


Retrieve a list of early access features for a .

Parameters

  • project_id (string, required) The ID of the to retrieve early access features for. Obtainable via /api/projects/.
  • number_of_results_per_page (integer, optional) Specify the number of results to return per page for early access features.
  • result_start_index (integer, optional) The initial index from which to return the results when paginating through early access features.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CreateEarlyAccessFeatureTracking


Create tracking for early access feature views.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • project_id (string, optional) ID to access specific project features. Retrieve this ID by calling /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveEarlyAccessFeature


Retrieve information about an early access feature.

Parameters

  • feature_uuid (string, required) A UUID string identifying the early access feature to retrieve.
  • project_identifier (string, required) The unique ID of the you want to access. Retrieve this by calling the /api/projects/ endpoint.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ModifyEarlyAccessFeature


Update early access feature for a .

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • early_access_feature_id (string, optional) A UUID string identifying the early access feature to be updated. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_id (string, optional) The unique identifier for the . Fetch it by calling /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateEarlyAccessFeature


Update an early access feature for a .

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • early_access_feature_id (string, optional) A UUID string identifying the specific early access feature. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_id (string, optional) The ID of the you want to access. Retrieve this from the /api/projects/ endpoint. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RemoveEarlyAccessFeature


Remove an early access feature from a .

Parameters

  • early_access_feature_id (string, required) A UUID string that identifies the specific early access feature to be removed.
  • project_id_for_removal (string, required) ID to identify the project for accessing or removing the early access feature. Use the /api/projects/ endpoint to find this ID.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrievePosthogEndpointRun


Retrieve details of a specific Datadog endpoint run.

Parameters

  • endpoint_name (string, required) The name of the Datadog endpoint to retrieve details for. This specifies which endpoint’s run details you want to access.
  • project_identifier (string, required) The ID of the to access. Obtainable via a call to /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateEndpoint


Update an existing endpoint run in a .

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • endpoint_name (string, optional) The name of the endpoint to be updated. This is a required string parameter. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_id (string, optional) ID to access the specific project. Obtainable via a call to /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.FetchRecentExecutionTimes


Fetch the last 6 months of execution times for endpoints.

Parameters

  • endpoint_names (array[string], required) An array of endpoint names to retrieve execution times for, within the specified .
  • project_id (string, required) The ID you want to access. Retrieve it using /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ListProjectEnvironments


Get a list of environments for a specific .

Parameters

  • project_identifier (string, required) The unique identifier for the whose environments you want to list. Retrieve this by calling /api/projects/.
  • initial_result_index (integer, optional) The initial index from which to return the results, used to paginate.
  • results_per_page (integer, optional) The number of environments to return on each page of results. Specify an integer value.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CreateProjectEnvironment


Create a new environment for a specific .

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • project_id (string, optional) The ID of the to access. Retrieve it by calling /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.GetProjectEnvironmentDetails


Retrieve details of a specific environment within a .

Parameters

  • environment_id (integer, required) Unique integer identifying the environment (or team) to retrieve details for.
  • project_identifier (string, required) ID to access specific project details. Retrieve this by calling /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.EditProjectEnvironment


Update environment settings for a specified .

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • environment_identifier (integer, optional) A unique integer identifying the environment (aka team) for modification. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_identifier (string, optional) String ID of the to access. Obtain ID via /api/projects/ call. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ModifyProjectEnvironment


Update a specific environment of a .

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • environment_identifier (integer, optional) A unique integer identifying the environment or team to be updated. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_identifier (string, optional) The ID of the you want to access. Use /api/projects/ to find the Project ID. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.DeleteEnvironment


Delete a specific environment from a .

Parameters

  • environment_id (integer, required) A unique integer identifying the environment to delete.
  • project_identifier (string, required) The ID of the you’re trying to access. Find this by calling the /api/projects/ endpoint.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.GetEnvironmentActivity


Retrieve environment activity details.

Parameters

  • environment_id (integer, required) A unique integer identifying the environment (aka team).
  • project_identifier (string, required) The unique identifier for the you wish to access. Obtainable by calling /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateProjectEnvironment


Update product intent for a environment.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • environment_identifier (integer, optional) A unique integer that identifies the environment or team. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_identifier (string, optional) The ID of the to be accessed. Obtainable via the /api/projects/ endpoint. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CompleteProjectOnboarding


Mark a ’s product onboarding as complete in an organization.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • environment_id (integer, optional) A unique integer value identifying this environment (aka team). Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_identifier (string, optional) The ID of the to access. Retrieve this by calling the /api/projects/ endpoint. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveDefaultEvaluationTags


Retrieve default evaluation tags for a environment.

Parameters

  • environment_id (integer, required) A unique integer value identifying the environment or team for tag retrieval.
  • project_id (string, required) The unique identifier for the . Retrieve the ID by calling /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CreateDefaultEvaluationTags


Manage default evaluation tags for a team environment.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • environment_id (integer, optional) A unique integer value identifying the environment (team) for which to manage evaluation tags. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_identifier (string, optional) The ID of the you want to access for managing evaluation tags. Retrieve using /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.DeleteDefaultEvaluationTags


Delete default evaluation tags for a environment.

Parameters

  • environment_identifier (integer, required) A unique integer identifying the environment (or team) for tag management.
  • project_id (string, required) The unique ID of the to access. Find this ID through a call to /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.DeleteEnvSecretTokenBackup


Deletes a secret token backup in a environment.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • environment_id (integer, optional) A unique integer identifying the environment (aka team) to target for deletion. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_identifier (string, optional) The ID to access for managing secret token backups. Retrieve IDs via /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.GetProjectEventRestrictions


Retrieve event ingestion restrictions for a environment.

Parameters

  • environment_identifier (integer, required) A unique integer identifying the environment (team) for which to retrieve event restrictions.
  • project_identifier (string, required) The ID of the to access. Retrieve it via a call to /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.DemoDataStatus


Check if an environment is generating demo data.

Parameters

  • environment_id (integer, required) A unique integer value identifying the environment (aka team) for which you want to check demo data status.
  • project_identifier (string, required) The unique ID of the to access. Retrieve ID by calling /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ResetProjectEnvironmentToken


Resets the token for a specified environment.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • environment_identifier (integer, optional) A unique integer value identifying the environment or team. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_id (string, optional) The ID of the to access. Retrieve this by calling /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RotateEnvironmentSecretToken


Rotate the secret token for a environment.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • environment_id (integer, optional) A unique integer identifying the environment or team to update. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_id (string, optional) ID for the environment. Obtainable by calling /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveEventDefinitions


Retrieve event definitions for a specified .

Parameters

  • project_id (string, required) The ID of the to access event definitions. Obtainable via a call to /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveEventDefinition


Retrieve details of a specific event definition by ID.

Parameters

  • event_definition_id (string, required) A UUID string identifying the specific event definition to retrieve.
  • project_id (string, required) The ID of the to access. Find this by calling /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateEventDefinition


Update an existing event definition in a .

Parameters

  • event_definition_id (string, required) A UUID string identifying the event definition to update.
  • project_id (string, required) ID of the project you’re trying to access. Retrieve the ID by calling /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ModifyEventDefinition


Update an event definition in a .

Parameters

  • event_definition_uuid (string, required) A UUID string identifying the event definition to be updated.
  • project_identifier (string, required) ID to access the specific project in Datadog. Obtain by calling /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.DeleteEventDefinition


Delete an event definition by ID and .

Parameters

  • event_definition_id (string, required) A UUID string that uniquely identifies the event definition to be deleted.
  • project_identifier (string, required) ID of the target project. Retrieve this ID via /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveEventDefinitionMetrics


Retrieve metrics for a specific event definition.

Parameters

  • event_definition_id (string, required) A UUID string identifying the specific event definition.
  • project_identifier (string, required) The unique ID of the to access. Retrieve this via the /api/projects/ endpoint.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveEventDetails


Retrieve details of a specific event.

Parameters

  • event_id (string, required) The unique identifier for the event you want to retrieve details about.
  • project_identifier (string, required) The ID of the to access. Obtain it with a call to /api/projects/.
  • response_format (string, optional) Specifies the format of the response data. Options are ‘csv’ or ‘json’.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveEventValues


Retrieve event values for a specified .

Parameters

  • project_id (string, required) ID to access specific event data. Obtain by calling /api/projects/.
  • output_format (string, optional) Specifies the format of the retrieved event values. Acceptable values are ‘csv’ or ‘json’.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.GetExperimentHoldouts


Retrieve the list of experiment holdouts for a .

Parameters

  • project_id (string, required) The unique identifier of the for which you want to retrieve experiment holdouts. Obtain this ID by calling the /api/projects/ endpoint.
  • initial_index (integer, optional) The initial index from which to return the results. Used for pagination in retrieving experiment holdouts.
  • results_per_page (integer, optional) Specify the number of results to return per page for the query.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CreateExperimentHoldout


Create a new experiment holdout within a .

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • project_id (string, optional) The unique identifier for the you want to access. Obtainable via a call to /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.GetExperimentHoldout


Retrieve details of a specific experiment holdout from a .

Parameters

  • experiment_holdout_id (integer, required) A unique integer value identifying the specific experiment holdout.
  • project_identifier (string, required) The ID of the you want to access. Retrieve this ID using a call to /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateExperimentHoldout


Update an experiment holdout in a specific .

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • experiment_holdout_id (integer, optional) Unique integer identifying the specific experiment holdout to update. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_id (string, optional) The ID of the to access for updating the experiment holdout. Retrieve this by calling the /api/projects/ endpoint. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ModifyExperimentHoldout


Update the details of an experiment holdout.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • experiment_holdout_id (integer, optional) The unique integer identifier for the experiment holdout you wish to update. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • target_project_id (string, optional) Specify the ID of the you want to access. Retrieve the ID using /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.DeleteExperimentHoldout


Delete an experiment holdout from a .

Parameters

  • experiment_holdout_id (integer, required) A unique integer identifying the experiment holdout to be deleted.
  • project_id (string, required) The ID of the from which to delete the experiment holdout. Obtainable via /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ListExperimentSavedMetrics


Retrieve saved metrics for an experiment in a .

Parameters

  • project_id (string, required) The ID of the to access. Obtain the ID by calling /api/projects/.
  • initial_result_index (integer, optional) The starting index for returning results, used for pagination.
  • results_per_page (integer, optional) Specify the number of metric results to return per page.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CreateExperimentSavedMetrics


Create and save metrics for an experiment in a .

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • project_id (string, optional) The ID of the for which you want to create and save experiment metrics. Obtain from /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveExperimentMetrics


Retrieve saved experiment metrics from a .

Parameters

  • experiment_metric_id (integer, required) A unique integer value identifying the experiment’s saved metric to retrieve.
  • project_identifier (string, required) The ID of the for which you want to retrieve saved experiment metrics. Obtain this by making a call to /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateExperimentSavedMetrics


Update saved metrics for a specific experiment in Datadog.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • experiment_metric_id (integer, optional) A unique integer identifying the specific experiment saved metric to update. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_id (string, optional) The ID of the Datadog containing the experiment whose metrics you wish to update. Obtain this by calling /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateExperimentMetrics


Update saved metrics for a specific experiment.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • experiment_metric_id (integer, optional) A unique integer identifying the experiment saved metric to be updated. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_identifier (string, optional) The ID of the to access. Obtain it via a call to /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.DeleteSavedMetric


Deletes a saved experimental metric.

Parameters

  • experiment_metric_id (integer, required) A unique integer identifying the experiment saved metric to delete.
  • project_id (string, required) The ID of the containing the saved metric to delete. Obtainable via the /api/projects/ endpoint.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ListPosthogExperiments


Retrieve a list of experiments from a Datadog .

Parameters

  • project_id (string, required) The ID of the Datadog to access. Obtainable via a call to /api/projects/.
  • page_result_limit (integer, optional) The number of experiment results to return per page. Specify as an integer.
  • start_index (integer, optional) The index from which to start returning results. Used for pagination.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CreateExperimentInProject


Create a new experiment within a specified .

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • project_id_for_experiment_creation (string, optional) The ID of the where the experiment will be created. Obtain this by calling the /api/projects/ endpoint. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.GetProjectExperimentDetails


Retrieve details of a specific experiment within a .

Parameters

  • experiment_id (integer, required) A unique integer identifying the experiment to retrieve details for.
  • project_id (string, required) The ID of the to access. Use /api/projects/ to find the ID.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateExperiment


Update details of a specific experiment in a .

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • experiment_id (integer, optional) A unique integer that identifies the experiment to update. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_identifier (string, optional) The unique string ID of the to be accessed. Retrieve by calling /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateExperimentDetails


Partially update experiment details in a .

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • experiment_id (integer, optional) A unique integer value identifying the experiment to update. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_id (string, optional) Provide the ID of the you want to access. Use the /api/projects/ endpoint to find this ID. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.DeleteExperiment


Delete an experiment by setting it as deleted.

Parameters

  • experiment_id (integer, required) A unique integer value used to identify the experiment to be marked as deleted.
  • project_id (string, required) The unique ID of the containing the experiment to be deleted. Obtainable via the /api/projects/ endpoint.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CreateExposureCohortForExperiment


Create an exposure cohort for an experiment.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • experiment_id (integer, optional) A unique integer used to identify the specific experiment. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_identifier (string, optional) The unique identifier for the you’re accessing. Obtain this via a call to /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.DuplicateExperimentPosthog


Create a duplicate of a specific experiment.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • experiment_id (integer, optional) Unique integer to identify the experiment to duplicate. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_identifier (string, optional) The ID of the you want to access in Datadog. Obtain this by calling the /api/projects/ endpoint. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CreateExperimentTimeseriesRecalculation


Initiate recalculation of experiment timeseries data.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • experiment_id (integer, optional) A unique integer value identifying this experiment for recalculation. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_identifier (string, optional) The unique identifier of the you want to access for the recalculation. Obtain this by calling /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveExperimentTimeseries


Retrieve timeseries data for an experiment-metric pair.

Parameters

  • experiment_id (integer, required) A unique integer identifying the experiment to retrieve timeseries data for.
  • project_id (string, required) The unique identifier for the to access. Retrieve the ID with a call to /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ListExperimentsEligibleFeatureFlags


Retrieve feature flags eligible for experiments.

Parameters

  • project_id (string, required) The unique identifier for the to access. Use /api/projects/ to find this ID.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveExperimentsFlagStatus


Retrieve status of experiments requiring flag implementation.

Parameters

  • project_id (string, required) The ID of the to access for flag implementation status retrieval. Obtain using /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ListProjectExports


Retrieve a list of exports for a given ID.

Parameters

  • project_id (string, required) The ID of the to access exports for. Use /api/projects/ to find the project ID.
  • results_per_page (integer, optional) Number of results to return per page for export details.
  • start_index (integer, optional) The initial index to start returning results from. Use this to paginate results.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CreateExports


Initiate the export process for Datadog .

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • project_id (string, optional) The unique identifier of the Datadog to initiate exports. Obtainable via a call to /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveProjectExport


Retrieve data of a specific export.

Parameters

  • export_id (integer, required) Unique integer to identify the exported asset.
  • project_id (string, required) The ID of the to access. Use /api/projects/ to find the project ID.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveExportedContent


Retrieve exported content from a specific .

Parameters

  • exported_asset_id (integer, required) A unique integer identifying the exported asset.
  • project_identifier (string, required) The ID of the you want to access. Use /api/projects/ to find the project ID.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ListFeatureFlags


Retrieve feature flags for a specified .

Parameters

  • project_identifier (string, required) The identifier for the to access feature flags. Retrieve using /api/projects/.
  • exclude_feature_flag_keys (string, optional) A JSON-encoded list of feature flag keys to exclude from the results. Useful for filtering.
  • feature_flag_search_term (string, optional) Search for a feature flag by its key or name, case insensitive.
  • filter_by_active_status (string, optional) Filter feature flags by active status. Use ‘STALE’, ‘false’, or ‘true’.
  • filter_by_evaluation_runtime (string, optional) Filter feature flags by their evaluation runtime. Options: ‘both’, ‘client’, ‘server’.
  • filter_by_tags (string, optional) A JSON-encoded list of tag names to filter feature flags by. Use this to specify which tags should be included in the results.
  • flag_type (string, optional) Specifies the feature flag type to filter results. Options are ‘boolean’, ‘experiment’, or ‘multivariant’.
  • initial_creator_user_id (string, optional) The ID that initially created the feature flag. It helps filter feature flags created by a specific user.
  • results_offset_index (integer, optional) The starting index for the results to be returned.
  • results_per_page (integer, optional) Specify the number of feature flags to return for each page of results.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CreateFeatureFlag


Create a new feature flag in a specific .

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • project_unique_identifier (string, optional) The unique identifier for the to access. Retrieve it by calling the /api/projects/ endpoint. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveFeatureFlags


Retrieve details of a specific feature flag.

Parameters

  • feature_flag_identifier (integer, required) The unique integer ID that identifies the specific feature flag to retrieve.
  • project_id (string, required) ID of the to access. Retrieve by calling /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ModifyFeatureFlags


Update existing feature flags in a .

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • feature_flag_id (integer, optional) A unique integer identifying the feature flag to modify. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_id (string, optional) The ID of the you want to access. Retrieve it via a call to /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateFeatureFlags


Update feature flags for a specific .

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • feature_flag_id (integer, optional) A unique integer value identifying the specific feature flag to be updated. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_identifier (string, optional) The unique identifier for the to access. Obtainable via a call to /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.MarkFeatureFlagDeleted


Mark a feature flag as deleted.

Parameters

  • feature_flag_id (integer, required) A unique integer value used to identify the feature flag.
  • project_identifier (string, required) ID to access a specific project. Retrieve by calling /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveFeatureFlagActivity


Retrieve activity details for a specific feature flag.

Parameters

  • feature_flag_id (integer, required) A unique integer identifying the feature flag to retrieve activity for.
  • project_identifier (string, required) Unique identifier for the to access. Obtain from the /api/projects/ endpoint.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CreateStaticCohortForFeatureFlag


Create a static cohort for a specific feature flag.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • feature_flag_id (integer, optional) A unique integer value identifying the specific feature flag to create a static cohort for. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_id (string, optional) The ID of the to access for creating a static cohort for the feature flag. Retrieve via a call to /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CreateFeatureFlagsDashboard


Create a dashboard for feature flags in a .

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • feature_flag_id (integer, optional) A unique integer value identifying this feature flag for creation or modification. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_identifier (string, optional) The ID of the to access. Retrieve this by calling /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CreateFeatureFlagUsageDashboard


Create or manage feature flag usage dashboards.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • feature_flag_id (integer, optional) A unique integer identifying this feature flag for the usage dashboard. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_id (string, optional) The ID of the you want to access. Retrieve it via a call to /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveFeatureFlagConfig


Retrieve remote configuration of a specific feature flag.

Parameters

  • feature_flag_identifier (integer, required) The unique integer that identifies the specific feature flag to retrieve.
  • project_identifier (string, required) The ID of the to access. Use /api/projects/ to find the ID.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveFeatureFlagStatus


Retrieve the status of a specific feature flag for a .

Parameters

  • feature_flag_id (integer, required) A unique integer identifying the feature flag whose status you want to retrieve.
  • project_identifier (string, required) ID to access a specific project. Obtain by calling /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveFeatureFlagsActivity


Retrieve feature flags activity for a specific .

Parameters

  • project_identifier (string, required) Unique identifier for the to retrieve feature flags activity. Obtainable via /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.GetFeatureFlagKeys


Retrieve feature flag keys using a list of IDs.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • project_id (string, optional) The ID of the to access. Obtain the ID by calling /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveFeatureFlagsEvaluationReasons


Retrieve evaluation reasons for feature flags by .

Parameters

  • project_id_for_feature_flags (string, required) The ID of the to access for retrieving feature flags evaluation reasons. Obtainable via /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveLocalFeatureFlags


Retrieve feature flags for local evaluation in a .

Parameters

  • project_identifier (string, required) The ID of the to access feature flags for. Retrieve this ID via /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.GetFeatureFlags


Retrieve current feature flags for a user’s .

Parameters

  • project_id (string, required) The ID of the to access feature flags for. Make a call to /api/projects/ to find the project’s ID.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CreateFeatureFlagBlastRadius


Create a feature flag blast radius for a .

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • feature_flag_project_id (string, optional) The ID for accessing the desired project. Obtainable via the /api/projects/ endpoint. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ListFileSystems


Fetches the list of file systems for a given .

Parameters

  • project_id (string, required) The ID of the for which you want to list file systems. Obtain by calling /api/projects/.
  • results_per_page (integer, optional) Number of results to return per page for file system listings.
  • search_term (string, optional) A search term to filter the list of file systems.
  • start_index (integer, optional) The initial index from which to return the file system results.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CreateProjectFileSystem


Create a file system for a specified .

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • project_id (string, optional) The ID of the for which you want to create a file system. Retrieve this ID by calling /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveFileSystemInfo


Retrieve detailed file system information for a .

Parameters

  • file_system_id (string, required) A UUID string identifying the file system to retrieve details for.
  • project_id (string, required) The ID of the to access. Get this ID by calling the /api/projects/ endpoint.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateFileSystem


Updates a file system in a specific by ID.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • file_system_id (string, optional) A UUID string uniquely identifying the file system to be updated. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_id (string, optional) The identifier for the you want to access. Use the project ID to specify which project’s file system to update. Retrieve the ID by calling the /api/projects/ endpoint if needed. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ModifyFileSystem


Update specific details of a file system.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • file_system_id (string, optional) A UUID string used to identify the specific file system to be updated. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_id (string, optional) The unique ID of the . Use /api/projects/ to find this ID. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.DeleteFileSystem


Delete a specified file system in a .

Parameters

  • file_system_id (string, required) A UUID string identifying the file system to delete.
  • project_id (string, required) Provide the ID of the project you’re trying to access. Retrieve the ID with a /api/projects/ call.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.FetchFolderFileCount


Get the count of all files in a folder.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • file_system_uuid (string, optional) A UUID string that uniquely identifies the file system for which you want to get the file count. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_id (string, optional) ID to access the project for counting files. Obtain via /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)


Create a link for a file system in a specific .

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • file_system_id (string, optional) A UUID string that uniquely identifies the file system. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_id (string, optional) The ID of the you want to access. Obtain it by calling /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.MoveFileSystemEntry


Moves a file system entry to a new location within the .

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • file_system_id (string, optional) A UUID string identifying the file system to be moved within the . Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • target_project_id (string, optional) The ID of the target project where the file system entry will be moved. Obtain this ID from the /api/projects/ endpoint if necessary. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.FetchFileCountByPath


Retrieve the count of files in a specified folder.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • project_identifier (string, optional) The ID of the to access. Retrieve by calling /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CreateFileSystemLogView


Create a new file system log view for a .

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • target_project_id (string, optional) The ID of the for which you want to create a file system log view. Use the API to retrieve the project ID if unknown. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveUnfiledFiles


Retrieve unfiled files for a specific .

Parameters

  • project_id (string, required) The unique identifier for the whose unfiled files you want to retrieve. Make a call to /api/projects/ to find this ID.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.GetFileShortcuts


Retrieve a list of file system shortcuts for a given .

Parameters

  • project_id (string, required) The ID of the to access file system shortcuts. Obtain this ID via /api/projects/.
  • initial_result_index (integer, optional) The zero-based index from which to start returning results. Use to manage pagination.
  • results_per_page (integer, optional) Specifies the number of results to return per page when retrieving file system shortcuts.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.FileSystemShortcutCreate


Create a file system shortcut in a specific .

Parameters

  • file_system_shortcut_path (string, required) The file path where the shortcut will be created. It should be a valid string path within the .
  • project_id (string, required) The ID of the to access. Retrieve project IDs by calling /api/projects/.
  • shortcut_creation_timestamp (string, required) The timestamp when the shortcut was created, in string format. Typically, in ISO 8601 format.
  • shortcut_id (string, required) A unique identifier for the file system shortcut being created.
  • reference_id (string, optional) A unique reference string for the shortcut. This identifies the shortcut within the .
  • shortcut_type (string, optional) Specifies the type of file system shortcut to be created. Accepted values could include types like ‘link’, ‘alias’, or ‘junction’.
  • shortcut_url (string, optional) The URL reference for the file system shortcut to be created.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.GetFileSystemShortcut


Retrieve details of a file system shortcut.

Parameters

  • project_id (string, required) The ID of the to access. Use the /api/projects/ endpoint to find the ID if needed.
  • shortcut_id (string, required) A UUID string to identify the file system shortcut to retrieve details for.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ModifyFileSystemShortcut


Update a file system shortcut in a specified .

Parameters

  • creation_timestamp (string, required) A string representing the creation date and time of the shortcut. Format: ISO 8601 (e.g., ‘2021-09-15T13:45:30Z’).
  • file_system_path (string, required) The file system path of the shortcut to be updated. Provide the exact path within the .
  • file_system_shortcut_id (string, required) The UUID string identifying the file system shortcut to be updated.
  • project_id (string, required) The unique ID of the you want to update the file system shortcut for. Retrieve this ID by calling /api/projects/.
  • shortcut_id (string, required) The unique identifier for the file system shortcut to be updated.
  • file_system_shortcut_href (string, optional) The URL of the file system shortcut to be updated. It specifies the link to the resource.
  • reference_identifier (string, optional) A unique string identifier for the file system shortcut to be updated. This is used to specify which shortcut you are modifying.
  • shortcut_type (string, optional) Specifies the type of the file system shortcut to update. Accepted values may vary based on use case.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateFileSystemShortcut


Update a file system shortcut in a .

Parameters

  • project_id (string, required) The ID of the you want to access. Retrieve it by calling /api/projects/.
  • file_system_shortcut_id (string, optional) A UUID identifying the file system shortcut to be updated.
  • file_system_shortcut_link (string, optional) The URL or path to link the file system shortcut to. This should be a valid URL or path, depending on the system configuration.
  • reference_identifier (string, optional) The reference identifier for the file system shortcut to be updated. This is a string value required to specify which shortcut you are targeting for the update.
  • shortcut_creation_date (string, optional) ISO 8601 format string representing when the shortcut was created.
  • shortcut_id (string, optional) The unique identifier for the file system shortcut to be updated. This ID specifies which shortcut will have its details modified.
  • shortcut_path (string, optional) The file path for the shortcut to be updated. This should specify the exact location within the file system where the shortcut is located.
  • shortcut_type (string, optional) Specify the type of the file system shortcut, such as ‘symbolic’ or ‘hard’.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RemoveFileSystemShortcut


Delete a file system shortcut from a .

Parameters

  • file_system_shortcut_uuid (string, required) A UUID string identifying the file system shortcut to delete.
  • project_identifier (string, required) The ID to access. Retrieve it by calling /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.GetFeatureFlagValues


Retrieve possible values for a feature flag.

Parameters

  • project_id (string, required) The unique ID of the to access. Obtain this by calling /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ListGroupsByType


Retrieve all groups for a specified group type.

Parameters

  • group_type_to_list (integer, required) Specify the type of the group to retrieve by providing the index.
  • project_id (string, required) ID of the target project. It can be found by calling /api/projects/.
  • search_group_name (string, required) Search for a group by its name. Provide keywords or partial names to filter the group list.
  • pagination_cursor_value (string, optional) Provide the pagination cursor value to navigate through paginated results.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CreateProjectGroup


Create a new group in a specified .

Parameters

  • group_identifier_key (string, required) A unique string identifier for the new group being created within a . This key should be distinct to avoid conflicts with existing groups.
  • group_type_identifier (integer, required) An integer specifying the type of group to create within the .
  • project_identifier (string, required) The ID of the where the new group will be created. Use /api/projects/ to find the ID.
  • group_properties (string, optional) Specify the properties of the group you want to create. Provide this as a JSON string with property keys and values.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveGroupActivity


Fetches activity data for specified groups.

Parameters

  • group_type_id (integer, required) The numeric identifier for the group type to retrieve activity data.
  • project_identifier (string, required) ID to access the specific group activity. Find this ID via the /api/projects/ endpoint.
  • user_id_for_group_retrieval (string, required) Specify the ID to find associated groups for activity retrieval.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.DeleteGroupProperty


Delete a group property in a Datadog .

Parameters

  • group_identifier_key (string, required) The unique identifier key of the group from which the property will be deleted. This is required to specify the exact group within the .
  • group_index_type (integer, required) An integer representing the index of the group type to delete a property from.
  • group_key_for_deletion (string, required) The unique key identifying the group from which the property will be deleted.
  • group_type_index (integer, required) An integer specifying the group type to find within a for property deletion.
  • project_id (string, required) The ID of the Datadog for accessing and managing group properties. To find this ID, make a call to /api/projects/.
  • property_creation_date (string, required) The timestamp when the group property was created. Use ISO 8601 format (YYYY-MM-DDTHH:MM:SSZ).
  • group_property_key (string, optional) The key of the group property to be deleted from the Datadog .

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveProjectGroups


Retrieve group details for a specific .

Parameters

  • group_key_to_find (string, required) Specify the key of the group you want to find. This is used to identify the specific group within the .
  • group_type_index (integer, required) Specify the integer index for the group type you want to find within a .
  • project_id (string, required) The unique identifier for the to access group details. Obtainable via the /api/projects/ endpoint.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveGroupPropertyDefinitions


Retrieve group property definitions for a .

Parameters

  • project_id (string, required) The ID of the to access. Obtainable via a call to /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveGroupPropertyValues


Retrieve property values for groups within a .

Parameters

  • project_id (string, required) The ID of the to access. Obtain it by calling /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveRelatedGroups


Retrieve related groups for a specific in Datadog.

Parameters

  • group_type_index (integer, required) The index specifying the type of group to find.
  • project_id (string, required) The ID of the to access. Obtainable via the /api/projects/ endpoint.
  • user_id_to_find_groups (string, required) The ID of the user to find related groups for within a specified . It should be a string value.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateGroupProperty


Update a property of a group within a .

Parameters

  • group_identifier (string, required) Specify the unique key of the group to locate and update within the .
  • group_identifier_key (string, required) The unique key identifying the group to update. This key ensures that the correct group is modified.
  • group_property_creation_date (string, required) The date and time when the group property was created. Use ISO 8601 format, e.g., ‘2023-10-05T14:48:00Z’.
  • group_type_index (integer, required) Specify the integer index of the group type to identify the group.
  • index_of_group_type (integer, required) An integer representing the index of the group type to update. Specify the correct index to modify the desired group type within the .
  • project_id (string, required) The unique ID of the to access. Retrieve it by calling /api/projects/.
  • group_properties_value (string, optional) The properties or attributes to update for the specified group in the . This should be a string describing the desired changes.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ListGroupTypes


Retrieve list of group types for a specific .

Parameters

  • project_identifier (string, required) The unique identifier for the you want to access. Obtain this by calling /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.DeleteGroupType


Delete a specified group type in a .

Parameters

  • group_type_index (integer, required) Index of the group type to be deleted. Use an integer value to specify the group type.
  • project_id (string, required) The ID of the you want to access. Obtain this ID by calling /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.GetGroupTypeMetrics


Retrieve metrics for a specific group type in a .

Parameters

  • group_type_index (integer, required) The index of the group type for which to retrieve metrics. This identifies the specific group type within the .
  • project_identifier (string, required) String representing the ID to access the desired project in Datadog. Obtain it through a call to /api/projects/.
  • results_offset (integer, optional) The starting index for returning results, used for pagination.
  • results_per_page (integer, optional) Specifies the number of results to return per page.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CreateGroupTypeMetric


Create a new metric for a specific group type.

Parameters

  • group_type_index (integer, required) An integer representing the index of the group type to which a new metric will be added.
  • group_type_metric_id (string, required) The unique identifier for the metric you wish to create. It should be a string value.
  • metric_filters (string, required) Optional filters to apply when creating the group type metric. It accepts a string of filter criteria to narrow down the data.
  • metric_name (string, required) The name of the metric to be created for the group type. This should be a descriptive and unique identifier that helps distinguish this metric from others.
  • project_id (string, required) ID for accessing the specific project. Make a call to /api/projects/ to retrieve available IDs.
  • display_format (string, optional) Specifies how the metric will be displayed: ‘number’ for a numeric display, or ‘sparkline’ for a graphical display.
  • interval_in_days (integer, optional) Specify the interval in days for the metric data aggregation.
  • metric_format (string, optional) Specify the format for the metric. Options are ‘numeric’ or ‘currency’.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveGroupTypeMetric


Retrieve metrics for a specific group type.

Parameters

  • group_type_index (integer, required) An integer representing the index of the group type to retrieve metrics for.
  • group_usage_metric_id (string, required) A UUID string identifying this group usage metric to retrieve its details.
  • project_id (string, required) The ID of the to access, retrievable via the /api/projects/ endpoint.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateGroupTypeMetrics


Updates metrics for a specified group type in a .

Parameters

  • filters_criteria (string, required) Specify criteria to filter metrics data. Use a string representation of conditions.
  • group_type_index (integer, required) An integer representing the index of the group type to be updated. This is required to identify which group type’s metrics need modification.
  • group_usage_metric_id (string, required) A UUID string identifying the group usage metric to be updated.
  • metric_id (string, required) Unique identifier for the metric to be updated. Expect a string value.
  • metric_name (string, required) The name of the metric to update for the specified group type in a .
  • project_id (string, required) The ID of the you want to access. Use /api/projects/ to find it.
  • interval_in_days (integer, optional) Specify the interval in days for updating metrics.
  • metric_display_type (string, optional) Defines how the metrics are displayed. Options are ‘number’ or ‘sparkline’.
  • metric_format_type (string, optional) Specifies the display format of the metric: ‘numeric’ for numeric values or ‘currency’ for currency representation.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateMetricsForGroupType


Update metrics for a specific group type in a .

Parameters

  • group_type_position (integer, required) The index of the group type to update within the metrics. It should be an integer value.
  • project_id (string, required) The unique ID of the you want to access. Retrieve it by calling /api/projects/.
  • filter_conditions (string, optional) Conditions to filter the metrics. Specify as a string, e.g., ‘status:active’.
  • group_metric_name (string, optional) The name of the metric to update for the specified group type.
  • group_type_id (string, optional) The unique identifier for the group type to update metrics for.
  • group_usage_metric_id (string, optional) A UUID string identifying the group usage metric to update.
  • metric_display_type (string, optional) Defines how the metric should be displayed: ‘number’ or ‘sparkline’.
  • metric_format_type (string, optional) Specifies the format of the metric. Can be ‘numeric’ or ‘currency’. Choose ‘numeric’ for plain numbers and ‘currency’ for currency representation.
  • update_interval_days (integer, optional) Number of days to set as the interval for updating metrics.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.DeleteGroupTypeMetric


Delete a specific metric from a group type.

Parameters

  • group_type_index (integer, required) An integer representing the position of the group type in the list. Specify the exact index to delete the associated metric.
  • metric_uuid (string, required) A UUID string identifying the metric to be deleted from the group type.
  • project_id (string, required) The ID of the to access. Retrieve it via the /api/projects/ endpoint.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateGroupDashboard


Update a ’s group detail dashboard.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • project_id (string, optional) The string representing the ID you want to access. Retrieve it via /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateDefaultGroupColumns


Update default columns for group types in a .

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • project_id (string, optional) The unique identifier for the you want to access. Retrieve it by calling the /api/projects/ endpoint. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateGroupTypeMetadata


Updates metadata for group types in a .

Parameters

  • project_identifier (string, required) ID to access a specific project. Use /api/projects/ to find the ID.
  • default_columns (array[string], optional) An array of strings representing the default columns for the group type metadata. Each string specifies a column name to be included by default.
  • detail_dashboard_id (integer, optional) The integer ID of the detail dashboard associated with the group type.
  • group_type_creation_date (string, optional) The creation date of the group type in ISO 8601 format (YYYY-MM-DDTHH:MM:SSZ).
  • group_type_identifier (string, optional) The identifier for the group type to update metadata for. Provide a unique string value that represents the group type within the .
  • group_type_index (integer, optional) An integer representing the index of the group type you want to update within the . It identifies which specific group type’s metadata is to be modified.
  • group_type_name_plural (string, optional) The plural name for the group type to be updated. This should reflect the plural form used in the metadata.
  • singular_group_name (string, optional) The singular name to be used for a specific group type. This is used for clear identification and communication.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ListHogFunctions


Retrieve a list of hog functions for a .

Parameters

  • project_identifier (string, required) The unique identifier for the you want to access. Obtain via /api/projects/.
  • created_at (string, optional) Specify the creation date for filtering hog functions. Use ISO 8601 format (YYYY-MM-DD).
  • created_by_user_id (integer, optional) The unique integer ID of the who created the resource.
  • function_id (string, optional) The unique identifier for the hog function to retrieve details for.
  • hog_function_types (array[string], optional) A list of hog function types, specified as strings. Supports multiple values.
  • include_only_enabled_functions (boolean, optional) Include only enabled functions. Set to true to include enabled functions, false to include all.
  • result_offset (integer, optional) The starting index for the returned results, used for pagination.
  • results_per_page (integer, optional) Integer specifying the number of results to return per page.
  • search_term (string, optional) A search term used to filter the list of hog functions based on specific criteria.
  • updated_timestamp (string, optional) The timestamp for the latest update of the hog function. Use an ISO 8601 format.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CreateHogFunction


Log a new file system view for a specified .

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • project_identifier (string, optional) The unique ID of the to access. Retrieve this by calling /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveProjectHogFunction


Retrieve details of a hog function in a .

Parameters

  • hog_function_id (string, required) A UUID string identifying the specific hog function to retrieve.
  • project_identifier (string, required) The unique ID of the you want to access. Retrieve it via the /api/projects/ endpoint.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ModifyHogFunctions


Update and track file system views for hog functions.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • hog_function_uuid (string, optional) A UUID string to uniquely identify the hog function to update. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_identifier (string, optional) The ID of the desired . Retrieve via a call to /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateHogFunctionViews


Log and update views for hog functions in a .

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • hog_function_uuid (string, optional) A UUID string identifying the hog function to log a view for. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_id (string, optional) The unique ID of the . Retrieve by calling /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RemoveHogFunction


Marks a HOG function as deleted in a Datadog .

Parameters

  • hog_function_id (string, required) A UUID string identifying the HOG function to be marked as deleted.
  • project_id_for_deletion (string, required) The unique identifier of the where the HOG function resides. Obtain by calling /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.TrackFileSystemView


Log and track a file system view on resource access.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • hog_function_uuid (string, optional) A UUID string identifying the hog function to track. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_id (string, optional) A string representing the ID of the project to access. Retrieve this ID by calling /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.TrackFsView


Logs a view each time a resource is accessed via GET.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • hog_function_uuid (string, optional) A UUID string identifying this hog function. Required for logging views. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_id (string, optional) The ID of the you are accessing. Retrieve it via /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveLogsForFileSystemViews


Retrieves logs for tracked file system views.

Parameters

  • hog_function_uuid (string, required) A UUID string identifying the specific hog function to retrieve logs for.
  • project_identifier (string, required) A string representing the ID for access. Call /api/projects/ to find the ID.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.TrackFileSystemViews


Retrieve metrics for tracking file system views.

Parameters

  • hog_function_id (string, required) A UUID string identifying the specific hog function for tracking views.
  • project_identifier (string, required) The ID of the to access. Retrieve via /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.GetHogFunctionMetricsTotals


Retrieve total metrics for a specified hog function.

Parameters

  • hog_function_uuid (string, required) A UUID string identifying the specific hog function for which metrics are being retrieved.
  • project_identifier (string, required) ID for accessing the specific project. Obtainable via a call to /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.GetHogFunctionIcon


Retrieve the icon for hog functions in a specific .

Parameters

  • project_id (string, required) The ID of the for which you want to retrieve the hog function icon. Obtain the ID via /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveProjectIcons


Retrieve and log views of icons.

Parameters

  • project_identifier (string, required) The ID of the you want to access. Retrieve it using /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateHogfunctionOrder


Modify the order of execution for HogFunctions.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • project_identifier (string, optional) ID of the to access. Obtainable via a call to /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ListProjectInsights


Retrieve insights list for a specific .

Parameters

  • project_id (string, required) ID to access specific insights. Obtain it via /api/projects/.
  • creator_user_id (integer, optional) The ID of the creator of the insights. Provide this as an integer value to filter insights by the creator.
  • insights_refresh_mode (string, optional) Determine how aggressively to refresh insights: ‘force_cache’, ‘blocking’, ‘async’, ‘lazy_async’, ‘force_blocking’, or ‘force_async’.
  • project_short_id (string, optional) The short identifier for the within Datadog. Used to specify which project’s insights to retrieve.
  • response_format (string, optional) Specifies the format of the response, either ‘csv’ or ‘json’. Choose based on your output preference.
  • results_offset_index (integer, optional) The starting index for returning results from the insights list.
  • results_per_page (integer, optional) Specify the number of insights to return per page.
  • return_basic_metadata_only (boolean, optional) If true, return only basic insight metadata without results for a faster response.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CreateInsightEntry


Logs a new file system view entry for insights.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • project_identifier (string, optional) The ID of the for which you want to log a file system view. Obtain it using the /api/projects/ endpoint. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • response_format (string, optional) Specify the format of the response, either ‘csv’ or ‘json’. Only used when mode is ‘execute’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ListInsightSharing


Retrieve sharing details for a specific insight.

Parameters

  • insight_identifier (integer, required) The unique identifier for the specific insight you want to retrieve sharing details for. This is an integer value that uniquely represents an insight within the .
  • project_id (string, required) The ID of the to access. Retrieve via the /api/projects/ endpoint.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CreateInsightsSharingPassword


Create a new password for insights sharing configuration.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • insight_identifier (integer, optional) The numerical ID representing the specific insight to create a password for. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_identifier (string, optional) The ID of the you want to access. Obtain it by calling /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.DeletePasswordFromSharingConfig


Delete a password from the sharing configuration of an insight.

Parameters

  • insight_identifier (integer, required) The unique integer identifier for the insight from which the password is being deleted.
  • project_identifier (string, required) The ID of the to access. Retrieve it via the /api/projects endpoint.
  • sharing_password_id (string, required) The unique ID of the password to be deleted from the sharing configuration.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RefreshInsightSharing


Refresh the sharing settings of an insight.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • insight_identifier (integer, optional) The unique integer identifier for the insight to refresh sharing settings. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_id (string, optional) The ID to access. Retrieve it by calling /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveInsightData


Retrieve tracked insights for file system views.

Parameters

  • insight_id (integer, required) A unique integer identifying the specific insight to retrieve.
  • project_id (string, required) ID to access. Obtain it by calling /api/projects/.
  • dashboard_context_id (integer, optional) ID of the dashboard for -specific insight. Filters and date range from this dashboard will be applied.
  • output_format (string, optional) Specifies the format for the retrieved insights data. Options are ‘csv’ or ‘json’.
  • refresh_insight_strategy (string, optional) Defines the strategy for refreshing the insight. Options include ‘force_cache’, ‘blocking’, ‘async’, ‘lazy_async’, ‘force_blocking’, and ‘force_async’, determining sync/async behavior and cache usage.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateInsights


Update insights tracking view for a resource.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • insight_id (integer, optional) A unique integer identifying the insight to update. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_id (string, optional) The ID of the to access. Retrieve it by calling /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • output_format (string, optional) Specify the format of the response data. Accepts ‘csv’ or ‘json’. Only used when mode is ‘execute’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateInsightsViewLog


Log a new view for a specific insight resource.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • insight_id (integer, optional) A unique integer value to identify the specific insight. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_id (string, optional) ID to access the required insight. Obtainable via a call to /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • response_format (string, optional) Specifies the format of the response. Acceptable values are ‘csv’ or ‘json’. Only used when mode is ‘execute’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.DeleteInsight


Marks an insight as deleted in a .

Parameters

  • insight_id (integer, required) A unique integer identifying the insight to be marked as deleted.
  • project_identifier (string, required) ID to access and mark an insight as deleted. Use /api/projects/ to find the ID.
  • response_format (string, optional) Specifies the format of the response data. Options are ‘csv’ or ‘json’.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.GetInsightsActivity


Retrieve logs of insight views for a .

Parameters

  • insight_id (integer, required) A unique integer identifying the specific insight to retrieve logs for.
  • project_id_for_access (string, required) ID to access the desired project. Retrieve ID via /api/projects/ if unknown.
  • response_format (string, optional) Specify the format of the response: ‘csv’ or ‘json’.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveInsightsActivity


Retrieve insights activity logs for a specified .

Parameters

  • project_id (string, required) The ID of the to access insights activity data. Obtain by calling /api/projects/.
  • output_format (string, optional) Specify the format for the output: ‘csv’ or ‘json’.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.StopInsightProcess


Cancel the ongoing insight creation process for a .

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • project_identifier (string, optional) The unique identifier for the . Use /api/projects/ to find it. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • response_format (string, optional) The desired format of the response, either ‘csv’ or ‘json’. Only used when mode is ‘execute’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveRecentlyViewedInsights


Retrieve details of the last 5 insights viewed by the .

Parameters

  • project_id (string, required) ID for accessing the specific project insights. Obtainable via /api/projects/.
  • response_format (string, optional) Specify the format of the returned data. Options are ‘csv’ or ‘json’.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RecordInsightViews


Update the view timestamps for specified insights.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • project_id (string, optional) The ID of the to access. Retrieve the ID by calling /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • response_format (string, optional) Specifies the format of the response. Choose between ‘csv’ or ‘json’. Only used when mode is ‘execute’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ListProjectIntegrations


Retrieve a list of integrations for a specific .

Parameters

  • project_id (string, required) Specify the ID to retrieve its associated integrations. You can find this ID by calling /api/projects/.
  • results_per_page (integer, optional) Specify the number of results to return per page.
  • starting_index_for_results (integer, optional) The index to start returning results from, used for pagination.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CreateProjectIntegration


Creates a new integration for a specific .

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • project_id (string, optional) The unique identifier for the . Retrieve this by calling /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.GetIntegrationDetails


Retrieve integration details for a specific .

Parameters

  • integration_id (integer, required) A unique integer identifying this integration.
  • project_id (string, required) The ID of the for which integration details are needed. Obtainable via a call to /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.DeleteIntegration


Delete an existing integration for a .

Parameters

  • integration_id (integer, required) The unique integer used to identify the specific integration to be deleted.
  • project_id (string, required) The ID needed to access the project. Retrieve it by calling /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.GetIntegrationChannels


Retrieve integration channels for a specific and ID.

Parameters

  • integration_id (integer, required) A unique integer identifying the specific integration in Datadog.
  • project_identifier (string, required) identifier for accessing a specific project. Use the /api/projects/ endpoint to find the ID if needed.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.GetClickupLists


Retrieve ClickUp lists for a specific integration.

Parameters

  • integration_id (integer, required) A unique integer to identify the integration for retrieving ClickUp lists.
  • project_identifier (string, required) The ID of the to access. Obtain this by calling /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveClickupSpaces


Retrieve ClickUp spaces for a specific integration.

Parameters

  • integration_id (integer, required) A unique integer identifying the integration to retrieve associated ClickUp spaces.
  • project_id (string, required) The ID of the to access spaces for. Obtainable via /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveClickupWorkspaces


Retrieve ClickUp workspaces for a integration.

Parameters

  • integration_unique_identifier (integer, required) A unique integer identifying the integration for retrieving ClickUp workspaces.
  • project_id (string, required) ID to access specific ClickUp workspaces. Obtain the ID by calling /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CreateEmailVerificationIntegration


Initiate an email verification integration for a .

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • integration_id (integer, optional) A unique integer identifying the integration to set up email verification for. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_id (string, optional) The ID of the for which the email verification integration is to be initiated. Obtain this ID by calling the /api/projects/ endpoint. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.FetchGithubReposForIntegration


Retrieve GitHub repositories for a specified integration.

Parameters

  • integration_id (integer, required) A unique integer representing the integration whose associated GitHub repositories will be retrieved.
  • project_identifier (string, required) The ID of the you wish to access in Datadog. Obtainable via a call to /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.GetGoogleAccessibleAccounts


Retrieve accessible Google for integration.

Parameters

  • integration_id (integer, required) A unique integer identifying the specific integration.
  • project_id (string, required) The ID of the you want to access. Retrieve this ID by making a call to /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveGoogleConversionData


Retrieve Google conversion actions for a specific .

Parameters

  • integration_id (integer, required) A unique integer identifying the integration for which to retrieve Google conversion actions.
  • project_id (string, required) The ID of the you wish to access. Use this to retrieve specific Google conversion actions. You can find the project ID by calling /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveLinearTeams


Fetch Linear team details for a specific integration.

Parameters

  • integration_id (integer, required) A unique integer identifying the specific integration to retrieve Linear team details.
  • project_identifier (string, required) The ID of the to access. Obtain it through the /api/projects/ endpoint.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveLinkedinAdsAccounts


Retrieve LinkedIn Ads for a integration.

Parameters

  • integration_id (integer, required) A unique integer identifying the LinkedIn integration for the .
  • project_id (string, required) Unique ID of the project for accessing LinkedIn Ads . Obtainable by calling /api//.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.GetLinkedinAdsConversionRules


Retrieve LinkedIn Ads conversion rules for a specific .

Parameters

  • integration_id (integer, required) A unique integer value identifying the LinkedIn integration.
  • project_id (string, required) The ID of the to access LinkedIn Ads conversion rules. Retrieve via /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveTwilioPhoneNumbers


Retrieve Twilio phone numbers for a specific integration.

Parameters

  • integration_id (integer, required) A unique integer value identifying this Twilio integration to retrieve phone numbers for.
  • project_id_for_twilio_integration (string, required) The ID of the to access Twilio phone numbers. Obtainable via /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.GetIntegrationAuthorization


Retrieve integration authorization details for a .

Parameters

  • project_identifier (string, required) The unique ID of the to access integration authorization details. Obtainable via /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CreateChatCompletion


Create a chat completion using OpenAI or compatible models.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • project_identifier (string, optional) The unique identifier for the to access. Retrieve via a call to /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • response_format (string, optional) Specify the format of the chat completion response. Possible values are ‘json’ or ‘txt’. Only used when mode is ‘execute’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CreateMessageWithClaude


Create a message using Anthropic’s Claude models.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • project_identifier (string, optional) The ID of the you want to access. Retrieve this by calling /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • message_format (string, optional) Specify the format of the message. Options are ‘json’ or ‘txt’. Only used when mode is ‘execute’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveLogAttributes


Retrieve log attributes for a specific .

Parameters

  • project_id (string, required) The ID of the to access. Obtainable via the /api/projects/ endpoint.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CreateLogQuery


Initiate a logs query for a specific .

Parameters

  • project_id (string, required) The unique ID for accessing the desired project in Datadog. Obtain by calling /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CreateLogsSparkline


Create a sparkline for logs.

Parameters

  • project_id (string, required) The ID of the for which you want to create a sparkline. Retrieve the ID using the /api/projects/ endpoint before using it here.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveLogValues


Retrieve log values for a specified .

Parameters

  • project_id (string, required) The ID of the to retrieve logs from. Obtain the project ID via a call to /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ListPosthogNotebooks


Retrieve a list of notebooks from Datadog.

Parameters

  • project_id (string, required) The ID of the you want to access notebooks for. Use /api/projects/ to find the ID.
  • filter_by_logged_in_user (string, optional) Provide any value to filter results to notebooks created by the logged-in .
  • filter_criteria (string, optional) String to filter notebooks. Use colon-separated key-value pairs, separated by space or comma.
  • filter_date_before (string, optional) Filter for notebooks created before this specified date and time. Use ISO 8601 format (e.g., ‘2023-10-01T15:00:00Z’).
  • filter_from_date (string, optional) Filter for notebooks created after this specific date and time. The date should be provided in an appropriate format, such as ISO 8601.
  • notebook_creator_uuid (integer, optional) The UUID of the notebook’s creator. Use this to filter notebooks by their creator.
  • results_per_page (integer, optional) Specifies the number of notebook results to return per page.
  • starting_index_for_results (integer, optional) The index to start returning results from. This is used for pagination.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CreateNotebook


Create a new notebook within a specified .

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • project_identifier (string, optional) The ID of the where the notebook will be created. Use /api/projects/ to find the ID. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveNotebookDetails


Retrieve details of a specific notebook.

Parameters

  • notebook_short_id (string, required) The short ID of the notebook you want to retrieve details for. This is required to specify the notebook within the .
  • project_identifier (string, required) ID to access specific project details. Obtain via /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateNotebook


Update a specific notebook’s details.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • project_id (string, optional) The ID of the you are accessing. Retrieve it via /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • notebook_short_id (string, optional) Provide the unique short ID of the notebook to be updated. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateNotebookDetails


Update notebook details in a specified .

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • target_project_id (string, optional) The ID of the to access. Use /api/projects/ to find the project ID. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • notebook_short_id (string, optional) The unique short identifier for the notebook to be updated. This ID is required to specify which notebook to modify within the . Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.DeleteNotebook


Deletes a specific notebook by marking it as deleted.

Parameters

  • notebook_short_id (string, required) The short ID of the notebook to mark as deleted. This ID uniquely identifies the notebook within the .
  • project_id (string, required) The ID of the to access. Obtain it by calling /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveNotebookActivity


Retrieve activity details of a specific notebook.

Parameters

  • notebook_short_id (string, required) The unique short identifier of the notebook for which activity details are requested. Used to specify the exact notebook within the .
  • project_id (string, required) The ID of the you’re trying to access. Obtain it by calling /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.GetNotebookActivity


Retrieve activity details for a specific notebook.

Parameters

  • project_id (string, required) The ID of the from which to retrieve notebook activity. Obtainable via a call to /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveNotebookComments


Retrieve comments from notebook recordings in a .

Parameters

  • project_identifier (string, required) Provide the ID to access specific notebook comments. Use /api/projects/ to find the ID.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ListPersistedFolders


Retrieve persisted folders for a given .

Parameters

  • project_id (string, required) ID of the project to access. Obtain the ID by calling /api/projects/.
  • results_per_page (integer, optional) Specifies the number of results to return per page.
  • start_index (integer, optional) The initial index from which to start returning the results.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.PersistFolderCreation


Create a new persisted folder in Datadog.

Parameters

  • folder_category (string, required) Specifies the type of the persisted folder. Options are ‘home’ for Home or ‘pinned’ for Pinned.
  • folder_creation_date (string, required) The date and time when the persisted folder is created, in ISO 8601 format.
  • folder_last_updated (string, required) A string representing the timestamp of the last update to the folder, in ISO 8601 format.
  • folder_type (string, required) Specifies the type of the folder. Possible values are ‘home’ for Home or ‘pinned’ for Pinned.
  • project_identifier (string, required) The unique identifier for the target . Retrieve it via /api/projects/.
  • folder_path (string, optional) Specify the path where the persisted folder will be created within the . It should be a string representing the directory structure needed.
  • folder_protocol (string, optional) Specify the protocol for the persisted folder. Expected values are network protocol types like HTTP or FTP.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrievePersistedFolder


Retrieve a specific persisted folder within a .

Parameters

  • persisted_folder_uuid (string, required) A UUID string identifying the persisted folder to be retrieved.
  • project_id (string, required) The unique identifier for the to access the persisted folder. Obtainable via a call to /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdatePersistedFolder


Update details of a persisted folder in a .

Parameters

  • folder_creation_date (string, required) The date when the folder was originally created, in string format. Use this to specify the creation timestamp for folder updates.
  • folder_id (string, required) The unique identifier of the folder to update within the .
  • folder_type (string, required) Specify the folder type: ‘home’ for Home or ‘pinned’ for Pinned.
  • persisted_folder_id (string, required) A UUID string identifying the persisted folder to update.
  • project_id (string, required) The ID of the to access. Retrieve using /api/projects/.
  • update_timestamp (string, required) Provide the timestamp when the folder was last updated. Use ISO 8601 format (e.g., ‘2023-10-01T12:34:56Z’).
  • folder_path (string, optional) Specify the path where the persisted folder is located within the .
  • update_protocol (string, optional) Specify the protocol for the folder update. This value should be a string.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateFolderInfo


Update a persisted folder’s metadata in Datadog.

Parameters

  • project_id (string, required) The ID of the Datadog you want to access. Make a call to /api/projects/ to find it.
  • folder_creation_date (string, optional) The date when the folder was created, expected in a string format (e.g., YYYY-MM-DD).
  • folder_id (string, optional) The unique identifier of the persisted folder to update.
  • folder_path (string, optional) The path to the persisted folder to update in Datadog. This specifies the location or hierarchy within the where the folder resides.
  • folder_type (string, optional) Specify the type of the folder. Options are ‘home’ for Home or ‘pinned’ for Pinned.
  • persisted_folder_id (string, optional) A UUID string identifying the persisted folder to update.
  • protocol_type (string, optional) Specify the protocol type for the persisted folder metadata. This is typically a string indicating the protocol used.
  • update_timestamp (string, optional) Timestamp indicating when the persisted folder was last updated. Use ISO 8601 format.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RemoveFolder


Deletes a specified persisted folder from a .

Parameters

  • persisted_folder_id (string, required) A UUID string identifying the persisted folder to be deleted.
  • project_id (string, required) The ID of the to access. Obtain this by calling /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrievePersonData


Retrieve detailed information about a specific person.

Parameters

  • person_identifier (integer, required) Unique integer identifying the person to retrieve information for.
  • project_id (string, required) The ID of the for accessing specific person data. Obtain it via /api/projects/.
  • output_format (string, optional) Specify the format in which to retrieve the person data. Options are ‘csv’ or ‘json’.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ModifyPersonDetails


Update properties for a person in the .

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • person_id (integer, optional) A unique integer representing a person to update in the . Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_identifier (string, optional) ID of the target for accessing person data. Retrieve the ID via a call to /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • response_format (string, optional) Specifies the format of the response output, either ‘csv’ or ‘json’. Only used when mode is ‘execute’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdatePersonInfo


Update person details using partial data.

Parameters

  • project_id (string, required) ID for accessing the intended project. Obtain by calling /api/projects/.
  • creation_timestamp (string, optional) The timestamp when the person data was initially created, in ISO 8601 format (e.g., ‘2023-10-05T14:48:00.000Z’).
  • person_distinct_ids (array[string], optional) An array of unique identifiers for the person whose data is being updated. These identifiers help to distinguish between different .
  • person_id (integer, optional) The identifier of the person whose information is being updated. It should be an integer.
  • person_identifier (integer, optional) A unique integer identifying the person to update.
  • person_name (string, optional) The name of the person whose details are being updated. This should be a string representing the person’s full name.
  • person_properties (string, optional) Stringified JSON containing specific person properties to update.
  • response_format (string, optional) The format of the response. Options are ‘csv’ or ‘json’.
  • user_uuid (string, optional) The unique identifier for the person to be updated. Must be a valid UUID string.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.DeletePerson


Delete an individual person from a .

Parameters

  • person_id (integer, required) A unique integer identifying the person to be deleted.
  • project_id (string, required) The ID of the to access. Retrieve by calling /api/projects/.
  • delete_events (boolean, optional) Set to true to create a task to delete all events associated with this person, batched and executed at 5AM UTC every Sunday.
  • response_format (string, optional) Specify the format of the response data. Choose between ‘csv’ or ‘json’.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.GetPersonActivity


Retrieve activities and details of a specific person.

Parameters

  • person_identifier (integer, required) A unique integer value identifying the person. Required for retrieving their activity details.
  • project_id (string, required) The ID of the to access. Obtainable via /api/projects/.
  • response_format (string, optional) Specify the format of the response, either ‘csv’ or ‘json’.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.QueuePersonEventDeletion


Queue deletion of events for a person during non-peak hours.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • person_identifier (integer, optional) A unique integer value identifying the person whose events are to be deleted. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_identifier (string, optional) Unique identifier for the . Obtain via /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • response_format (string, optional) Specify the format of the response. Choose either ‘csv’ or ‘json’. Only used when mode is ‘execute’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RemovePersonAttribute


Delete a specific property from a person’s profile.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • property_key_to_delete (string, optional) Specify the property key you want to delete from a person’s profile. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • person_identifier (integer, optional) A unique integer to identify the person whose property you want to delete. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_identifier (string, optional) The unique ID of the you want to access. Retrieve it by calling /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • response_format (string, optional) Specify the desired format for the response. Can be ‘csv’ or ‘json’. Only used when mode is ‘execute’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RemovePersonRecordings


Queue deletion of all recordings associated with a person.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • person_identifier (integer, optional) A unique integer value used to identify the person whose recordings are to be deleted. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_id (string, optional) The unique identifier for the . To obtain this ID, call /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • file_format (string, optional) Specify the format type for the output. Acceptable values are ‘csv’ or ‘json’. Only used when mode is ‘execute’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrievePersonPropertiesTimeline


Retrieve the timeline of a person’s properties changes.

Parameters

  • person_id (integer, required) A unique integer value identifying this person.
  • project_id (string, required) The unique identifier for the you’re trying to access. Obtain it via a call to /api/projects/.
  • response_format (string, optional) Specify the format of the response. Accepted values are ‘csv’ or ‘json’.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.SplitPersonEntityCreate


Create a sub-person entity for an existing person.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • person_identifier (integer, optional) A unique integer identifying the person for whom a sub-entity will be created. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_identifier (string, optional) The ID of the to access. Retrieve by calling /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • output_format (string, optional) Specifies the output format for the response. Accepts ‘csv’ or ‘json’. Only used when mode is ‘execute’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ModifyUserAttribute


Update a specific property for a person in a .

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • property_key (string, optional) The key for the property you want to update for the person. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • property_value (string, optional) Specify the value of the property to be updated for a person. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • person_identifier (integer, optional) A unique integer value used to identify the person whose property is being updated. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_identifier (string, optional) ID to access the relevant project. Retrieve it via /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • response_format (string, optional) Specify the format for the response. Use ‘csv’ or ‘json’. Only used when mode is ‘execute’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.PersonActivityInfo


Retrieve details of a person’s activities.

Parameters

  • access_project_id (string, required) The ID of the you want to access. Call /api/projects/ to find this ID.
  • response_format (string, optional) Specify the format for the response, either ‘csv’ or ‘json’.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.BulkDeletePersons


Bulk delete persons by IDs in a specified .

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • project_id (string, optional) The ID of the to access for deleting persons. Use /api/projects/ to find this ID. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • distinct_ids_list (json, optional) A list of distinct IDs to delete associated persons, limited to 1000 IDs per call. Only used when mode is ‘execute’.
  • response_format (string, optional) Specifies the format of the response, either ‘csv’ or ‘json’. Only used when mode is ‘execute’.
  • posthog_person_ids (json, optional) A JSON list of up to 1000 PostHog person IDs to delete. Only used when mode is ‘execute’.
  • delete_associated_events (boolean, optional) If true, a task is created to delete all events related to the persons being deleted. It runs every Sunday at 5AM UTC. Only used when mode is ‘execute’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.GetPersonsCohorts


Retrieve information about person cohorts in a .

Parameters

  • project_id (string, required) ID of the project to access. Use /api/projects/ to find this ID.
  • response_format (string, optional) Specify the format of the response: ‘csv’ or ‘json’.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrievePersonsFunnel


Retrieve persons data for a funnel.

Parameters

  • project_id (string, required) The ID of the to access. Find it by calling /api/projects/.
  • output_format (string, optional) Specify the desired output format. Options are ‘csv’ or ‘json’.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CreateOrUpdatePersons


Create or update persons in a funnel.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • project_id (string, optional) The unique identifier for the to access. Use /api/projects/ to find the ID. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • response_format (string, optional) Specify the format of the response. Options are ‘csv’ or ‘json’. Only used when mode is ‘execute’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.FunnelCorrelationPersonsRetrieve


Retrieve funnel correlation data for persons in a .

Parameters

  • project_id (string, required) The unique identifier for the you want to access. Retrieve this ID by calling /api/projects/.
  • response_format (string, optional) Format of the response data. Choose ‘csv’ or ‘json’.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.AddPersonsFunnelCorrelation


Create or update persons in a funnel correlation.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • project_id (string, optional) ID for accessing the project. Obtain by calling /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • response_format (string, optional) Specify the format of the response. Options are ‘csv’ or ‘json’. Only used when mode is ‘execute’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.GetPersonsLifecycle


Retrieve lifecycle information of persons in a .

Parameters

  • project_id (string, required) ID to access the specific project. Use /api/projects/ to find the ID if unknown.
  • response_format (string, optional) The format in which to retrieve lifecycle information. Options are ‘csv’ or ‘json’.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ResetPersonDistinctId


Reset a distinct_id for a deleted person to reuse it.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • project_id (string, optional) The ID of the you want to access. Use the /api/projects/ endpoint to retrieve available IDs. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • response_format (string, optional) Specify the response format. Options are ‘csv’ or ‘json’. Only used when mode is ‘execute’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrievePersonsStickiness


Retrieve information about persons’ stickiness in a .

Parameters

  • project_id (string, required) The unique identifier of the to access. Retrieve by calling /api/projects/.
  • response_format (string, optional) Determines the format of the response. Options are ‘csv’ or ‘json’.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.GetPersonTrends


Retrieve trends related to persons in a .

Parameters

  • project_identifier (string, required) The ID required to access and retrieve trends of persons for a specific project. Use the /api/projects/ endpoint to find the ID.
  • response_format (string, optional) Specify the format for the response data. Options are ‘csv’ or ‘json’.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.GetPersonInfo


Retrieve or delete person details in a Datadog .

Parameters

  • project_id (string, required) ID to access specific project details in Datadog. Obtain this by calling /api/projects/.
  • response_format (string, optional) Specifies the format of the response data. Options are ‘csv’ or ‘json’.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ListPluginConfigLogs


Retrieve logs for a specific plugin configuration.

Parameters

  • plugin_configuration_id (string, required) The ID of the plugin configuration whose logs you want to retrieve.
  • project_id (string, required) The unique identifier for the whose plugin logs you want to access. Obtain this by calling /api/projects/.
  • results_per_page (integer, optional) Number of results to return per page for the log list.
  • starting_index (integer, optional) The starting index for results retrieval, used to paginate through logs.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ListPropertyDefinitions


Retrieve a list of property definitions for a specific .

Parameters

  • project_id (string, required) ID of the you’re accessing. Use /api/projects/ to find it.
  • event_names_json (string, optional) A JSON-encoded string of event names to populate is_seen_on_filtered_events in the response.
  • exclude_core_properties (boolean, optional) Set to true to exclude core properties from the response; false to include them.
  • exclude_hidden_properties (boolean, optional) Set to true to exclude properties marked as hidden from the results.
  • excluded_properties_list (string, optional) A JSON-encoded list of property names to exclude from the response.
  • filter_feature_flag_properties (boolean, optional) Set to true to include only feature flag properties, false to exclude them.
  • filter_properties_by_event_names (boolean, optional) Set to true to return only properties for events specified in event_names.
  • filter_properties_list (string, optional) Comma-separated list of properties to filter the results by.
  • group_type_index_for_group_properties (integer, optional) Provide the group type index specifically for properties of type ‘group’. This should only be set if the type is set to ‘group’.
  • include_only_numerical_properties (boolean, optional) Set to true to return only numerical property definitions, false to exclude them.
  • property_definition_type (string, optional) Specify which type of property definitions to return: ‘event’, ‘person’, ‘group’, or ‘session’.
  • result_start_index (integer, optional) The initial index from which to return the results. Use this to paginate through results starting from a specific index.
  • results_per_page (integer, optional) Specify the number of results to return per page when retrieving property definitions.
  • search_query (string, optional) Keyword to search properties by name in the .

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrievePropertyDefinitions


Retrieve details of property definitions for a given .

Parameters

  • project_id (string, required) The ID of the you want to access. Retrieve it via /api/projects/.
  • property_definition_id (string, required) A UUID string identifying the specific property definition.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdatePropertyDefinitions


Update property definitions for a specific .

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • property_definition_id (string, optional) A UUID string identifying the specific property definition to update. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_id (string, optional) ID to access specific project details in Datadog. Call /api/projects/ to find it. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdatePropertyDefinition


Update partial property definition details.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • property_definition_id (string, optional) A UUID string identifying the property definition to update. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_identifier (string, optional) The ID of the to access. Retrieve it via /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.DeletePropertyDefinition


Delete a property definition from a .

Parameters

  • project_id (string, required) The ID of the to access. Retrieve it via the /api/projects/ endpoint.
  • property_definition_id (string, required) A UUID string identifying the property definition to be deleted.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CheckPropertyEventAssociation


Check if a property has been seen with specified event names.

Parameters

  • project_id (string, required) The unique identifier for the target . Obtainable via a call to /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveQueryFromProject


Retrieve a specific query from a .

Parameters

  • project_id (string, required) The unique identifier of the you want to access. Obtainable via a call to /api/projects/.
  • query_id (string, required) The unique identifier of the query you want to retrieve from the . This is required to specify which query to access.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.DeleteProjectQuery


Delete a specific query.

Parameters

  • project_id (string, required) ID of the you want to access. Retrieve it via a call to /api/projects/.
  • query_id (string, required) The unique identifier for the query to be deleted within the .

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.GetQueryLogDetails


Retrieve query log details for a specified query ID.

Parameters

  • project_id (string, required) ID for accessing the specific project. Retrieve by calling /api/projects/.
  • query_id (string, required) The unique identifier of the query to retrieve log details. The query must have been issued within the last 24 hours.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CheckAsyncAuth


Checks authorization for creating asynchronous queries.

Parameters

  • project_id_for_auth_check (string, required) The ID of the Datadog to check access for creating asynchronous queries. Obtain the ID by calling /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveDraftSqlQuery


Retrieve draft SQL query for a specific .

Parameters

  • project_id (string, required) The ID of the to access for the draft SQL query. Obtainable via a call to /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ListSessionPlaylists


Retrieve session recording playlists, including synthetic ones.

Parameters

  • project_identifier (string, required) The ID of the you’re trying to access. Obtain it by calling /api/projects/.
  • created_by_user_id (integer, optional) ID of the who created the playlist. Must be an integer.
  • playlist_short_id (string, optional) A specific short identifier for the playlist to retrieve.
  • results_offset (integer, optional) The index from which to start returning results. Useful for pagination.
  • results_per_page (integer, optional) Number of results to return per page.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.NewSessionRecordingPlaylist


Create a new session recording playlist for a .

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • project_id (string, optional) The ID of the for which you want to create a session recording playlist. Obtain this by calling /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveRecordingPlaylist


Retrieve a session recording playlist for a .

Parameters

  • playlist_short_id (string, required) The short ID of the session recording playlist to retrieve. This helps identify the specific playlist to fetch.
  • project_id (string, required) The ID of the to access. Retrieve it by calling /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ModifySessionRecordingPlaylist


Update session recording playlists for a .

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • project_id (string, optional) The ID of the you want to access. Retrieve the ID by calling /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • playlist_short_identifier (string, optional) A unique identifier for the session recording playlist to be updated. It is used to specify the exact playlist within the . Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.EditSessionPlaylist


Partially update a session recording playlist.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • project_identifier (string, optional) The unique identifier of the . Obtain it by calling /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • playlist_short_id (string, optional) The short ID of the session recording playlist to modify. Required for identifying the playlist. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RemoveSessionRecordingPlaylist


Soft delete a session recording playlist in a .

Parameters

  • project_identifier (string, required) The ID of the to access. Retrieve this by calling /api/projects/.
  • session_recording_playlist_short_id (string, required) A unique short identifier for the session recording playlist to be deleted.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveRecordingPlaylistViews


Retrieve and log views of session recording playlists.

Parameters

  • project_id (string, required) ID to access specific recording playlists. Use /api/projects/ to find the ID.
  • recording_short_id (string, required) The short identifier of the recording playlist to retrieve views for. Required for accessing specific recordings.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.AddSessionRecordingToPlaylist


Add a session recording to a specified playlist.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • project_id (string, optional) ID to access the specific project. Retrieve by calling /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • session_recording_identifier (string, optional) The unique ID of the session recording to be added to the playlist. This ID identifies the specific recording you want to track or log in the given playlist. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • session_recording_short_id (string, optional) The unique short identifier of the session recording to add to the playlist within the specified . Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.DeleteSessionRecording2


Delete a session recording from a playlist in a .

Parameters

  • project_id (string, required) The ID of the you want to access. Obtainable via /api/projects/.
  • session_recording_id (string, required) The unique identifier for the session recording to be deleted.
  • session_recording_short_id (string, required) The unique short ID of the session recording to delete from the playlist.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.FetchSessionRecordings


Retrieve session recordings for a specific .

Parameters

  • project_id (string, required) The unique identifier of the for which to retrieve session recordings. Obtainable via the /api/projects/ endpoint.
  • results_per_page (integer, optional) Number of session recordings to return per page. This controls the pagination size.
  • start_index_for_results (integer, optional) The initial index from which to start returning the results.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.FetchSessionRecording


Retrieve details of a specific session recording.

Parameters

  • project_id (string, required) The ID of the to access. Find the project ID with /api/projects/.
  • session_recording_id (string, required) A UUID string that uniquely identifies the session recording to retrieve.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateSessionRecording2


Update session recording details for a specific .

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • session_recording_id (string, optional) A UUID string identifying the session recording to update. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_identifier (string, optional) The ID of the to access. To find this ID, use the /api/projects/ endpoint. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.EditSessionRecording


Update specific details of a session recording.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • session_recording_id (string, optional) A UUID string used to uniquely identify the session recording to be updated. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_id (string, optional) The ID of the to access. Retrieve it via /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.DestroySessionRecording


Delete a specific session recording from a .

Parameters

  • project_id (string, required) The ID of the containing the session recording to delete. Retrieve using /api/projects/.
  • session_recording_id (string, required) A UUID string identifying this session recording for deletion.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)


Obtain sharing links for a Datadog session recording.

Parameters

  • project_id (string, required) The ID of the to access session recordings. Retrieve via /api/projects/.
  • session_recording_id (string, required) The unique ID of the session recording for which you want to obtain sharing links. This ID is required to specify the exact recording within the .

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CreateRecordingSharePassword


Create a new password for sharing configuration of a recording.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • project_id (string, optional) The ID of the to access. Use the /api/projects/ endpoint to find the project ID. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • recording_id (string, optional) Unique identifier of the recording for which the sharing password is being created. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RemoveSharingPassword


Delete a sharing configuration password from a session recording.

Parameters

  • password_identifier (string, required) The unique identifier for the password to be removed from the sharing configuration.
  • project_identifier (string, required) The unique ID of the for accessing its session recordings. Retrieve this by calling /api/projects/.
  • session_recording_id (string, required) The ID of the session recording from which the password will be deleted.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateSessionRecordingSharing


Refresh session recording sharing status.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • project_id (string, optional) The unique string identifier for the you want to access. Obtainable via the /api/projects/ endpoint. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • session_recording_id (string, optional) The unique ID of the session recording to update the sharing status for. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveSessionPropertyDefinitions


Retrieve definitions of session properties for a .

Parameters

  • project_identifier (string, required) The ID of the to access session property definitions. Obtainable via the /api/projects/ call.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveProjectSessionValues


Retrieve session values for a specific .

Parameters

  • project_id (string, required) ID to access session values. Obtain it via a call to /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.GetProjectSubscriptions


Retrieve a list of subscriptions for a specific .

Parameters

  • project_identifier (string, required) The ID of the to access subscriptions for. Use /api/projects/ to find the ID if unknown.
  • results_per_page (integer, optional) Specify the number of results to return per page for the subscription list.
  • results_start_index (integer, optional) The index position to start returning results from within the subscription list.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CreateProjectSubscription


Create a new subscription for a specified .

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • project_identifier (string, optional) The ID of the to access. Retrieve it by calling /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.GetSubscriptionInfo


Retrieve details of a specific subscription.

Parameters

  • project_id (string, required) The ID of the to access. Obtain it via a call to /api/projects/.
  • subscription_id (integer, required) A unique integer value identifying this subscription.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateSubscriptionSettings


Update subscription settings for a .

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • subscription_id (integer, optional) A unique integer identifying the subscription to update. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_id (string, optional) The ID of the to access. Retrieve it via /api/projects/ if unknown. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateSubscriptionDetails


Update details of a subscription.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • subscription_id (integer, optional) A unique integer value identifying this subscription. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_identifier (string, optional) The unique ID of the you want to access. Retrieve it via a call to /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UnsubscribeFromProjectAlerts


Set alert subscription as deleted.

Parameters

  • project_identifier (string, required) The ID of the to access. Retrieve it from the /api/projects/ endpoint.
  • subscription_id (integer, required) A unique integer identifier for the alert subscription to be marked as deleted.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.GetProjectSurveys


Retrieve a list of surveys for a given .

Parameters

  • project_id (string, required) The ID of the to access. Retrieve project ID via the /api/projects/ endpoint.
  • initial_result_index (integer, optional) The starting index for returning survey results, used for pagination.
  • results_per_page (integer, optional) Specify the number of results to return per page, as an integer.
  • search_term (string, optional) A search term to filter the list of surveys.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CreateSurvey


Create a new survey for a .

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • project_id (string, optional) The ID of the for creating a survey. Retrieve this ID via a call to /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveSurveyData


Retrieve data for a specific survey using and survey IDs.

Parameters

  • project_id (string, required) The ID of the you want to access. Retrieve it via /api/projects/ if unknown.
  • survey_uuid (string, required) A UUID string identifying the specific survey to be retrieved.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateSurveyTracking


Tracks a new view for a survey by logging access.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • survey_uuid (string, optional) A UUID string that uniquely identifies the survey to track. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_id (string, optional) The unique identifier of the to access. Retrieve this ID by making a call to /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateSurveyInfo


Update information for a specific survey.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • survey_uuid (string, optional) A UUID string identifying the survey to be updated. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_id (string, optional) The ID of the to access. Use /api/projects/ to find this ID. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.DeleteSurvey


Delete a survey from a specific .

Parameters

  • project_identifier (string, required) The unique ID of the containing the survey to delete. Obtainable via the /api/projects/ endpoint.
  • survey_uuid (string, required) A UUID string that uniquely identifies the survey to delete.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.FetchSurveyActivity


Retrieve logs of survey activity views.

Parameters

  • project_id (string, required) The ID of the you want to access. Retrieve this by calling /api/projects/.
  • survey_uuid (string, required) A UUID string uniquely identifying the survey to retrieve activity logs for.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.DuplicateSurveyToProjects


Duplicate a survey to multiple in one transaction.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • survey_uuid (string, optional) A UUID string identifying the survey to be duplicated. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • target_project_id (string, optional) The ID of the target where the survey will be duplicated. Obtain this ID via the /api/projects/ call. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.GetSurveyResponseStatistics


Get survey response statistics for a specific survey.

Parameters

  • project_identifier (string, required) The ID of the to access. Retrieve this using the /api/projects/ endpoint.
  • survey_uuid (string, required) A UUID string identifying the specific survey to retrieve statistics for.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.SummarizeSurveyResponses


Create a summary of survey responses for a .

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • survey_uuid (string, optional) A UUID string that uniquely identifies the survey for which responses are to be summarized. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_identifier (string, optional) The unique identifier string for the . Obtain it by calling the /api/projects/ endpoint. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.TrackSurveyActivity


Retrieve and log survey activity views.

Parameters

  • project_id (string, required) The ID to access and track survey activities. Find the ID using /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.GetSurveyResponseCount


Retrieve the count of survey responses for a .

Parameters

  • project_identifier (string, required) The unique identifier for the whose survey response count you want to retrieve. Use /api/projects/ to find the ID.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.GetSurveyStatistics


Retrieve aggregated response statistics for surveys.

Parameters

  • project_id (string, required) The unique identifier for the to access. Get this by calling /api/projects/.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ListProjectTasks


Retrieve tasks for a specific .

Parameters

  • project_identifier (string, required) The unique identifier of the for which to retrieve tasks. Obtain this ID via the /api/projects/ endpoint.
  • results_per_page (integer, optional) Number of task results to return per page. Use this to limit the result set size.
  • start_index (integer, optional) The zero-based index from which to begin returning task results.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CreateProjectTask


Create a new task within a specified .

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • project_identifier (string, optional) The ID of the to access for task creation. Retrieve the ID using a call to /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.GetProjectTaskDetails


Retrieve details of a specific task within a .

Parameters

  • project_identifier (string, required) The unique ID of the to access task details. Use /api/projects/ to find available project IDs.
  • task_id (string, required) A UUID string identifying the specific task within the .

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateProjectTask


Update task details within a .

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • task_uuid (string, optional) A UUID string identifying the task to update. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_identifier (string, optional) The ID of the being accessed. Use /api/projects/ to find project IDs. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateTaskInProject


Update a specific task within a .

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • task_uuid (string, optional) A UUID string that uniquely identifies the specific task to be updated. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_identifier (string, optional) The unique ID of the to access for task updates. Retrieve this using the /api/projects/ endpoint. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.DeleteProjectTask


Delete a specific task within a .

Parameters

  • project_identifier (string, required) ID of the target project. Obtain this by calling /api/projects/.
  • task_uuid (string, required) A UUID string identifying the specific task to delete within a .

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.InitiateTaskWorkflow


Initiate the workflow for a specific task stage.

Parameters

  • project_identifier (string, required) The ID of the to access. Retrieve this by calling /api/projects/.
  • task_uuid (string, required) A UUID string used to uniquely identify the task to be initiated.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateTaskPosition


Update the position of a task within its current stage.

Parameters

  • project_identifier (string, required) The ID of the for accessing or modifying tasks. Obtainable via a call to /api/projects/.
  • task_identifier (string, required) A UUID string specifying the task to be updated.
  • new_task_position (integer, optional) The new integer position for the task within its current stage.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ListTaskRuns


Retrieve a list of task run executions for a specific task.

Parameters

  • project_id (string, required) The ID of the you want to access. Obtain it via a call to /api/projects/.
  • task_identifier (string, required) The unique ID of the task for which you want to list the run executions. Ensures retrieval of all run data related to this specific task.
  • results_per_page (integer, optional) Specify the number of results to return per page. This is useful for paginating large datasets.
  • starting_index_for_results (integer, optional) The starting index for returning results in a paginated list of task runs.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CreateTaskRun


Create and manage execution of a specific task by ID.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • project_id (string, optional) The ID of the to access. Use /api/projects/ to retrieve project IDs. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • task_id (string, optional) The identifier for the specific task to run within the . Ensure it matches the correct task you intend to execute. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.GetTaskRunDetails


Retrieve details of a specific task run execution.

Parameters

  • project_identifier (string, required) The unique identifier for the you want to access. Obtain it via a call to /api/projects/.
  • task_identifier (string, required) A UUID string identifying the specific task run execution.
  • task_run_id (string, required) A UUID string to identify the specific task run execution.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateTaskRunStatus


Update the status of a specific task run.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • task_run_id (string, optional) A UUID string identifying the specific task run to be updated. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_identifier (string, optional) The ID of the to access. Retrieve via /api/projects/ if unknown. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • task_run_task_identifier (string, optional) The unique task ID for identifying the specific task run to update. This ID is associated with the task execution. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.AppendTaskRunLogs


Append log entries to a specific task run log array.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • task_run_uuid (string, optional) A UUID string to identify the specific task run for log appending. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_identifier (string, optional) ID of the to access. Retrieve it by calling /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • task_run_task_id (string, optional) A string representing the task ID for the task run. This identifies which task the logs are associated with. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateTaskRunOutput


Update the output field for a specific task run.

Parameters

  • project_identifier (string, required) The unique ID required to access and update the specific task run details within a project. Obtainable via the /api/projects/ endpoint.
  • task_identifier (string, required) A string representing the unique identifier for a particular task run being accessed.
  • task_run_id (string, required) A UUID string that uniquely identifies the task run to update.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.GetSavedQueriesList


Retrieve saved warehouse queries for a specific .

Parameters

  • project_id (string, required) The ID of the you want to access. Retrieve this ID by calling /api/projects/.
  • current_page_number (integer, optional) Indicates the page number for retrieving paginated results of saved warehouse queries.
  • search_term (string, optional) A search term to filter the saved warehouse queries.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.AddWarehouseSavedQuery


Create a warehouse saved query for data management.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • project_id_for_access (string, optional) The ID of the to access. Obtainable by calling /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveWarehouseSavedQuery


Retrieve details of a specific warehouse saved query.

Parameters

  • project_id (string, required) ID to access the specific project. Retrieve it via /api/projects/.
  • query_uuid (string, required) A UUID string identifying the specific data warehouse saved query to retrieve.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.EditWarehouseSavedQuery


Update a specific warehouse saved query.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • saved_query_id (string, optional) A UUID string identifying the specific data warehouse saved query to update. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_identifier (string, optional) The unique ID of the to access. Retrieve this ID via /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ModifyWarehouseQuery


Partially update a warehouse saved query in a .

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • query_identifier (string, optional) A UUID string that identifies the specific warehouse saved query to be partially updated. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_id (string, optional) ID for the warehouse saved query. Obtain it via /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.DeleteWarehouseSavedQuery


Deletes a specified warehouse saved query.

Parameters

  • project_id_to_access (string, required) Provide the ID for the warehouse project. Obtain the ID by calling /api/projects/.
  • saved_query_uuid (string, required) A UUID string that uniquely identifies the data warehouse saved query to be deleted.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveSavedQueryActivity


Retrieve activity details of a saved warehouse query.

Parameters

  • project_identifier (string, required) The identifier for the you want to access. Retrieve it via /api/projects/.
  • saved_query_id (string, required) The UUID of the data warehouse saved query to retrieve activity details for.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.GetAncestorsOfSavedQuery


Retrieve ancestors of a saved query in Datadog.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • data_warehouse_query_uuid (string, optional) A UUID identifying the specific data warehouse saved query to retrieve ancestors for. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_id (string, optional) ID to access. Retrieve the ID using the /api/projects/ endpoint if needed. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CancelRunningSavedQuery


Cancel a running saved query workflow in progress.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • saved_query_uuid (string, optional) A UUID string that identifies the saved data warehouse query to cancel. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_identifier (string, optional) ID to access the specific project. Obtainable via a call to /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.GetQueryDescendants


Retrieve descendants of a saved query.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • query_id (string, optional) A UUID string identifying the data warehouse saved query to retrieve descendants for. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_id (string, optional) The ID of the to access. Retrieve it by calling the /api/projects/ endpoint. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UndoMaterialization


Revert back to the original view by undoing materialization.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • saved_query_uuid (string, optional) A UUID string identifying the specific data warehouse saved query to be reverted. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_identifier (string, optional) Provide the ID for accessing the specific project. Obtainable via a call to /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ExecuteSavedQuery


Executes a saved query in Datadog’s warehouse.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • query_uuid (string, optional) The UUID string identifying the specific data warehouse saved query to execute. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_identifier (string, optional) The ID of the you want to access. Retrieve it by calling /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.WarehouseTablesOverview


Retrieve a list of warehouse tables for a specific .

Parameters

  • project_identifier (string, required) The unique identifier of the whose warehouse tables you wish to access. Use the project ID obtained via a call to /api/projects/.
  • results_per_page (integer, optional) Specifies the number of results to return per page when listing warehouse tables.
  • results_start_index (integer, optional) The initial index from which the results should start. Useful for pagination.
  • search_term (string, optional) A term to filter the list of warehouse tables by matching names or descriptions.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.AddWarehouseTable


Create a new warehouse table in a specified .

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • project_identifier (string, optional) The ID of the to access. Retrieve it by calling /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.GetWarehouseTable


Retrieve details of a specific warehouse table.

Parameters

  • project_identifier (string, required) The ID of the to retrieve the warehouse table from. Obtainable by calling /api/projects/.
  • warehouse_table_id (string, required) A UUID string identifying the data warehouse table to be retrieved.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.EditWarehouseTable


Updates information for a specific warehouse table.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • warehouse_table_id (string, optional) A UUID string identifying the data warehouse table to be updated. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_id (string, optional) The ID of the you want to access. Obtainable via a call to /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateWarehouseTable2


Partially update a warehouse table entry.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • warehouse_table_id (string, optional) A UUID string identifying the data warehouse table to be updated. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_identifier (string, optional) ID of the project you’re trying to access. Use the /api/projects/ endpoint to find the correct ID. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RemoveWarehouseTable


Delete a specified warehouse table from a .

Parameters

  • project_identifier (string, required) The ID of the to access. Use /api/projects/ to find this ID.
  • warehouse_table_uuid (string, required) A UUID string identifying the data warehouse table to be deleted.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateTableSchema


Refresh the schema of a specific warehouse table.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • warehouse_table_uuid (string, optional) A UUID string identifying the warehouse table to refresh the schema for. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_id (string, optional) String representing the ID for accessing a specific project. Retrieve this by calling /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ModifyTableSchema


Update the schema of a warehouse table.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • table_id (string, optional) A UUID string to identify the data warehouse table for schema modification. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • project_identifier (string, optional) The unique ID for accessing the desired project. To obtain this ID, call /api/projects/. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.WarehouseTableFileOperations


Create a new warehouse table from a file.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • project_id_for_access (string, optional) Specify the ID to access the desired project. Use /api/projects/ to find available IDs. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.FetchWebAnalyticsBreakdown


Retrieve breakdown of web analytics by property.

Parameters

  • breakdown_property (string, required) Specify the property to break down web analytics by, such as Browser, DeviceType, Country, etc.
  • end_date (string, required) The end date for retrieving web analytics data, formatted as YYYY-MM-DD.
  • project_id_for_access (string, required) ID to access specific analytics data. Obtainable via a call to /api/projects/.
  • start_date (string, required) Start date for the query in the format YYYY-MM-DD.
  • apply_url_path_cleaning (boolean, optional) Set to true to apply URL path cleaning.
  • filter_by_host (string, optional) Specify the domain to filter the results by, such as ‘example.com’.
  • filter_test_accounts (boolean, optional) Set to true to filter out test from the results.
  • results_limit (integer, optional) Specify the maximum number of results to return from the query.
  • results_offset (integer, optional) Number of results to skip for paginated data retrieval.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.GetWebAnalyticsOverview


Retrieve an overview of web analytics data for a .

Parameters

  • end_date_query (string, required) End date for the query in the format YYYY-MM-DD.
  • project_id (string, required) The unique identifier for the you want to access web analytics data for. Obtain this by calling /api/projects/.
  • start_date (string, required) Start date for the query in YYYY-MM-DD format. Determines the beginning of the analytics data range.
  • filter_test_accounts (boolean, optional) Set to true to filter out test from the analytics data.
  • host_filter (string, optional) Specify the host to filter web analytics data by (e.g., example.com).

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ListWebExperiments


Retrieve a list of web experiments for a given .

Parameters

  • project_id (string, required) The ID of the to access web experiments. Retrieve this ID via the /api/projects/ endpoint.
  • results_per_page (integer, optional) Specifies the number of results to return per page when retrieving web experiments.
  • start_index_for_results (integer, optional) The initial index from which to return the experiment results.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CreateWebExperiment


Create a web experiment for a .

Parameters

  • experiment_id (integer, required) Unique integer ID for the web experiment. Required for identifying the experiment within the .
  • experiment_name (string, required) The name for the web experiment you want to create in Datadog.
  • feature_flag_key (string, required) Unique identifier for the feature flag associated with the web experiment.
  • project_id (string, required) ID of the for the web experiment. Obtain it via /api/projects/.
  • web_experiment_variants (string, required) JSON string defining the variants for the web experiment, including transforms, conditions, and rollout percentages.
  • experiment_creation_date (string, optional) The timestamp when the web experiment was created, in ISO 8601 format.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveWebExperiment


Retrieve details of a specific web experiment.

Parameters

  • project_id (string, required) The ID of the you want to access. Call /api/projects/ to retrieve the ID.
  • web_experiment_id (integer, required) A unique integer identifying the web experiment to retrieve details for.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateWebExperiment


Update web experiment details within a .

Parameters

  • experiment_id (integer, required) The ID of the web experiment to update. Must be an integer.
  • experiment_name (string, required) Specify the name of the web experiment to update. This is used to identify the experiment for modification within the .
  • feature_flag_key (string, required) Unique identifier for the feature flag associated with the web experiment.
  • project_id (string, required) The ID of the to access. Retrieve this ID via the /api/projects/ endpoint.
  • web_experiment_id (integer, required) A unique integer identifying this web experiment to be updated.
  • web_experiment_variants (string, required) JSON string specifying variants for the web experiment. Include control, transforms, conditions, and rollout_percentage.
  • creation_timestamp (string, optional) Timestamp indicating when the web experiment was created. It should be in ISO 8601 format.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateWebExperimentStatus


Update the status of a web experiment.

Parameters

  • project_id_for_access (string, required) ID to access the specific project. Obtain it via /api/projects/.
  • creation_timestamp (string, optional) The timestamp when the web experiment was created. Must be in ISO 8601 format (e.g., ‘2023-10-05T14:48:00.000Z’).
  • experiment_identifier (integer, optional) The unique identifier for the web experiment that needs to be updated.
  • experiment_name (string, optional) The name of the web experiment to be updated. This should be a descriptive string identifying the specific experiment within the .
  • feature_flag_key (string, optional) A string representing the feature flag key associated with the web experiment. It uniquely identifies the feature toggle you want to update.
  • web_experiment_id (integer, optional) A unique integer identifying the web experiment.
  • web_experiment_variants (string, optional) JSON string defining the variants for the web experiment. Include text, HTML, selector, conditions, and rollout percentage for each variant. Example: { "control": { "transforms": [ { "text": "Here comes Superman!", "html": "", "selector": "#page > #body > .header h1" } ], "conditions": "None", "rollout_percentage": 50 } }

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.DeleteWebExperiment


Delete a web experiment from a specific .

Parameters

  • project_identifier (string, required) The ID of the from which you want to delete the web experiment. Obtainable via the /api/projects/ call.
  • web_experiment_id (integer, required) Unique integer identifying the web experiment to delete.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ListUsers


Retrieve a list of from Datadog.

Parameters

  • filter_staff_only (boolean, optional) Set to true to list only staff members; set to false to include all .
  • results_per_page (integer, optional) Specify the number of results to return per page when listing .
  • start_index (integer, optional) The index to start retrieving results from. Useful for pagination of results.
  • user_email (string, optional) Filter by email. Use a full or partial email address to narrow results.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveUserInformation


Retrieve detailed information about a specific .

Parameters

  • user_unique_identifier (string, required) The unique identifier for a specific in Datadog. This should be a string value.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateUserDetails


Update details in the database.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • user_uuid (string, optional) The unique identifier (UUID) of the to be updated. Required for identifying the specific user record. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateUserInfo


Partially update a ’s information in Datadog.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • user_uuid (string, optional) The unique identifier for the to be updated. This is required to specify which user’s information should be modified. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.DeleteUserAccount


Deletes a user from the system.

Parameters

  • user_uuid (string, required) The UUID of the user to be deleted.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveUserHedgehogConfig


Retrieve a ’s hedgehog configuration details.

Parameters

  • user_uuid (string, required) The unique UUID of the whose hedgehog configuration details are to be retrieved.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.UpdateUserHedgehogConfig


Update a ’s hedgehog configuration settings in Datadog.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • user_uuid (string, optional) A unique identifier for the whose hedgehog configuration is to be updated. It is a string value that must be provided to target the correct user. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CreateUserScenePersonalization


Create personalized scene settings for a .

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • user_uuid (string, optional) The unique identifier for the whose scene you want to personalize. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.InitiateUser2faSetup


Initiate two-factor authentication setup for a .

Parameters

  • user_uuid (string, required) A unique identifier for the to initiate 2FA setup.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.GenerateBackupCodes


Generate new backup codes for two-factor authentication.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • user_uuid (string, optional) A unique identifier for the to generate new backup codes. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.DisableUser2fa


Disable two-factor authentication for a .

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • user_unique_identifier (string, optional) The unique identifier of the whose 2FA is to be disabled. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RetrieveUser2faSetupStatus


Retrieve a ’s two-factor authentication setup status.

Parameters

  • user_identifier (string, required) A unique identifier for the whose two-factor authentication setup status is being retrieved. This is typically a UUID string.

PosthogApi.Retrieve2faStatus


Retrieve current 2FA status and backup codes if enabled.

Parameters

  • user_identifier_uuid (string, required) A unique identifier for the to retrieve the 2FA status. Typically a string of alphanumeric characters.

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ValidateTwoFactorAuthentication


Validate a ’s two-factor authentication code.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • user_identifier (string, optional) The unique identifier for the whose two-factor authentication is being validated. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.ValidateUser2fa


Validate a ’s two-factor authentication status.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • user_uuid (string, optional) The unique identifier for the whose 2FA status needs to be validated. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’.
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.CancelEmailChangeRequest


Cancel a pending email change request.

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.RequestEmailVerification


Request an email verification for a .

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

PosthogApi.VerifyUserEmail


Initiates the email verification process for a .

Parameters

  • mode (Enum ToolMode, required) Operation mode: ‘get_request_schema’ returns the OpenAPI spec for the request body, ‘execute’ performs the actual operation
  • request_body (string, optional) Stringified JSON representing the request body. Required when mode is ‘execute’, ignored when mode is ‘get_request_schema’

Secrets

This requires the following secrets: POSTHOG_SERVER_URL, POSTHOG_PERSONAL_API_KEY (learn how to configure secrets)

Reference

Below is a reference of enumerations used by some of the tools in the PosthogApi Server:

ToolMode

  • GET_REQUEST_SCHEMA: get_request_schema
  • EXECUTE: execute
Last updated on