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.
Request
- Base URL: https://us.posthog.com
- URL: https://us.posthog.com/api/organizations/{organization_id}/advanced_activity_logs/
- Auth: HTTP bearer
Path parameters
ID of the organization you're trying to access. To find the ID of the organization, make a call to /api/organizations/.
Query parameters
Filter by activity types (e.g. "created", "updated", "deleted").
Filter by API clients that generated the activity (the x-posthog-client header, or 'scout:<skill_name>' for a scout run).
JSON-encoded map of detail field paths to {operation, value} filters. Allowed operations: exact, contains, in.
Upper bound on created_at (inclusive), ISO-8601.
Keep the next link valid after the last entry, so the same cursor can be re-polled as new entries arrive. Only applies with oldest-first ordering. When following, stop on an empty results list rather than on a null next link.
Reserved for future HogQL-based filtering.
Include the previous and new values of changed fields. Only applies when schema is ocsf. Values can contain the content of the changed object, which makes responses larger and sends that content to your security tool.
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).
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
Page number for pagination. When provided, uses page-based pagination ordered by most recent first.
Number of results per page (default: 100, max: 1000).
Response format. Set to ocsf to return Open Cybersecurity Schema Framework events for ingestion into a security tool. Omit for the default PostHog format.
- ocsf - ocsf
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.
Response
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.