Platform
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
GET | |
PATCH | |
DELETE | |
GET | |
GET | |
POST | |
GET | |
PATCH | |
DELETE | |
GET | |
POST | |
GET | |
DELETE | |
GET | |
GET | |
GET | |
GET | |
POST |
List all members
Required API key scopes
organization_member:readQuery parameters
- limitinteger
- offsetinteger
- orderstringOne of:
"-joined_at""joined_at" - searchstring
Response
Example request
GET /api /organizations /:organization_id /membersExample response
Status 200
RESPONSE
Update members
Required API key scopes
organization_member:writePath parameters
- user__uuidstring
Request parameters
- level
Response
Example request
PATCH /api /organizations /:organization_id /members /:user__uuidExample response
Status 200
RESPONSE
Delete members
Required API key scopes
organization_member:writePath parameters
- user__uuidstring
Example request
DELETE /api /organizations /:organization_id /members /:user__uuidExample response
Status 204 No response body
Retrieve members scoped api keys
Path parameters
- user__uuidstring
Response
Example request
GET /api /organizations /:organization_id /members /:user__uuid /scoped_api_keysExample response
Status 200
RESPONSE
List all roles
Also available via the PostHog MCP server:
roles-list— List organization roles.
Required API key scopes
organization:readQuery parameters
- limitinteger
- offsetinteger
Response
Example request
GET /api /organizations /:organization_id /rolesExample response
Status 200
RESPONSE
Create roles
Required API key scopes
organization:writeRequest parameters
- namestring
Response
Example request
POST /api /organizations /:organization_id /rolesExample response
Status 201
RESPONSE
Retrieve roles
Required API key scopes
organization:readPath parameters
- idstring
Response
Example request
GET /api /organizations /:organization_id /roles /:idExample response
Status 200
RESPONSE
Update roles
Required API key scopes
organization:writePath parameters
- idstring
Request parameters
- namestring
Response
Example request
PATCH /api /organizations /:organization_id /roles /:idExample response
Status 200
RESPONSE
Delete roles
Required API key scopes
organization:writePath parameters
- idstring
Example request
DELETE /api /organizations /:organization_id /roles /:idExample response
Status 204 No response body
List all roles role memberships
Required API key scopes
organization:readPath parameters
- role_idstring
Query parameters
- limitinteger
- offsetinteger
Response
Example request
GET /api /organizations /:organization_id /roles /:role_id /role_membershipsExample response
Status 200
RESPONSE
Create roles role memberships
Required API key scopes
organization:writePath parameters
- role_idstring
Request parameters
- user_uuidstring
Response
Example request
POST /api /organizations /:organization_id /roles /:role_id /role_membershipsExample response
Status 201
RESPONSE
Retrieve roles role memberships
Required API key scopes
organization:readPath parameters
- idstring
- role_idstring
Response
Example request
GET /api /organizations /:organization_id /roles /:role_id /role_memberships /:idExample response
Status 200
RESPONSE
Delete roles role memberships
Required API key scopes
organization:writePath parameters
- idstring
- role_idstring
Example request
DELETE /api /organizations /:organization_id /roles /:role_id /role_memberships /:idExample response
Status 204 No response body
Retrieve welcome current
Aggregated payload for the invited-user welcome screen.
Response
Example request
GET /api /organizations /:organization_id /welcome /currentExample response
Status 200
RESPONSE
Status 404 Current organization not found
List all activity log
Also available via the PostHog MCP server:
activity-log-list— List recent activity in the project.
Required API key scopes
activity_log:readQuery parameters
- item_idstring
- pageinteger
- page_sizeintegerDefault:
100 - scopestringOne of:
"Cohort""FeatureFlag""Person""Group""Insight""Plugin""PluginConfig""HogFunction""HogFlow""DataManagement""EventDefinition""PropertyDefinition""Notebook""Endpoint""EndpointVersion""Dashboard""Replay""Experiment""ExperimentHoldout""ExperimentSavedMetric""Survey""EarlyAccessFeature""SessionRecordingPlaylist""Comment""Team""Project""ErrorTrackingIssue""DataWarehouseSavedQuery""LegalDocument""Organization""OrganizationDomain""OrganizationMembership""Role""UserGroup""BatchExport""BatchImport""Integration""Annotation""Tag""TaggedItem""Subscription""PersonalAPIKey""ProjectSecretAPIKey""User""Action""AlertConfiguration""Threshold""AlertSubscription""ExternalDataSource""ExternalDataSchema""Evaluation""LLMTrace""WebAnalyticsFilterPreset""CustomerProfileConfig""Log""LogsAlertConfiguration""LogsExclusionRule""ProductTour""Ticket" - scopesarray
- userstring
Response
Example request
GET /api /projects /:project_id /activity_logExample response
Status 200
RESPONSE
List all advanced activity logs
Also available via the PostHog MCP server:
advanced-activity-logs-list— List activity logs with advanced filtering.
Required API key scopes
activity_log:readQuery parameters
- activitiesarrayDefault:
- clientsarrayDefault:
- detail_filtersstring
- end_datestring
- hogql_filterstring
- is_systembooleannull
- item_idsarrayDefault:
- pageinteger
- page_sizeintegerDefault:
100 - 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
- activitystring
- item_idstringnull
- scopestring
- detail
- created_atstring
Response
Example request
POST /api /projects /:project_id /advanced_activity_logs /exportExample response
Status 200
RESPONSE