Environments-30
For instructions on how to authenticate to use this endpoint, see API overview.
Projects for the current organization.
Endpoints
DELETE | |
GET | |
PATCH | |
PATCH | |
PATCH | |
GET | |
GET | |
PATCH | |
PATCH |
Delete environments
Required API key scopes
project:write
Path parameters
- idinteger
A unique integer value identifying this environment (aka team).
- project_idstring
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
Example request
DELETE
/api /projects /:project_id /environments /:id
Example response
Status 204 No response body
Retrieve environments activity
Path parameters
- idinteger
A unique integer value identifying this environment (aka team).
- project_idstring
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
Example request
GET
/api /projects /:project_id /environments /:id /activity
Example response
Status 200 No response body
Update environments add product intent
Required API key scopes
project:read
Path parameters
- idinteger
A unique integer value identifying this environment (aka team).
- project_idstring
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
Request parameters
- namestring
- access_controlboolean
- app_urlsarray
- slack_incoming_webhookstring
- anonymize_ipsboolean
- completed_snippet_onboardingboolean
- test_account_filters
- test_account_filters_default_checkedboolean
- path_cleaning_filters
- is_demoboolean
- timezone
- data_attributes
- person_display_name_propertiesarray
- correlation_config
- autocapture_opt_outboolean
- autocapture_exceptions_opt_inboolean
- autocapture_web_vitals_opt_inboolean
- autocapture_web_vitals_allowed_metrics
- autocapture_exceptions_errors_to_ignore
- capture_console_log_opt_inboolean
- capture_performance_opt_inboolean
- session_recording_opt_inboolean
- session_recording_sample_ratestring
- session_recording_minimum_duration_millisecondsinteger
- session_recording_linked_flag
- session_recording_network_payload_capture_config
- session_recording_masking_config
- session_recording_url_trigger_configarray
- session_recording_url_blocklist_configarray
- session_recording_event_trigger_configarray
- session_recording_trigger_match_type_configstring
- session_recording_retention_period
- session_replay_config
- survey_config
- week_start_day
- primary_dashboardinteger
- live_events_columnsarray
- recording_domainsarray
- cookieless_server_hash_mode
- human_friendly_comparison_periodsboolean
- inject_web_appsboolean
- extra_settings
- modifiers
- has_completed_onboarding_for
- surveys_opt_inboolean
- heatmaps_opt_inboolean
- flags_persistence_defaultboolean
- feature_flag_confirmation_enabledboolean
- feature_flag_confirmation_messagestring
- capture_dead_clicksboolean
- default_data_themeinteger
- revenue_analytics_config
- marketing_analytics_config
- onboarding_tasks
- base_currencyDefault:
USD
- web_analytics_pre_aggregated_tables_enabledboolean
- experiment_recalculation_timestring
Time of day (UTC) when experiment metrics should be recalculated. If not set, uses the default recalculation time.
Example request
PATCH
/api /projects /:project_id /environments /:id /add_product_intent
Example response
Status 200 No response body
Update environments complete product onboarding
Required API key scopes
project:read
Path parameters
- idinteger
A unique integer value identifying this environment (aka team).
- project_idstring
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
Request parameters
- namestring
- access_controlboolean
- app_urlsarray
- slack_incoming_webhookstring
- anonymize_ipsboolean
- completed_snippet_onboardingboolean
- test_account_filters
- test_account_filters_default_checkedboolean
- path_cleaning_filters
- is_demoboolean
- timezone
- data_attributes
- person_display_name_propertiesarray
- correlation_config
- autocapture_opt_outboolean
- autocapture_exceptions_opt_inboolean
- autocapture_web_vitals_opt_inboolean
- autocapture_web_vitals_allowed_metrics
- autocapture_exceptions_errors_to_ignore
- capture_console_log_opt_inboolean
- capture_performance_opt_inboolean
- session_recording_opt_inboolean
- session_recording_sample_ratestring
- session_recording_minimum_duration_millisecondsinteger
- session_recording_linked_flag
- session_recording_network_payload_capture_config
- session_recording_masking_config
- session_recording_url_trigger_configarray
- session_recording_url_blocklist_configarray
- session_recording_event_trigger_configarray
- session_recording_trigger_match_type_configstring
- session_recording_retention_period
- session_replay_config
- survey_config
- week_start_day
- primary_dashboardinteger
- live_events_columnsarray
- recording_domainsarray
- cookieless_server_hash_mode
- human_friendly_comparison_periodsboolean
- inject_web_appsboolean
- extra_settings
- modifiers
- has_completed_onboarding_for
- surveys_opt_inboolean
- heatmaps_opt_inboolean
- flags_persistence_defaultboolean
- feature_flag_confirmation_enabledboolean
- feature_flag_confirmation_messagestring
- capture_dead_clicksboolean
- default_data_themeinteger
- revenue_analytics_config
- marketing_analytics_config
- onboarding_tasks
- base_currencyDefault:
USD
- web_analytics_pre_aggregated_tables_enabledboolean
- experiment_recalculation_timestring
Time of day (UTC) when experiment metrics should be recalculated. If not set, uses the default recalculation time.
Example request
PATCH
/api /projects /:project_id /environments /:id /complete_product_onboarding
Example response
Status 200 No response body
Update environments delete secret token backup
Path parameters
- idinteger
A unique integer value identifying this environment (aka team).
- project_idstring
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
Request parameters
- namestring
- access_controlboolean
- app_urlsarray
- slack_incoming_webhookstring
- anonymize_ipsboolean
- completed_snippet_onboardingboolean
- test_account_filters
- test_account_filters_default_checkedboolean
- path_cleaning_filters
- is_demoboolean
- timezone
- data_attributes
- person_display_name_propertiesarray
- correlation_config
- autocapture_opt_outboolean
- autocapture_exceptions_opt_inboolean
- autocapture_web_vitals_opt_inboolean
- autocapture_web_vitals_allowed_metrics
- autocapture_exceptions_errors_to_ignore
- capture_console_log_opt_inboolean
- capture_performance_opt_inboolean
- session_recording_opt_inboolean
- session_recording_sample_ratestring
- session_recording_minimum_duration_millisecondsinteger
- session_recording_linked_flag
- session_recording_network_payload_capture_config
- session_recording_masking_config
- session_recording_url_trigger_configarray
- session_recording_url_blocklist_configarray
- session_recording_event_trigger_configarray
- session_recording_trigger_match_type_configstring
- session_recording_retention_period
- session_replay_config
- survey_config
- week_start_day
- primary_dashboardinteger
- live_events_columnsarray
- recording_domainsarray
- cookieless_server_hash_mode
- human_friendly_comparison_periodsboolean
- inject_web_appsboolean
- extra_settings
- modifiers
- has_completed_onboarding_for
- surveys_opt_inboolean
- heatmaps_opt_inboolean
- flags_persistence_defaultboolean
- feature_flag_confirmation_enabledboolean
- feature_flag_confirmation_messagestring
- capture_dead_clicksboolean
- default_data_themeinteger
- revenue_analytics_config
- marketing_analytics_config
- onboarding_tasks
- base_currencyDefault:
USD
- web_analytics_pre_aggregated_tables_enabledboolean
- experiment_recalculation_timestring
Time of day (UTC) when experiment metrics should be recalculated. If not set, uses the default recalculation time.
Example request
PATCH
/api /projects /:project_id /environments /:id /delete_secret_token_backup
Example response
Status 200 No response body
Retrieve environments event ingestion restrictions
Required API key scopes
project:read
Path parameters
- idinteger
A unique integer value identifying this environment (aka team).
- project_idstring
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
Example request
GET
/api /projects /:project_id /environments /:id /event_ingestion_restrictions
Example response
Status 200 No response body
Retrieve environments is generating demo data
Path parameters
- idinteger
A unique integer value identifying this environment (aka team).
- project_idstring
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
Example request
GET
/api /projects /:project_id /environments /:id /is_generating_demo_data
Example response
Status 200 No response body
Update environments reset token
Path parameters
- idinteger
A unique integer value identifying this environment (aka team).
- project_idstring
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
Request parameters
- namestring
- access_controlboolean
- app_urlsarray
- slack_incoming_webhookstring
- anonymize_ipsboolean
- completed_snippet_onboardingboolean
- test_account_filters
- test_account_filters_default_checkedboolean
- path_cleaning_filters
- is_demoboolean
- timezone
- data_attributes
- person_display_name_propertiesarray
- correlation_config
- autocapture_opt_outboolean
- autocapture_exceptions_opt_inboolean
- autocapture_web_vitals_opt_inboolean
- autocapture_web_vitals_allowed_metrics
- autocapture_exceptions_errors_to_ignore
- capture_console_log_opt_inboolean
- capture_performance_opt_inboolean
- session_recording_opt_inboolean
- session_recording_sample_ratestring
- session_recording_minimum_duration_millisecondsinteger
- session_recording_linked_flag
- session_recording_network_payload_capture_config
- session_recording_masking_config
- session_recording_url_trigger_configarray
- session_recording_url_blocklist_configarray
- session_recording_event_trigger_configarray
- session_recording_trigger_match_type_configstring
- session_recording_retention_period
- session_replay_config
- survey_config
- week_start_day
- primary_dashboardinteger
- live_events_columnsarray
- recording_domainsarray
- cookieless_server_hash_mode
- human_friendly_comparison_periodsboolean
- inject_web_appsboolean
- extra_settings
- modifiers
- has_completed_onboarding_for
- surveys_opt_inboolean
- heatmaps_opt_inboolean
- flags_persistence_defaultboolean
- feature_flag_confirmation_enabledboolean
- feature_flag_confirmation_messagestring
- capture_dead_clicksboolean
- default_data_themeinteger
- revenue_analytics_config
- marketing_analytics_config
- onboarding_tasks
- base_currencyDefault:
USD
- web_analytics_pre_aggregated_tables_enabledboolean
- experiment_recalculation_timestring
Time of day (UTC) when experiment metrics should be recalculated. If not set, uses the default recalculation time.
Example request
PATCH
/api /projects /:project_id /environments /:id /reset_token
Example response
Status 200 No response body
Update environments rotate secret token
Path parameters
- idinteger
A unique integer value identifying this environment (aka team).
- project_idstring
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
Request parameters
- namestring
- access_controlboolean
- app_urlsarray
- slack_incoming_webhookstring
- anonymize_ipsboolean
- completed_snippet_onboardingboolean
- test_account_filters
- test_account_filters_default_checkedboolean
- path_cleaning_filters
- is_demoboolean
- timezone
- data_attributes
- person_display_name_propertiesarray
- correlation_config
- autocapture_opt_outboolean
- autocapture_exceptions_opt_inboolean
- autocapture_web_vitals_opt_inboolean
- autocapture_web_vitals_allowed_metrics
- autocapture_exceptions_errors_to_ignore
- capture_console_log_opt_inboolean
- capture_performance_opt_inboolean
- session_recording_opt_inboolean
- session_recording_sample_ratestring
- session_recording_minimum_duration_millisecondsinteger
- session_recording_linked_flag
- session_recording_network_payload_capture_config
- session_recording_masking_config
- session_recording_url_trigger_configarray
- session_recording_url_blocklist_configarray
- session_recording_event_trigger_configarray
- session_recording_trigger_match_type_configstring
- session_recording_retention_period
- session_replay_config
- survey_config
- week_start_day
- primary_dashboardinteger
- live_events_columnsarray
- recording_domainsarray
- cookieless_server_hash_mode
- human_friendly_comparison_periodsboolean
- inject_web_appsboolean
- extra_settings
- modifiers
- has_completed_onboarding_for
- surveys_opt_inboolean
- heatmaps_opt_inboolean
- flags_persistence_defaultboolean
- feature_flag_confirmation_enabledboolean
- feature_flag_confirmation_messagestring
- capture_dead_clicksboolean
- default_data_themeinteger
- revenue_analytics_config
- marketing_analytics_config
- onboarding_tasks
- base_currencyDefault:
USD
- web_analytics_pre_aggregated_tables_enabledboolean
- experiment_recalculation_timestring
Time of day (UTC) when experiment metrics should be recalculated. If not set, uses the default recalculation time.
Example request
PATCH
/api /projects /:project_id /environments /:id /rotate_secret_token