Advanced Activity
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
GET | |
GET | |
POST | |
GET | |
GET | |
POST |
List all org organizations 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.
Required API key scopes
activity_log:readQuery parameters
- activitiesarrayDefault:
- clientsarrayDefault:
- detail_filtersstring
- end_datestring
- followbooleanDefault:
false - hogql_filterstring
- include_valuesbooleanDefault:
false - ip_addressesarrayDefault:
- is_systembooleannull
- item_idsarrayDefault:
- orderingstringDefault:
-created_atOne of:"-created_at""created_at" - pageinteger
- page_sizeintegerDefault:
100 - schemastringOne of:
"ocsf" - scopesarrayDefault:
- search_textstring
- start_datestring
- team_idsarrayDefault:
- usersarrayDefault:
- was_impersonatedbooleannull
Response
Example request
GET /api /organizations /:organization_id /advanced_activity_logsExample response
Status 200
RESPONSE
Retrieve org organizations advanced activity logs available filters
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.
Required API key scopes
activity_log:readResponse
Example request
GET /api /organizations /:organization_id /advanced_activity_logs /available_filtersExample response
Status 200
RESPONSE
Create org organizations advanced activity logs export
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 parameters
- user
- team_idintegernull
- organization_idstringnull
- was_impersonatedbooleannull
- is_systembooleannull
- clientstringnull
- ip_addressstringnull
- activitystring
- item_idstringnull
- scopestring
- detail
- created_atstring
Response
Example request
POST /api /organizations /:organization_id /advanced_activity_logs /exportExample response
Status 200
RESPONSE
List all advanced activity logs
Also available via the PostHog MCP server:
advanced-activity-logs-list— List activity in the project.
Required API key scopes
activity_log:readQuery parameters
- activitiesarrayDefault:
- clientsarrayDefault:
- detail_filtersstring
- end_datestring
- followbooleanDefault:
false - hogql_filterstring
- include_valuesbooleanDefault:
false - ip_addressesarrayDefault:
- is_systembooleannull
- item_idsarrayDefault:
- orderingstringDefault:
-created_atOne of:"-created_at""created_at" - pageinteger
- page_sizeintegerDefault:
100 - schemastringOne of:
"ocsf" - scopesarrayDefault:
- search_textstring
- start_datestring
- team_idsarrayDefault:
- usersarrayDefault:
- was_impersonatedbooleannull
Response
Example request
GET /api /projects /:project_id /advanced_activity_logsExample response
Status 200
RESPONSE
Retrieve advanced activity logs available filters
Required API key scopes
activity_log:readResponse
Example request
GET /api /projects /:project_id /advanced_activity_logs /available_filtersExample response
Status 200
RESPONSE
Create advanced activity logs export
Request parameters
- user
- team_idintegernull
- organization_idstringnull
- was_impersonatedbooleannull
- is_systembooleannull
- clientstringnull
- ip_addressstringnull
- activitystring
- item_idstringnull
- scopestring
- detail
- created_atstring
Response
Example request
POST /api /projects /:project_id /advanced_activity_logs /exportExample response
Status 200
RESPONSE