Application settings API | GitLab Docs
/ Application settings API Tier : Free, Premium, Ultimate Offering : GitLab Self-Managed, GitLab Dedicated Use this API to interact with the application settings for your GitLab instance. Changes to your application settings are subject to caching and might not immediately take effect. By default, GitLab caches application settings for 60 seconds. For information on how to control the application settings cache for an instance, see Application cache interval .
Prerequisites: You must have administrator access to the instance. Retrieve details on current application settings allow_all_integrations and allowed_integrations attributes added in GitLab 17.6. Retrieves details on the current application settings for this GitLab instance. GET /application/settings shell curl --request GET \ --header "PRIVATE-TOKEN: <your_access_token>" \ --url "https://gitlab.example.com/api/v4/application/settings" Example response: json { "default_projects_limit" : 100000 , "signup_enabled" : true , "id" : 1 , "default_branch_protection" : 2 , "default_branch_protection_defaults" : { "allowed_to_push" : [ { "access_level" : 40 } ], "allow_force_push" : false , "allowed_to_merge" : [ { "access_level" : 40 } ] }, "default_preferred_language" : "en" , "deletion_adjourned_period" : 7 , "failed_login_attempts_unlock_period_in_minutes" : 30 , "restricted_visibility_levels" : [], "sign_in_restrictions" : {}, "password_authentication_enabled_for_web" : true , "after_sign_out_path" : null , "max_attachment_size" : 100 , "max_decompressed_archive_size" : 25600 , "max_export_size" : 50 , "max_import_size" : 50 , "max_import_remote_file_size" : 10240 , "max_login_attempts" : 3 , "user_oauth_applications" : true , "updated_at" : "2016-01-04T15:44:55.176Z" , "session_expire_delay" : 10080 , "home_page_url" : null , "default_snippet_visibility" : "private" , "outbound_local_requests_whitelist" : [], "domain_allowlist" : [], "domain_denylist_enabled" : false , "domain_denylist" : [], "created_at" : "2016-01-04T15:44:55.176Z" , "default_ci_config_path" : null , "default_project_visibility" : "private" , "default_group_visibility" : "private" , "gravatar_enabled" : true , "container_expiration_policies_enable_historic_entries" : true , "container_registry_cleanup_tags_service_max_list_size" : 200 , "container_registry_delete_tags_service_timeout" : 250 , "container_registry_expiration_policies_caching" : true , "container_registry_expiration_policies_worker_capacity" : 4 , "container_registry_token_expire_delay" : 5 , "oauth_access_token_expires_in" : 7200 , "decompress_archive_file_timeout" : 210 , "repository_storages_weighted" : { "default" : 100 }, "plantuml_enabled" : false , "plantuml_url" : null , "diagramsnet_enabled" : true , "diagramsnet_url" : "https://embed.diagrams.net" , "kroki_enabled" : false , "kroki_url" : null , "terminal_max_session_time" : 0 , "polling_interval_multiplier" : 1.0 , "rsa_key_restriction" : 0 , "dsa_key_restriction" : 0 , "ecdsa_key_restriction" : 0 , "ed25519_key_restriction" : 0 , "ecdsa_sk_key_restriction" : 0 , "ed25519_sk_key_restriction" : 0 , "first_day_of_week" : 0 , "enforce_terms" : true , "terms" : "Hello world!" , "inactive_resource_access_tokens_delete_after_days" : 30 , "performance_bar_allowed_group_id" : 42 , "user_show_add_ssh_key_message" : true , "allow_account_deletion" : true , "updating_name_disabled_for_users" : false , "local_markdown_version" : 0 , "allow_local_requests_from_hooks_and_services" : true , "allow_local_requests_from_web_hooks_and_services" : true , "allow_local_requests_from_system_hooks" : false , "asset_proxy_enabled" : true , "asset_proxy_url" : "https://assets.example.com" , "asset_proxy_whitelist" : [ "example.com" , "*.example.com" , "your-instance.com" ], "asset_proxy_allowlist" : [ "example.com" , "*.example.com" , "your-instance.com" ], "maven_package_requests_forwarding" : true , "npm_package_requests_forwarding" : true , "pypi_package_requests_forwarding" : true , "rubygems_package_requests_forwarding" : false , "snippet_size_limit" : 52428800 , "issues_create_limit" : 300 , "raw_blob_request_limit" : 300 , "raw_blob_request_limit_unauthenticated" : 800 , "wiki_page_max_content_bytes" : 5242880 , "require_admin_approval_after_user_signup" : false , "require_personal_access_token_expiry" : true , "personal_access_token_prefix" : "glpat-" , "rate_limiting_response_text" : null , "keep_latest_artifact" : true , "admin_mode" : false , "floc_enabled" : false , "external_pipeline_validation_service_timeout" : null , "external_pipeline_validation_service_token" : null , "external_pipeline_validation_service_url" : null , "jira_connect_application_key" : null , "jira_connect_public_key_storage_enabled" : false , "jira_connect_proxy_url" : null , "jira_connect_additional_audience_url" : null , "silent_mode_enabled" : false , "package_registry_allow_anyone_to_pull_option" : true , "bulk_import_max_download_file_size" : 5120 , "project_jobs_api_rate_limit" : 600 , "runner_jobs_request_api_limit" : 2000 , "runner_jobs_patch_trace_api_limit" : 200 , "runner_jobs_endpoints_api_limit" : 200 , "security_txt_content" : null , "security_scan_stale_after_days" : 90 , "bulk_import_concurrent_pipeline_batch_limit" : 25 , "concurrent_relation_batch_export_limit" : 25 , "concurrent_relation_export_limit" : 25 , "relation_export_batch_size" : 50 , "concurrent_github_import_jobs_limit" : 1000 , "concurrent_bitbucket_import_jobs_limit" : 100 , "concurrent_bitbucket_server_import_jobs_limit" : 100 , "concurrent_pull_request_import_jobs_limit" : 200 , "import_jobs_concurrency_limit" : 100 , "silent_admin_exports_enabled" : false , "top_level_group_creation_enabled" : true , "disable_invite_members" : false , "enforce_pipl_compliance" : true , "model_prompt_cache_enabled" : true , "lock_model_prompt_cache_enabled" : false } Users on GitLab Premium or Ultimate may also see these parameters: allow_all_integrations allowed_integrations audit_events_api_limit default_project_deletion_protection delete_unconfirmed_users dependency_scanning_sbom_scan_api_download_limit dependency_scanning_sbom_scan_api_upload_limit disable_personal_access_tokens duo_agent_platform_enabled duo_availability duo_features_enabled elasticsearch_index_settings file_template_project_id geo_node_allowed_ips geo_status_timeout group_audit_events_api_limit group_owners_can_manage_default_branch_protection lock_duo_features_enabled project_audit_events_api_limit scan_execution_policies_action_limit scan_execution_policies_schedule_limit secret_push_protection_available security_approval_policies_limit security_policy_global_group_approvers_enabled unconfirmed_users_delete_after_days use_clickhouse_for_analytics virtual_registries_endpoints_api_limit project_secrets_limit group_secrets_limit security_mr_report_cache_lifetime_minutes security_scan_stale_after_days service_access_tokens_expiration_enforced json { "allow_all_integrations" : true , "allowed_integrations" : [], "default_project_deletion_protection" : false , "disable_personal_access_tokens" : false , "duo_features_enabled" : true , "elasticsearch_index_settings" : [ { "alias_name" : "gitlab-production" , "number_of_shards" : 5 , "number_of_replicas" : 1 } ], "file_template_project_id" : 1 , "geo_node_allowed_ips" : "0.0.0.0/0, ::/0" , "group_owners_can_manage_default_branch_protection" : true , "id" : 1 , "lock_duo_features_enabled" : false , "signup_enabled" : true , "virtual_registries_endpoints_api_limit" : 4000 , "project_secrets_limit" : 100 , "group_secrets_limit" : 500 ... } Update application settings default_branch_protection deprecated in GitLab 17.0.
Use default_branch_protection_defaults instead. throttle_unauthenticated_git_http_enabled , throttle_unauthenticated_git_http_period_in_seconds , and throttle_unauthenticated_git_http_requests_per_period attributes added in GitLab 17.0. allow_all_integrations and allowed_integrations attributes added in GitLab 17.6. throttle_authenticated_git_http_
The rest of this page is on the live site.