provider activity_logsadvanced_activity_logs GET /api/organizations/{organization_id}/advanced_activity_logs/
@utdk/posthog /api/organizations/{organization_id}/advanced_activity_logs/
org_organizations_advanced_activity_logs_list
Organization-wide view of activity logs across every project in the organization. Mounted at /api/organizations/<organization_id>/advanced_activity_logs/. Restricted to organization admins and owners.
activities query
Filter by activity types (e.g. "created", "updated", "deleted").
array
clients query
Filter by API clients that generated the activity (from x-posthog-client header).
array
detail_filters query
JSON-encoded map of `detail` field paths to {operation, value} filters. Allowed operations: exact, contains, in.
string
end_date query
Upper bound on `created_at` (inclusive), ISO-8601.
string
hogql_filter query
Reserved for future HogQL-based filtering.
string
ip_addresses query
Filter by client IP addresses. Accepts exact IPv4/IPv6 values or wildcard patterns using `*` (e.g. `203.0.113.*`). Multiple entries are OR-combined.
array
is_system query
When set, filters rows authored by the system (no user).
booleannull
item_ids query
Filter by the `item_id` of the affected resource(s).
array
organization_id path required
ID of the organization you're trying to access. To find the ID of the organization, make a call to /api/organizations/.
string
page query
Page number for pagination. When provided, uses page-based pagination ordered by most recent first.
integer
page_size query
Number of results per page (default: 100, max: 1000). Only used with page-based pagination.
integer
scopes query
Filter by activity scopes (e.g. "FeatureFlag", "Insight").
array
search_text query
Free-text search across the `detail` JSON column.
string
start_date query
Lower bound on `created_at` (inclusive), ISO-8601.
string
team_ids query
Filter by project (team) IDs. Only honored on the organization-scoped endpoint; ignored on the project-scoped endpoint.
array
users query
Filter by users who performed the activity (user UUIDs).
array
was_impersonated query
When set, filters rows where the actor was impersonating another user.
booleannull

Try it

Authentication
Configure credentials for PostHog API
orgOrganizationsAdvancedActivityLogsList
GET/api/organizations/{organization_id}/advanced_activity_logs/
Organization-wide view of activity logs across every project in the organization. Mounted at /api/organizations/<organization_id>/advanced_activity_logs/. Restricted to organization admins and owners.

Parameters

required

ID of the organization you're trying to access. To find the ID of the organization, make a call to /api/organizations/.

Filter by activity types (e.g. "created", "updated", "deleted").

Filter by API clients that generated the activity (from x-posthog-client header).

JSON-encoded map of `detail` field paths to {operation, value} filters. Allowed operations: exact, contains, in.

Upper bound on `created_at` (inclusive), ISO-8601.

Reserved for future HogQL-based filtering.

Filter by client IP addresses. Accepts exact IPv4/IPv6 values or wildcard patterns using `*` (e.g. `203.0.113.*`). Multiple entries are OR-combined.

When set, filters rows authored by the system (no user).

Filter by the `item_id` of the affected resource(s).

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

Number of results per page (default: 100, max: 1000). Only used with page-based pagination.

Filter by activity scopes (e.g. "FeatureFlag", "Insight").

Free-text search across the `detail` JSON column.

Lower bound on `created_at` (inclusive), ISO-8601.

Filter by project (team) IDs. Only honored on the organization-scoped endpoint; ignored on the project-scoped endpoint.

Filter by users who performed the activity (user UUIDs).

When set, filters rows where the actor was impersonating another user.

Configure credentials above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import posthog from '@utdk/posthog';

await posthog.orgOrganizationsAdvancedActivityLogsList({
  "page_size": 100
})