Organizations-4
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
PATCH | |
GET | |
POST | |
DELETE | |
GET | |
GET | |
POST | |
GET | |
PATCH | |
DELETE | |
GET | |
POST | |
GET | |
DELETE | |
GET |
Update organizations projects rotate secret token
Projects for the current organization.
Path parameters
- idinteger
Request parameters
- namestring
- product_descriptionstringnull
- app_urlsarray
- anonymize_ipsboolean
- completed_snippet_onboardingboolean
- test_account_filters
- test_account_filters_default_checkedbooleannull
- path_cleaning_filters
- is_demoboolean
- timezone
- data_attributes
- person_display_name_propertiesarraynull
- correlation_config
- autocapture_opt_outbooleannull
- autocapture_exceptions_opt_inbooleannull
- autocapture_web_vitals_opt_inbooleannull
- autocapture_web_vitals_allowed_metrics
- autocapture_exceptions_errors_to_ignore
- capture_console_log_opt_inbooleannull
- capture_performance_opt_inbooleannull
- session_recording_opt_inboolean
- session_recording_sample_ratestringnull
- session_recording_minimum_duration_millisecondsintegernull
- session_recording_linked_flag
- session_recording_network_payload_capture_config
- session_recording_masking_config
- session_recording_url_trigger_configarraynull
- session_recording_url_blocklist_configarraynull
- session_recording_event_trigger_configarraynull
- session_recording_trigger_match_type_configstringnull
- session_recording_trigger_groups
- session_recording_retention_period
- session_replay_config
- survey_config
- access_controlboolean
- week_start_day
- primary_dashboardintegernull
- live_events_columnsarraynull
- recording_domainsarraynull
- inject_web_appsbooleannull
- extra_settings
- modifiers
- has_completed_onboarding_for
- surveys_opt_inbooleannull
- heatmaps_opt_inbooleannull
- flags_persistence_defaultbooleannull
- receive_org_level_activity_logsbooleannull
- business_model
- conversations_enabledbooleannull
- conversations_settings
- logs_settings
- proactive_tasks_enabledbooleannull
Response
Example request
PATCH /api /organizations /:organization_id /projects /:id /rotate_secret_tokenExample response
Status 200
RESPONSE
List all role external references
Required API key scopes
organization:readQuery parameters
- limitinteger
- offsetinteger
Response
Example request
GET /api /organizations /:organization_id /role_external_referencesExample response
Status 200
RESPONSE
Create role external references
Required API key scopes
organization:writeRequest parameters
- providerstring
- provider_organization_idstring
- provider_role_idstring
- provider_role_slugstringnull
- provider_role_namestring
- rolestring
Response
Example request
POST /api /organizations /:organization_id /role_external_referencesExample response
Status 201
RESPONSE
Delete role external references
Required API key scopes
organization:writePath parameters
- idstring
Example request
DELETE /api /organizations /:organization_id /role_external_references /:idExample response
Status 204 No response body
Retrieve role external references lookup
Query parameters
- providerstring
- provider_organization_idstring
- provider_role_idstring
- provider_role_slugstring
Response
Example request
GET /api /organizations /:organization_id /role_external_references /lookupExample 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