activity_logs
activity_log

get/api/projects/{project_id}/activity_log/

Request

  • Base URL: https://us.posthog.com
  • URL: https://us.posthog.com/api/projects/{project_id}/activity_log/
  • Auth: HTTP bearer

Path parameters

project_idstring required

Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.

Query parameters

item_idstring

Filter by the ID of the affected resource.

ordering'-created_at' | 'created_at'

Sort by when the entry was created. Defaults to newest first. Use created_at for oldest first when polling for new entries, so a saved cursor picks up where the last request stopped.

  • -created_at - -created_at
  • created_at - created_at
pageinteger

Page number for pagination. When provided, uses page-based pagination ordered by most recent first.

page_sizeinteger

Number of results per page (default: 100, max: 1000).

scope'Cohort' | 'CrossProjectDashboard' | 'FeatureFlag' | 'Person' | 'Group' | 'Insight' | 'Plugin' | 'PluginConfig' | 'HogFunction' | 'HogFlow' | 'DataManagement' | 'EventDefinition' | 'PropertyDefinition' | 'Notebook' | 'GeneratedWidget' | 'Canvas' | 'Endpoint' | 'EndpointVersion' | 'Dashboard' | 'Replay' | 'Experiment' | 'ExperimentHoldout' | 'ExperimentSavedMetric' | 'Survey' | 'EarlyAccessFeature' | 'SessionRecordingPlaylist' | 'ReplayScanner' | 'VisionAlertConfiguration' | 'Comment' | 'Team' | 'Project' | 'ErrorTrackingIssue' | 'DataWarehouseExpression' | 'DataWarehouseSavedQuery' | 'LegalDocument' | 'Organization' | 'OrganizationDomain' | 'IdentityProviderConfig' | 'OrganizationMembership' | 'Role' | 'UserGroup' | 'BatchExport' | 'BatchImport' | 'ExportedAsset' | 'Integration' | 'Annotation' | 'Tag' | 'TaggedItem' | 'Subscription' | 'PersonalAPIKey' | 'ProjectSecretAPIKey' | 'OAuthApplication' | 'User' | 'Action' | 'AccountView' | 'AlertConfiguration' | 'Threshold' | 'AlertSubscription' | 'ExternalDataSource' | 'ExternalDataSchema' | 'Evaluation' | 'EvaluationDirectory' | 'LLMPrompt' | 'LLMPromptLabel' | 'LLMTrace' | 'AIGatewayCredit' | 'WebAnalyticsFilterPreset' | 'CustomerProfileConfig' | 'Log' | 'LogsAlertConfiguration' | 'LogsExclusionRule' | 'LogsRetentionRule' | 'TracesRetentionRule' | 'DashboardWidget' | 'ProductTour' | 'Ticket' | 'InstanceSetting' | 'SignalReport' | 'SignalScoutConfig' | 'SignalTeamConfig' | 'StreamlitApp' | 'Metric' | 'TableCertification' | 'DataQualityCheck' | 'DataQualityCheckSchedule' | 'WarehouseSuggestion' | 'Billing' | 'Loop' | 'StamphogRepoConfig' | 'ReviewRepository' | 'ReviewProjectSettings' | 'ReviewInstallationClaim'

