---
title: "Get Maindomain Edge Settings"
method: GET
path: "/v1/sites/{id}/maindomain/edge_settings"
tags: ["Domains"]
---

# Get Maindomain Edge Settings

`GET /v1/sites/{id}/maindomain/edge_settings`

Gets the site's Edge Settings such as managed challenge, etc.

## Path parameters

- `id` integer, required — ID of the Site you are interacting with

## Response `200`

OK

- EdgeSettingsResponse
  - `success` boolean — whether the request succeeded
  - `errors` string[]
  - `messages` string[], nullable
  - `result` EdgeSettings
    - `ai_crawlers` EdgeSettingsAICrawlers
      - `allow` boolean — Whether the type of visitor/traffic is allowed
      - `available` boolean — Whether the edge setting can be used. False means the edge setting is not available for use.
    - `logged_in_users` EdgeSettingsLoggedInUsers
      - `waf_bypass` EdgeSettingsWAFBypass — Bypassing the WAF for users logged into WordPress
        - `enabled` boolean — Whether the edge setting is enabled
        - `available` boolean — Whether the edge setting can be used. False means the edge setting is not available for use.
    - `managed_challenge` EdgeSettingsManagedChallenge — Displays a managed challenge to all users of the site. Useful if you believe your site is under attack.
      - `enabled` boolean — Whether the edge setting is enabled
      - `available` boolean — Whether the edge setting can be used. False means the edge setting is not available for use.
    - `user_agent` EdgeSettingsUserAgent
      - `empty` EdgeSettingsUserAgentEmptySettings — Whether empty user-agents are allowed to access the site
        - `allow` boolean — Whether the type of visitor/traffic is allowed
        - `available` boolean — Whether the edge setting can be used. False means the edge setting is not available for use.
      - `go_http_client` EdgeSettingsUserAgentGoHttpClientSettings — Whether go-http-client user-agents are allowed to access the site
        - `allow` boolean — Whether the type of visitor/traffic is allowed
        - `available` boolean — Whether the edge setting can be used. False means the edge setting is not available for use.
    - `woocommerce` EdgeSettingsWooCommerce
      - `login_and_registration_protection` EdgeSettingsLoginRegistrationProtection — Protects WooCommerce login and registration from being accessed by untrusted sources via a managed challenge
        - `enabled` boolean — Whether the edge setting is enabled
        - `available` boolean — Whether the edge setting can be used. False means the edge setting is not available for use.
    - `wp_login` EdgeSettingsWPLogin
      - `challenge` EdgeSettingsWPLoginChallenge — Whether managed challenges are issued on login attempts to wp-login.php
        - `enabled` boolean — Whether the edge setting is enabled
        - `available` boolean — Whether the edge setting can be used. False means the edge setting is not available for use.
    - `xmlrpc_protection` EdgeSettingsXMLRPCProtection — If xml-rpc.php should be protected by blocking all traffic to it from untrusted sources
      - `enabled` boolean — Whether the edge setting is enabled
      - `available` boolean — Whether the edge setting can be used. False means the edge setting is not available for use.

## Other responses

- `401` — Authentication failed
- `403` — Not authorized to access endpoint
- `404` — Given site not found for user
- `405` — Invalid input
- `500` — Internal error

---

[API](https://skmtc.net/rocket/apis/rocket-net-api.md) · [All operations](https://skmtc.net/rocket/apis/rocket-net-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/rocket/rocket-net-api/versions/db0dcbbc5764/schema)