Filter by a single activity scope, e.g. "FeatureFlag", "Insight", "Dashboard", "Experiment".

  • Cohort - Cohort
  • CrossProjectDashboard - CrossProjectDashboard
  • FeatureFlag - FeatureFlag
  • Person - Person
  • Group - Group
  • Insight - Insight
  • Plugin - Plugin
  • PluginConfig - PluginConfig
  • HogFunction - HogFunction
  • HogFlow - HogFlow
  • DataManagement - DataManagement
  • EventDefinition - EventDefinition
  • PropertyDefinition - PropertyDefinition
  • Notebook - Notebook
  • GeneratedWidget - GeneratedWidget
  • Canvas - Canvas
  • Endpoint - Endpoint
  • EndpointVersion - EndpointVersion
  • Dashboard - Dashboard
  • Replay - Replay
  • Experiment - Experiment
  • ExperimentHoldout - ExperimentHoldout
  • ExperimentSavedMetric - ExperimentSavedMetric
  • Survey - Survey
  • EarlyAccessFeature - EarlyAccessFeature
  • SessionRecordingPlaylist - SessionRecordingPlaylist
  • ReplayScanner - ReplayScanner
  • VisionAlertConfiguration - VisionAlertConfiguration
  • Comment - Comment
  • Team - Team
  • Project - Project
  • ErrorTrackingIssue - ErrorTrackingIssue
  • DataWarehouseExpression - DataWarehouseExpression
  • DataWarehouseSavedQuery - DataWarehouseSavedQuery
  • LegalDocument - LegalDocument
  • Organization - Organization
  • OrganizationDomain - OrganizationDomain
  • IdentityProviderConfig - IdentityProviderConfig
  • OrganizationMembership - OrganizationMembership
  • Role - Role
  • UserGroup - UserGroup
  • BatchExport - BatchExport
  • BatchImport - BatchImport
  • ExportedAsset - ExportedAsset
  • Integration - Integration
  • Annotation - Annotation
  • Tag - Tag
  • TaggedItem - TaggedItem
  • Subscription - Subscription
  • PersonalAPIKey - PersonalAPIKey
  • ProjectSecretAPIKey - ProjectSecretAPIKey
  • OAuthApplication - OAuthApplication
  • User - User
  • Action - Action
  • AccountView - AccountView
  • AlertConfiguration - AlertConfiguration
  • Threshold - Threshold
  • AlertSubscription - AlertSubscription
  • ExternalDataSource - ExternalDataSource
  • ExternalDataSchema - ExternalDataSchema
  • Evaluation - Evaluation
  • EvaluationDirectory - EvaluationDirectory
  • LLMPrompt - LLMPrompt
  • LLMPromptLabel - LLMPromptLabel
  • LLMTrace - LLMTrace
  • AIGatewayCredit - AIGatewayCredit
  • WebAnalyticsFilterPreset - WebAnalyticsFilterPreset
  • CustomerProfileConfig - CustomerProfileConfig
  • Log - Log
  • LogsAlertConfiguration - LogsAlertConfiguration
  • LogsExclusionRule - LogsExclusionRule
  • LogsRetentionRule - LogsRetentionRule
  • TracesRetentionRule - TracesRetentionRule
  • DashboardWidget - DashboardWidget
  • ProductTour - ProductTour
  • Ticket - Ticket
  • InstanceSetting - InstanceSetting
  • SignalReport - SignalReport
  • SignalScoutConfig - SignalScoutConfig
  • SignalTeamConfig - SignalTeamConfig
  • StreamlitApp - StreamlitApp
  • Metric - Metric
  • TableCertification - TableCertification
  • DataQualityCheck - DataQualityCheck
  • DataQualityCheckSchedule - DataQualityCheckSchedule
  • WarehouseSuggestion - WarehouseSuggestion
  • Billing - Billing
  • Loop - Loop
  • StamphogRepoConfig - StamphogRepoConfig
  • ReviewRepository - ReviewRepository
  • ReviewProjectSettings - ReviewProjectSettings
  • ReviewInstallationClaim - ReviewInstallationClaim
scopesstring[]

Filter by multiple activity scopes, comma-separated. Values must be valid ActivityScope enum values. E.g. "FeatureFlag,Insight".

userstring uuid

Filter by user UUID who performed the action.

Response

nextstring uri nullable
previousstring uri nullable
countinteger

Example response

{
  "next": "http://api.example.org/accounts/?cursor=cD00ODY%3D\"",
  "previous": "http://api.example.org/accounts/?cursor=cj0xJnA9NDg3",
  "count": 123
}

Changes

No recorded changes to this operation across all 1 revision of this API.