[proxy] web.archive.org← back | site home | direct (HTTPS) ↗ | proxy home | ◑ dark◐ light

Cloudflare API v4 Documentation

The Wayback Machine - https://web.archive.org/web/20220120230816/https://api.cloudflare.com/

Last modified: January 18th, 2022

Getting started

Cloudflare's API exposes the entire Cloudflare infrastructure via a standardized programmatic interface. Using Cloudflare's API, you can do just about anything you can do on cloudflare.com via the customer dashboard.

The Cloudflare API is a RESTful API based on HTTPS requests and JSON responses. If you are registered with Cloudflare, you can obtain your API key from the bottom of the "API Tokens" page, found here: Go to My account.

What is Cloudflare?

Cloudflare makes sites lightning fast, protects them from attacks, ensures they are always online, and makes it simple to add web apps with a single click. Every month, more than 1.8 billion people experience a faster, safer, better Internet thanks to Cloudflare.

Audience for APIs

Cloudflare offers public APIs with three audiences in mind.

  1. Cloudflare customers
  2. Cloudflare partners
  3. Developers

Customers: Individuals and organizations all over the world choose Cloudflare to protect and accelerate their web applications. Most customers manage their settings in the web dashboard, built using these APIs. Virtually anything you can do in the customer dashboard may be done via API. Example: purging the Cloudflare edge cache for a single file when it's updated on the origin server.

Partners: Many organizations make using Cloudflare a seamless option for improving their customers' performance and security. These APIs make that easier to do at scale. Example: a Cloudflare Certified Hosting Partner may use APIs to toggle basic security mode inside a hosting control panel.

Developers: Developers all over the world create useful applications which tie into Cloudflare services. These applications may include plugins and extensions to popular content management systems, apps that are offered in the Cloudflare Apps marketplace, runbooks for specific deployment systems, and many others.

Do's and Don'ts

What can you build with Cloudflare APIs?

Anything that's useful and follows the guidelines presented here.

What should you avoid doing with Cloudflare APIs?

Do not do any of the following:

  • Abuse Cloudflare systems or customers
  • Misuse Cloudflare trademarks
  • Misrepresent Cloudflare services as your own

Abuse: Follow all guidelines, including the rate limits defined below. Your ability to use the Cloudflare APIs may be terminated, temporarily or permanently, if our systems are abused. Similarly, anything in an application which goes against the goal of making Cloudflare more useful to Cloudflare customers or attempts to mistreat customers or their data will be grounds for termination.

Trademarks: Cloudflare has several registered trademarks. Details on how and when you may use Cloudflare trademarks are found at https://www.cloudflare.com/trademark, with links to specifics on logo use and spelling. Please review carefully.

Misrepresentation: Draw a clear line between the benefits you provide in your application and those benefits of the Cloudflare service that you enable via API. The APIs are not intended for "white labeling" or reselling Cloudflare services as your own. Nothing in your service or application should create a false sense of endorsement, sponsorship, or association with Cloudflare. You may sell your own application or service which utilizes the Cloudflare APIs, but may not sell Cloudflare services to customers without a commercial agreement with Cloudflare.

The full Cloudflare Terms of Use are found at https://www.cloudflare.com/terms.

getting-started-endpoints

Endpoints

The API is accessed by making HTTPS requests to a specific version endpoint URL, in which GET, POST, PUT, PATCH, and DELETE methods dictate how your interact with the information available. Every endpoint is accessed only via the SSL-enabled HTTPS (port 443) protocol.

Everything (methods, parameters, etc.) is fixed to a version number, and every call must contain one. The latest version is Version 4.

The stable base URL for all Version 4 HTTPS endpoints is:

https://api.cloudflare.com/client/v4/

getting-started-requests

Requests

Requests must be sent over HTTPS with any payload formatted in JSON. Depending on if a request is authenticated with the new API Tokens or the old API Keys, required headers differ and are detailed below.

API Tokens

API Tokens provide a new way to authenticate with the Cloudflare API. They allow for scoped and permissioned access to resources and use the RFC compliant Authorization Bearer Token Header.

Required parameters

NameFormatDescription
API TokenAuthorization: Bearer <token>API Token generated from the User Profile 'API Tokens' page

API Token cURL (example)

curl -X GET "https://api.cloudflare.com/client/v4/zones/cd7d0123e3012345da9420df9514dad0" \
     -H "Content-Type:application/json" \
     -H "Authorization: Bearer YQSn-xWAQiiEh9qM58wZNnyQS7FUdoqGIUAbrh7T"

API Keys

All requests must include both X-Auth-Key and X-Auth-Email headers to authenticate. Requests that use X-Auth-User-Service-Key can use that instead of the Auth-Key and Auth-Email headers.

Required parameters

NameFormatDescription
API KeyX-Auth-KeyAPI key generated on the "My Account" page
EmailX-Auth-EmailEmail address associated with your account
User Service KeyX-Auth-User-Service-KeyA special Cloudflare API key good for a restricted set of endpoints. Always begins with "v1.0-", may vary in length.

Auth-Email cURL (example)

curl -X GET "https://api.cloudflare.com/client/v4/zones/cd7d0123e3012345da9420df9514dad0" \
     -H "Content-Type:application/json" \
     -H "X-Auth-Key:1234567893feefc5f0q5000bfo0c38d90bbeb" \
     -H "X-Auth-Email:example@example.com"

User-Service cURL (example)

curl -X GET "https://api.cloudflare.com/client/v4/zones/cd7d0123e3012345da9420df9514dad0" \
     -H "Content-Type:application/json" \
     -H "X-Auth-User-Service-Key:v1.0-e24fd090c02efcfecb4de8f4ff246fd5c75b48946fdf0ce26c59f91d0d90797b-cfa33fe60e8e34073c149323454383fc9005d25c9b4c502c2f063457ef65322eade065975001a0b4b4c591c5e1bd36a6e8f7e2d4fa8a9ec01c64c041e99530c2-07b9efe0acd78c82c8d9c690aacb8656d81c369246d7f996a205fe3c18e9254a"`
NameTypeDescription
pageintegerWhich page of results to return
per_pageintegerHow many results to return per page
orderstringAttribute name to order the responses by
directionstringEither asc or desc
cURL (example)
GET zones/:zone_identifier/dns_records
curl -X GET "https://api.cloudflare.com/client/v4/zones/cd7d068de3012345da9420df9514dad0/dns_records?page=3&per_page=20&order=type&direction=asc" \
     -H "Content-Type:application/json" \
     -H "X-Auth-Key:1234567893feefc5f0q5000bfo0c38d90bbeb" \
     -H "X-Auth-Email:example@example.com"
getting-started-responses

Responses

Format

Each response is a JSON object. The data requested is wrapped in the result tag. If you have a response, it will always be within the result field. We also include a success flag, an array of potential errors, and messages in the response. Some responses can have additional pagination info wrapped in the result_info

An error object will contain an integer code field and a message

Date fields will always be in UTC ISO-8601 format, including microseconds.

Success Response (example)
{
  "result": {
    "id":"2d4d028de3015345da9420df5514dad0",
    "type":"A",
    "name":"blog.example.com",
    "content":"2.6.4.5",
    "proxiable":true,
    "proxied":false,
    "ttl":1,
    "priority":0,
    "locked":false,
    "zone_id":"cd7d068de3012345da9420df9514dad0",
    "zone_name":"example.com",
    "modified_on":"2014-05-28T18:46:18.764425Z",
    "created_on":"2014-05-28T18:46:18.764425Z"
  },
  "success": true,
  "errors": [],
  "messages": [],
  "result_info": {
    "page": 1,
    "per_page": 20,
    "count": 1,
    "total_count": 200
  }
}
Error Response (example)
{
  "result": null,
  "success": false,
  "errors": [{"code":1003,"message":"Invalid or missing zone id."}],
  "messages": []
}
Content-TypeDescription
application/jsonresponse is a JSON object
text/plainresponse is a textual item
application/x-yamlresponse is a YAML object
application/octet-streamresponse is a raw data (reserved for later use)
CodeStatusDescription
200OKrequest successful
304Not Modified
400Bad Requestrequest was invalid
401Unauthorizeduser does not have permission
403Forbiddenrequest not authenticated
429Too many requestsclient is rate limited
405Method Not Allowedincorrect HTTP method provided
415Unsupported Media Typeresponse is not valid JSON
getting-started-resource-ids

How to get a Zone ID, User ID, or Organization ID

Nearly every resource in the v4 API (Users, Zones, Settings, Organizations, etc.) may be uniquely identified by a 32-byte string of hex characters ([a-f0-9]). These identifiers may be referred to in the documentation as zone_identifier, user_id, or even just id. Identifier values are usually captured during resource creation (POST requests) or when fetching entire collections (GET requests) of resources. Typically they appear as an id field in the JSON resource.

{
  "result": {
    "id":"2d4d028de3015345da9420df5514dad0",
    "type":"example"
  }
}

You can always find the IDs for API resources by making a GET request to its corresponding collection endpoint. For example, to list all Zone objects, a GET request may be sent to https://api.cloudflare.com/client/v4/zones. All objects listed in the result array will contain an id field; this is also known as zone_identifier.

How to Get a Zone ID

curl -X GET "https://api.cloudflare.com/client/v4/zones" \
    -H "X-Auth-Email: user@example.com" \
    -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
    -H "Content-Type: application/json"

User

The currently logged in/authenticated User

user
user-user-details
cURL (example)
curl -X GET "https://api.cloudflare.com/client/v4/user" \
     -H "X-Auth-Email: user@example.com" \
     -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
     -H "Content-Type: application/json"
Response (example)
{
  "success": true,
  "errors": [],
  "messages": [],
  "result": {
    "id": "7c5dae5552338874e5053f2534d2767a",
    "email": "user@example.com",
    "first_name": "John",
    "last_name": "Appleseed",
    "username": "cfuser12345",
    "telephone": "+1 123-123-1234",
    "country": "US",
    "zipcode": "12345",
    "created_on": "2014-01-01T05:20:00Z",
    "modified_on": "2014-01-01T05:20:00Z",
    "two_factor_authentication_enabled": false,
    "suspended": false
  }
}
user-edit-user

Optional parameters

Name /typeDescription /exampleConstraints
first_name
stringnull

User's first name

"John"

  • max length: 60
last_name
stringnull

User's last name

"Appleseed"

  • max length: 60
telephone
stringnull

User's telephone number

"+1 123-123-1234"

  • max length: 20
country
stringnull

The country in which the user lives.

"US"

  • max length: 30
zipcode
stringnull

The zipcode or postal code where the user lives.

"12345"

  • max length: 20
cURL (example)
curl -X PATCH "https://api.cloudflare.com/client/v4/user" \
     -H "X-Auth-Email: user@example.com" \
     -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
     -H "Content-Type: application/json" \
     --data '{"first_name":"John","last_name":"Appleseed","telephone":"+1 123-123-1234","country":"US","zipcode":"12345"}'
Response (example)
{
  "success": true,
  "errors": [],
  "messages": [],
  "result": {
    "id": "7c5dae5552338874e5053f2534d2767a",
    "email": "user@example.com",
    "first_name": "John",
    "last_name": "Appleseed",
    "username": "cfuser12345",
    "telephone": "+1 123-123-1234",
    "country": "US",
    "zipcode": "12345",
    "created_on": "2014-01-01T05:20:00Z",
    "modified_on": "2014-01-01T05:20:00Z",
    "two_factor_authentication_enabled": false,
    "suspended": false
  }
}

User API Tokens

Tokens that can be used to access Cloudflare v4 APIs

user-api-tokens
user-api-tokens-list-tokens

Optional parameters

Name /typeDescription /exampleConstraints
page
number

Page number of paginated results

1

  • default value: 1
  • min value:1
per_page
number

Maximum number of results per page

20

  • default value: 20
  • min value:5
  • max value:50
direction
string

Direction to order results

"desc"

  • valid values: asc, desc
cURL (example)
curl -X GET "https://api.cloudflare.com/client/v4/user/tokens?page=1&per_page=20&direction=desc" \
     -H "Authorization: Bearer 8M7wS6hCpXVc-DoRnPPY_UCWPgy8aea4Wy6kCe5T"
Response (example)
{
  "success": true,
  "errors": [],
  "messages": [],
  "result": [
    {
      "id": "ed17574386854bf78a67040be0a770b0",
      "name": "readonly token",
      "status": "active",
      "issued_on": "2018-07-01T05:20:00Z",
      "modified_on": "2018-07-02T05:20:00Z",
      "not_before": "2018-07-01T05:20:00Z",
      "expires_on": "2020-01-01T00:00:00Z",
      "policies": [
        {
          "id": "f267e341f3dd4697bd3b9f71dd96247f",
          "effect": "allow",
          "resources": {
            "com.cloudflare.api.account.zone.eb78d65290b24279ba6f44721b3ea3c4": "*",
            "com.cloudflare.api.account.zone.22b1de5f1c0e4b3ea97bb1e963b06a43": "*"
          },
          "permission_groups": [
            {
              "id": "c8fed203ed3043cba015a93ad1616f1f",
              "name": "Zone Read"
            },
            {
              "id": "82e64a83756745bbbb1c9c2701bf816b",
              "name": "DNS Read"
            }
          ]
        }
      ],
      "condition": {
        "request.ip": {
          "in": [
            "199.27.128.0/21",
            "2400:cb00::/32"
          ],
          "not_in": [
            "199.27.128.0/21",
            "2400:cb00::/32"
          ]
        }
      }
    }
  ]
}
user-api-tokens-create-token

Required parameters

Name /typeDescription /exampleConstraints
name
string

Token name

"readonly token"

  • max length: 120
policies
array

List of access policies assigned to the token

[ { "id": "f267e341f3dd4697bd3b9f71dd96247f", "effect": "allow", "resources": { "com.cloudflare.api.account.zone.eb78d65290b24279ba6f44721b3ea3c4": "*", "com.cloudflare.api.account.zone.22b1de5f1c0e4b3ea97bb1e963b06a43": "*" }, "permission_groups": [ { "id": "c8fed203ed3043cba015a93ad1616f1f", "name": "Zone Read" }, { "id": "82e64a83756745bbbb1c9c2701bf816b", "name": "DNS Read" } ] } ]
An array with items in the following form:

Show definition »

    Optional parameters

    Name /typeDescription /exampleConstraints
    not_before
    string (date-time)

    The time before which the token MUST NOT be accepted for processing

    "2018-07-01T05:20:00Z"

      expires_on
      string (date-time)

      The expiration time on or after which the JWT MUST NOT be accepted for processing

      "2020-01-01T00:00:00Z"

        condition
        object

        Defines the extra limitation on how and/or where the token can be used

        { "request.ip": { "in": [ "199.27.128.0/21", "2400:cb00::/32" ], "not_in": [ "199.27.128.0/21", "2400:cb00::/32" ] } }
        An object with the following properties:

        Show definition »

          cURL (example)
          curl -X POST "https://api.cloudflare.com/client/v4/user/tokens" \
               -H "Authorization: Bearer 8M7wS6hCpXVc-DoRnPPY_UCWPgy8aea4Wy6kCe5T" \
               -H "Content-Type: application/json" \
               --data '{"name":"readonly token","not_before":"2018-07-01T05:20:00Z","expires_on":"2020-01-01T00:00:00Z","policies":[{"id":"f267e341f3dd4697bd3b9f71dd96247f","effect":"allow","resources":{"com.cloudflare.api.account.zone.eb78d65290b24279ba6f44721b3ea3c4":"*","com.cloudflare.api.account.zone.22b1de5f1c0e4b3ea97bb1e963b06a43":"*"},"permission_groups":[{"id":"c8fed203ed3043cba015a93ad1616f1f","name":"Zone Read"},{"id":"82e64a83756745bbbb1c9c2701bf816b","name":"DNS Read"}]}],"condition":{"request.ip":{"in":["199.27.128.0/21","2400:cb00::/32"],"not_in":["199.27.128.0/21","2400:cb00::/32"]}}}'
          Response (example)
          {
            "success": true,
            "errors": [],
            "messages": [],
            "result": {
              "id": "ed17574386854bf78a67040be0a770b0",
              "name": "readonly token",
              "status": "active",
              "issued_on": "2018-07-01T05:20:00Z",
              "modified_on": "2018-07-02T05:20:00Z",
              "not_before": "2018-07-01T05:20:00Z",
              "expires_on": "2020-01-01T00:00:00Z",
              "policies": [
                {
                  "id": "f267e341f3dd4697bd3b9f71dd96247f",
                  "effect": "allow",
                  "resources": {
                    "com.cloudflare.api.account.zone.eb78d65290b24279ba6f44721b3ea3c4": "*",
                    "com.cloudflare.api.account.zone.22b1de5f1c0e4b3ea97bb1e963b06a43": "*"
                  },
                  "permission_groups": [
                    {
                      "id": "c8fed203ed3043cba015a93ad1616f1f",
                      "name": "Zone Read"
                    },
                    {
                      "id": "82e64a83756745bbbb1c9c2701bf816b",
                      "name": "DNS Read"
                    }
                  ]
                }
              ],
              "condition": {
                "request.ip": {
                  "in": [
                    "199.27.128.0/21",
                    "2400:cb00::/32"
                  ],
                  "not_in": [
                    "199.27.128.0/21",
                    "2400:cb00::/32"
                  ]
                }
              },
              "value": "8M7wS6hCpXVc-DoRnPPY_UCWPgy8aea4Wy6kCe5T"
            }
          }
          user-api-tokens-token-details
          cURL (example)
          curl -X GET "https://api.cloudflare.com/client/v4/user/tokens/ed17574386854bf78a67040be0a770b0" \
               -H "Authorization: Bearer 8M7wS6hCpXVc-DoRnPPY_UCWPgy8aea4Wy6kCe5T"
          Response (example)
          {
            "success": true,
            "errors": [],
            "messages": [],
            "result": {
              "id": "ed17574386854bf78a67040be0a770b0",
              "name": "readonly token",
              "status": "active",
              "issued_on": "2018-07-01T05:20:00Z",
              "modified_on": "2018-07-02T05:20:00Z",
              "not_before": "2018-07-01T05:20:00Z",
              "expires_on": "2020-01-01T00:00:00Z",
              "policies": [
                {
                  "id": "f267e341f3dd4697bd3b9f71dd96247f",
                  "effect": "allow",
                  "resources": {
                    "com.cloudflare.api.account.zone.eb78d65290b24279ba6f44721b3ea3c4": "*",
                    "com.cloudflare.api.account.zone.22b1de5f1c0e4b3ea97bb1e963b06a43": "*"
                  },
                  "permission_groups": [
                    {
                      "id": "c8fed203ed3043cba015a93ad1616f1f",
                      "name": "Zone Read"
                    },
                    {
                      "id": "82e64a83756745bbbb1c9c2701bf816b",
                      "name": "DNS Read"
                    }
                  ]
                }
              ],
              "condition": {
                "request.ip": {
                  "in": [
                    "199.27.128.0/21",
                    "2400:cb00::/32"
                  ],
                  "not_in": [
                    "199.27.128.0/21",
                    "2400:cb00::/32"
                  ]
                }
              }
            }
          }
          user-api-tokens-update-token

          Optional parameters

          Name /typeDescription /exampleConstraints
          expires_on
          string (date-time)

          The expiration time on or after which the JWT MUST NOT be accepted for processing

          "2020-01-01T00:00:00Z"

            not_before
            string (date-time)

            The time before which the token MUST NOT be accepted for processing

            "2018-07-01T05:20:00Z"

              name
              string

              Token name

              "readonly token"

              • max length: 120
              policies
              array

              List of access policies assigned to the token

              [ { "id": "f267e341f3dd4697bd3b9f71dd96247f", "effect": "allow", "resources": { "com.cloudflare.api.account.zone.eb78d65290b24279ba6f44721b3ea3c4": "*", "com.cloudflare.api.account.zone.22b1de5f1c0e4b3ea97bb1e963b06a43": "*" }, "permission_groups": [ { "id": "c8fed203ed3043cba015a93ad1616f1f", "name": "Zone Read" }, { "id": "82e64a83756745bbbb1c9c2701bf816b", "name": "DNS Read" } ] } ]
              An array with items in the following form:

              Show definition »

                status
                string

                Status of the token

                "active"

                • valid values: active, disabled, expired
                issued_on
                string (date-time)

                The time on which the token was created

                "2018-07-01T05:20:00Z"

                • read only
                modified_on
                string (date-time)

                Last time the token was modified

                "2018-07-02T05:20:00Z"

                • read only
                id
                string

                Token identifier tag

                "ed17574386854bf78a67040be0a770b0"

                • max length: 32
                • read only
                condition
                object

                Defines the extra limitation on how and/or where the token can be used

                { "request.ip": { "in": [ "199.27.128.0/21", "2400:cb00::/32" ], "not_in": [ "199.27.128.0/21", "2400:cb00::/32" ] } }
                An object with the following properties:

                Show definition »

                  cURL (example)
                  curl -X PUT "https://api.cloudflare.com/client/v4/user/tokens/ed17574386854bf78a67040be0a770b0" \
                       -H "Authorization: Bearer 8M7wS6hCpXVc-DoRnPPY_UCWPgy8aea4Wy6kCe5T" \
                       -H "Content-Type: application/json" \
                       --data '{"id":"ed17574386854bf78a67040be0a770b0","name":"readonly token","status":"active","issued_on":"2018-07-01T05:20:00Z","modified_on":"2018-07-02T05:20:00Z","not_before":"2018-07-01T05:20:00Z","expires_on":"2020-01-01T00:00:00Z","policies":[{"id":"f267e341f3dd4697bd3b9f71dd96247f","effect":"allow","resources":{"com.cloudflare.api.account.zone.eb78d65290b24279ba6f44721b3ea3c4":"*","com.cloudflare.api.account.zone.22b1de5f1c0e4b3ea97bb1e963b06a43":"*"},"permission_groups":[{"id":"c8fed203ed3043cba015a93ad1616f1f","name":"Zone Read"},{"id":"82e64a83756745bbbb1c9c2701bf816b","name":"DNS Read"}]}],"condition":{"request.ip":{"in":["199.27.128.0/21","2400:cb00::/32"],"not_in":["199.27.128.0/21","2400:cb00::/32"]}}}'
                  Response (example)
                  {
                    "success": true,
                    "errors": [],
                    "messages": [],
                    "result": {
                      "id": "ed17574386854bf78a67040be0a770b0",
                      "name": "readonly token",
                      "status": "active",
                      "issued_on": "2018-07-01T05:20:00Z",
                      "modified_on": "2018-07-02T05:20:00Z",
                      "not_before": "2018-07-01T05:20:00Z",
                      "expires_on": "2020-01-01T00:00:00Z",
                      "policies": [
                        {
                          "id": "f267e341f3dd4697bd3b9f71dd96247f",
                          "effect": "allow",
                          "resources": {
                            "com.cloudflare.api.account.zone.eb78d65290b24279ba6f44721b3ea3c4": "*",
                            "com.cloudflare.api.account.zone.22b1de5f1c0e4b3ea97bb1e963b06a43": "*"
                          },
                          "permission_groups": [
                            {
                              "id": "c8fed203ed3043cba015a93ad1616f1f",
                              "name": "Zone Read"
                            },
                            {
                              "id": "82e64a83756745bbbb1c9c2701bf816b",
                              "name": "DNS Read"
                            }
                          ]
                        }
                      ],
                      "condition": {
                        "request.ip": {
                          "in": [
                            "199.27.128.0/21",
                            "2400:cb00::/32"
                          ],
                          "not_in": [
                            "199.27.128.0/21",
                            "2400:cb00::/32"
                          ]
                        }
                      }
                    }
                  }
                  user-api-tokens-delete-token
                  cURL (example)
                  curl -X DELETE "https://api.cloudflare.com/client/v4/user/tokens/ed17574386854bf78a67040be0a770b0" \
                       -H "Authorization: Bearer 8M7wS6hCpXVc-DoRnPPY_UCWPgy8aea4Wy6kCe5T"
                  Response (example)
                  {
                    "success": true,
                    "errors": [],
                    "messages": [],
                    "result": {
                      "id": "9a7806061c88ada191ed06f989cc3dac"
                    }
                  }
                  user-api-tokens-roll-token
                  cURL (example)
                  curl -X PUT "https://api.cloudflare.com/client/v4/user/tokens/ed17574386854bf78a67040be0a770b0/value" \
                       -H "Authorization: Bearer 8M7wS6hCpXVc-DoRnPPY_UCWPgy8aea4Wy6kCe5T" \
                       -H "Content-Type: application/json" \
                       --data '{}'
                  Response (example)
                  {
                    "success": true,
                    "errors": [],
                    "messages": [],
                    "result": "8M7wS6hCpXVc-DoRnPPY_UCWPgy8aea4Wy6kCe5T"
                  }
                  user-api-tokens-verify-token
                  cURL (example)
                  curl -X GET "https://api.cloudflare.com/client/v4/user/tokens/verify" \
                       -H "Authorization: Bearer 8M7wS6hCpXVc-DoRnPPY_UCWPgy8aea4Wy6kCe5T"
                  Response (example)
                  {
                    "success": true,
                    "errors": [],
                    "messages": [],
                    "result": {
                      "id": "ed17574386854bf78a67040be0a770b0",
                      "status": "active",
                      "not_before": "2018-07-01T05:20:00Z",
                      "expires_on": "2020-01-01T00:00:00Z"
                    }
                  }

                  Permission Groups

                  Named groups of permissions used for creating API Tokens access policies

                  permission-groups
                  permission-groups-list-permission-groups
                  cURL (example)
                  curl -X GET "https://api.cloudflare.com/client/v4/user/tokens/permission_groups" \
                       -H "Authorization: Bearer 8M7wS6hCpXVc-DoRnPPY_UCWPgy8aea4Wy6kCe5T"
                  Response (example)
                  {
                    "success": true,
                    "errors": [],
                    "messages": [],
                    "result": [
                      {
                        "id": "7cf72faf220841aabcfdfab81c43c4f6",
                        "name": "Billing Read",
                        "scopes": [
                          "com.cloudflare.api.account"
                        ]
                      },
                      {
                        "id": "9d24387c6e8544e2bc4024a03991339f",
                        "name": "Load Balancing: Monitors and Pools Read",
                        "scopes": [
                          "com.cloudflare.api.account"
                        ]
                      },
                      {
                        "id": "d2a1802cc9a34e30852f8b33869b2f3c",
                        "name": "Load Balancing: Monitors and Pools Write",
                        "scopes": [
                          "com.cloudflare.api.account"
                        ]
                      },
                      {
                        "id": "8b47d2786a534c08a1f94ee8f9f599ef",
                        "name": "Workers KV Storage Read",
                        "scopes": [
                          "com.cloudflare.api.account"
                        ]
                      },
                      {
                        "id": "f7f0eda5697f475c90846e879bab8666",
                        "name": "Workers KV Storage Write",
                        "scopes": [
                          "com.cloudflare.api.account"
                        ]
                      },
                      {
                        "id": "1a71c399035b4950a1bd1466bbe4f420",
                        "name": "Workers Scripts Read",
                        "scopes": [
                          "com.cloudflare.api.account"
                        ]
                      },
                      {
                        "id": "e086da7e2179491d91ee5f35b3ca210a",
                        "name": "Workers Scripts Write",
                        "scopes": [
                          "com.cloudflare.api.account"
                        ]
                      }
                    ]
                  }

                  User's Account Memberships

                  A list of memberships of accounts this user can access

                  user-s-account-memberships
                  user-s-account-memberships-list-memberships

                  Optional parameters

                  Name /typeDescription /exampleConstraints
                  status
                  string

                  Status of this membership

                  "accepted"

                  • valid values: accepted, pending, rejected
                  account.name
                  string

                  Account name

                  "Demo Account"

                  • max length: 100
                  page
                  number

                  Page number of paginated results

                  1

                  • default value: 1
                  • min value:1
                  per_page
                  number

                  Number of memberships per page

                  20

                  • default value: 20
                  • min value:5
                  • max value:50
                  order
                  string

                  Field to order memberships by

                  "status"

                  • valid values: id, account.name, status
                  direction
                  string

                  Direction to order memberships

                  "desc"

                  • valid values: asc, desc
                  cURL (example)
                  curl -X GET "https://api.cloudflare.com/client/v4/memberships?status=accepted&account.name=Demo Account&page=1&per_page=20&order=status&direction=desc" \
                       -H "X-Auth-Email: user@example.com" \
                       -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                       -H "Content-Type: application/json"
                  Response (example)
                  {
                    "success": true,
                    "errors": [],
                    "messages": [],
                    "result": [
                      {
                        "id": "4536bcfad5faccb111b47003c79917fa",
                        "code": "05dd05cce12bbed97c0d87cd78e89bc2fd41a6cee72f27f6fc84af2e45c0fac0",
                        "status": "accepted",
                        "account": {
                          "id": "01a7362d577a6c3019a474fd6f485823",
                          "name": "Demo Account",
                          "settings": {
                            "enforce_twofactor": false,
                            "use_account_custom_ns_by_default": false
                          },
                          "created_on": "2014-03-01T12:21:02.0000Z"
                        },
                        "roles": [
                          "Account Administrator"
                        ],
                        "permissions": {
                          "analytics": {
                            "read": true,
                            "write": true
                          },
                          "billing": {
                            "read": true,
                            "write": true
                          },
                          "cache_purge": {
                            "read": true,
                            "write": true
                          },
                          "dns": {
                            "read": true,
                            "write": true
                          },
                          "dns_records": {
                            "read": true,
                            "write": true
                          },
                          "lb": {
                            "read": true,
                            "write": true
                          },
                          "logs": {
                            "read": true,
                            "write": true
                          },
                          "organization": {
                            "read": true,
                            "write": true
                          },
                          "ssl": {
                            "read": true,
                            "write": true
                          },
                          "waf": {
                            "read": true,
                            "write": true
                          },
                          "zones": {
                            "read": true,
                            "write": true
                          },
                          "zone_settings": {
                            "read": true,
                            "write": true
                          }
                        }
                      }
                    ]
                  }
                  user-s-account-memberships-membership-details
                  cURL (example)
                  curl -X GET "https://api.cloudflare.com/client/v4/memberships/4536bcfad5faccb111b47003c79917fa" \
                       -H "X-Auth-Email: user@example.com" \
                       -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                       -H "Content-Type: application/json"
                  Response (example)
                  {
                    "success": true,
                    "errors": [],
                    "messages": [],
                    "result": {
                      "id": "4536bcfad5faccb111b47003c79917fa",
                      "code": "05dd05cce12bbed97c0d87cd78e89bc2fd41a6cee72f27f6fc84af2e45c0fac0",
                      "status": "accepted",
                      "account": {
                        "id": "01a7362d577a6c3019a474fd6f485823",
                        "name": "Demo Account",
                        "settings": {
                          "enforce_twofactor": false,
                          "use_account_custom_ns_by_default": false
                        },
                        "created_on": "2014-03-01T12:21:02.0000Z"
                      },
                      "roles": [
                        "Account Administrator"
                      ],
                      "permissions": {
                        "analytics": {
                          "read": true,
                          "write": true
                        },
                        "billing": {
                          "read": true,
                          "write": true
                        },
                        "cache_purge": {
                          "read": true,
                          "write": true
                        },
                        "dns": {
                          "read": true,
                          "write": true
                        },
                        "dns_records": {
                          "read": true,
                          "write": true
                        },
                        "lb": {
                          "read": true,
                          "write": true
                        },
                        "logs": {
                          "read": true,
                          "write": true
                        },
                        "organization": {
                          "read": true,
                          "write": true
                        },
                        "ssl": {
                          "read": true,
                          "write": true
                        },
                        "waf": {
                          "read": true,
                          "write": true
                        },
                        "zones": {
                          "read": true,
                          "write": true
                        },
                        "zone_settings": {
                          "read": true,
                          "write": true
                        }
                      }
                    }
                  }
                  user-s-account-memberships-update-membership

                  Required parameters

                  Name /typeDescription /exampleConstraints
                  status
                  string

                  Whether to accept or reject this account invitation

                  "accepted"

                  • valid values: accepted, rejected
                  cURL (example)
                  curl -X PUT "https://api.cloudflare.com/client/v4/memberships/4536bcfad5faccb111b47003c79917fa" \
                       -H "X-Auth-Email: user@example.com" \
                       -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                       -H "Content-Type: application/json" \
                       --data '{"status":"accepted"}'
                  Response (example)
                  {
                    "success": true,
                    "errors": [],
                    "messages": [],
                    "result": {
                      "id": "4536bcfad5faccb111b47003c79917fa",
                      "code": "05dd05cce12bbed97c0d87cd78e89bc2fd41a6cee72f27f6fc84af2e45c0fac0",
                      "status": "accepted",
                      "account": {
                        "id": "01a7362d577a6c3019a474fd6f485823",
                        "name": "Demo Account",
                        "settings": {
                          "enforce_twofactor": false,
                          "use_account_custom_ns_by_default": false
                        },
                        "created_on": "2014-03-01T12:21:02.0000Z"
                      },
                      "roles": [
                        "Account Administrator"
                      ],
                      "permissions": {
                        "analytics": {
                          "read": true,
                          "write": true
                        },
                        "billing": {
                          "read": true,
                          "write": true
                        },
                        "cache_purge": {
                          "read": true,
                          "write": true
                        },
                        "dns": {
                          "read": true,
                          "write": true
                        },
                        "dns_records": {
                          "read": true,
                          "write": true
                        },
                        "lb": {
                          "read": true,
                          "write": true
                        },
                        "logs": {
                          "read": true,
                          "write": true
                        },
                        "organization": {
                          "read": true,
                          "write": true
                        },
                        "ssl": {
                          "read": true,
                          "write": true
                        },
                        "waf": {
                          "read": true,
                          "write": true
                        },
                        "zones": {
                          "read": true,
                          "write": true
                        },
                        "zone_settings": {
                          "read": true,
                          "write": true
                        }
                      }
                    }
                  }
                  user-s-account-memberships-delete-membership
                  cURL (example)
                  curl -X DELETE "https://api.cloudflare.com/client/v4/memberships/4536bcfad5faccb111b47003c79917fa" \
                       -H "X-Auth-Email: user@example.com" \
                       -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                       -H "Content-Type: application/json"
                  Response (example)
                  {
                    "success": true,
                    "errors": [],
                    "messages": [],
                    "result": {
                      "id": "4536bcfad5faccb111b47003c79917fa"
                    }
                  }
                  CodeDescription
                  1000An unknown error(<CODE>) has occurred
                  1001Invalid request
                  1002Forbidden
                  1003Membership not found

                  Accounts

                  An Account is the root object which owns other resources such as zones, load balancers and billing details.

                  accounts
                  accounts-list-accounts

                  Optional parameters

                  Name /typeDescription /exampleConstraints
                  page
                  number

                  Page number of paginated results

                  1

                  • default value: 1
                  • min value:1
                  per_page
                  number

                  Maximum number of results per page

                  20

                  • default value: 20
                  • min value:5
                  • max value:50
                  direction
                  string

                  Direction to order results

                  "desc"

                  • valid values: asc, desc
                  name
                  string

                  Name of the account

                  "example.com"

                  • read only
                  cURL (example)
                  curl -X GET "https://api.cloudflare.com/client/v4/accounts?page=1&per_page=20&direction=desc&name=example.com" \
                       -H "X-Auth-Email: user@example.com" \
                       -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                       -H "Content-Type: application/json"
                  Response (example)
                  {
                    "success": true,
                    "errors": [],
                    "messages": [],
                    "result": [
                      {
                        "id": "01a7362d577a6c3019a474fd6f485823",
                        "name": "Demo Account",
                        "settings": {
                          "enforce_twofactor": false,
                          "use_account_custom_ns_by_default": false
                        },
                        "created_on": "2014-03-01T12:21:02.0000Z"
                      }
                    ]
                  }
                  accounts-account-details
                  cURL (example)
                  curl -X GET "https://api.cloudflare.com/client/v4/accounts/01a7362d577a6c3019a474fd6f485823" \
                       -H "X-Auth-Email: user@example.com" \
                       -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                       -H "Content-Type: application/json"
                  Response (example)
                  {
                    "success": true,
                    "errors": [],
                    "messages": [],
                    "result": {
                      "id": "01a7362d577a6c3019a474fd6f485823",
                      "name": "Demo Account",
                      "settings": {
                        "enforce_twofactor": false,
                        "use_account_custom_ns_by_default": false
                      },
                      "created_on": "2014-03-01T12:21:02.0000Z"
                    }
                  }
                  accounts-update-account

                  Optional parameters

                  Name /typeDescription /exampleConstraints
                  id
                  string

                  Account identifier tag

                  "01a7362d577a6c3019a474fd6f485823"

                  • max length: 32
                  • read only
                  name
                  string

                  Account name

                  "Demo Account"

                  • max length: 100
                  settings
                  object

                  Account settings

                  { "enforce_twofactor": false, "use_account_custom_ns_by_default": false }
                  An object with the following properties:

                  Show definition »

                    created_on
                    string (date-time)

                    describes when account was created

                    "2014-03-01T12:21:02.0000Z"

                    • read only
                    cURL (example)
                    curl -X PUT "https://api.cloudflare.com/client/v4/accounts/01a7362d577a6c3019a474fd6f485823" \
                         -H "X-Auth-Email: user@example.com" \
                         -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                         -H "Content-Type: application/json" \
                         --data '{"id":"01a7362d577a6c3019a474fd6f485823","name":"Demo Account","settings":{"enforce_twofactor":false,"use_account_custom_ns_by_default":false},"created_on":"2014-03-01T12:21:02.0000Z"}'
                    Response (example)
                    {
                      "success": true,
                      "errors": [],
                      "messages": [],
                      "result": {
                        "id": "01a7362d577a6c3019a474fd6f485823",
                        "name": "Demo Account",
                        "settings": {
                          "enforce_twofactor": false,
                          "use_account_custom_ns_by_default": false
                        },
                        "created_on": "2014-03-01T12:21:02.0000Z"
                      }
                    }
                    CodeDescription
                    1000An unknown error(<CODE>) has occurred
                    1001Invalid request
                    1002Forbidden
                    1003Account not found

                    Account Members

                    An association between a Cloudflare user and an account

                    account-members
                    account-members-list-members

                    Optional parameters

                    Name /typeDescription /exampleConstraints
                    page
                    number

                    Page number of paginated results

                    1

                    • default value: 1
                    • min value:1
                    per_page
                    number

                    Maximum number of results per page

                    20

                    • default value: 20
                    • min value:5
                    • max value:50
                    direction
                    string

                    Direction to order results

                    "desc"

                    • valid values: asc, desc
                    cURL (example)
                    curl -X GET "https://api.cloudflare.com/client/v4/accounts/01a7362d577a6c3019a474fd6f485823/members?page=1&per_page=20&direction=desc" \
                         -H "X-Auth-Email: user@example.com" \
                         -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                         -H "Content-Type: application/json"
                    Response (example)
                    {
                      "success": true,
                      "errors": [],
                      "messages": [],
                      "result": [
                        {
                          "id": "4536bcfad5faccb111b47003c79917fa",
                          "code": "05dd05cce12bbed97c0d87cd78e89bc2fd41a6cee72f27f6fc84af2e45c0fac0",
                          "user": {
                            "id": "7c5dae5552338874e5053f2534d2767a",
                            "first_name": "John",
                            "last_name": "Appleseed",
                            "email": "user@example.com",
                            "two_factor_authentication_enabled": false
                          },
                          "status": "accepted",
                          "roles": [
                            {
                              "id": "3536bcfad5faccb999b47003c79917fb",
                              "name": "Account Administrator",
                              "description": "Administrative access to the entire Account",
                              "permissions": {
                                "analytics": {
                                  "read": true,
                                  "write": true
                                },
                                "billing": {
                                  "read": true,
                                  "write": true
                                },
                                "cache_purge": {
                                  "read": true,
                                  "write": true
                                },
                                "dns": {
                                  "read": true,
                                  "write": true
                                },
                                "dns_records": {
                                  "read": true,
                                  "write": true
                                },
                                "lb": {
                                  "read": true,
                                  "write": true
                                },
                                "logs": {
                                  "read": true,
                                  "write": true
                                },
                                "organization": {
                                  "read": true,
                                  "write": true
                                },
                                "ssl": {
                                  "read": true,
                                  "write": true
                                },
                                "waf": {
                                  "read": true,
                                  "write": true
                                },
                                "zones": {
                                  "read": true,
                                  "write": true
                                },
                                "zone_settings": {
                                  "read": true,
                                  "write": true
                                }
                              }
                            }
                          ]
                        }
                      ]
                    }
                    account-members-add-member

                    Required parameters

                    Name /typeDescription /exampleConstraints
                    email
                    string

                    Your contact email address

                    "user@example.com"

                    • max length: 90
                    roles
                    array

                    Array of roles associated with this member

                    [ "3536bcfad5faccb999b47003c79917fb" ]
                    An array with items in the following form:

                    Show definition »

                      Optional parameters

                      Name /typeDescription /exampleConstraints
                      status
                      string

                      A member's status in the account

                      "accepted"

                      • default value: pending
                      • valid values: accepted, pending
                      cURL (example)
                      curl -X POST "https://api.cloudflare.com/client/v4/accounts/01a7362d577a6c3019a474fd6f485823/members" \
                           -H "X-Auth-Email: user@example.com" \
                           -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                           -H "Content-Type: application/json" \
                           --data '{"email":"user@example.com","status":"accepted","roles":["3536bcfad5faccb999b47003c79917fb"]}'
                      Response (example)
                      {
                        "success": true,
                        "errors": [],
                        "messages": [],
                        "result": {
                          "id": "4536bcfad5faccb111b47003c79917fa",
                          "code": "05dd05cce12bbed97c0d87cd78e89bc2fd41a6cee72f27f6fc84af2e45c0fac0",
                          "user": {
                            "id": "7c5dae5552338874e5053f2534d2767a",
                            "first_name": "John",
                            "last_name": "Appleseed",
                            "email": "user@example.com",
                            "two_factor_authentication_enabled": false
                          },
                          "status": "accepted",
                          "roles": [
                            {
                              "id": "3536bcfad5faccb999b47003c79917fb",
                              "name": "Account Administrator",
                              "description": "Administrative access to the entire Account",
                              "permissions": {
                                "analytics": {
                                  "read": true,
                                  "write": true
                                },
                                "billing": {
                                  "read": true,
                                  "write": true
                                },
                                "cache_purge": {
                                  "read": true,
                                  "write": true
                                },
                                "dns": {
                                  "read": true,
                                  "write": true
                                },
                                "dns_records": {
                                  "read": true,
                                  "write": true
                                },
                                "lb": {
                                  "read": true,
                                  "write": true
                                },
                                "logs": {
                                  "read": true,
                                  "write": true
                                },
                                "organization": {
                                  "read": true,
                                  "write": true
                                },
                                "ssl": {
                                  "read": true,
                                  "write": true
                                },
                                "waf": {
                                  "read": true,
                                  "write": true
                                },
                                "zones": {
                                  "read": true,
                                  "write": true
                                },
                                "zone_settings": {
                                  "read": true,
                                  "write": true
                                }
                              }
                            }
                          ]
                        }
                      }
                      account-members-member-details
                      cURL (example)
                      curl -X GET "https://api.cloudflare.com/client/v4/accounts/01a7362d577a6c3019a474fd6f485823/members/4536bcfad5faccb111b47003c79917fa" \
                           -H "X-Auth-Email: user@example.com" \
                           -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                           -H "Content-Type: application/json"
                      Response (example)
                      {
                        "success": true,
                        "errors": [],
                        "messages": [],
                        "result": {
                          "id": "4536bcfad5faccb111b47003c79917fa",
                          "code": "05dd05cce12bbed97c0d87cd78e89bc2fd41a6cee72f27f6fc84af2e45c0fac0",
                          "user": {
                            "id": "7c5dae5552338874e5053f2534d2767a",
                            "first_name": "John",
                            "last_name": "Appleseed",
                            "email": "user@example.com",
                            "two_factor_authentication_enabled": false
                          },
                          "status": "accepted",
                          "roles": [
                            {
                              "id": "3536bcfad5faccb999b47003c79917fb",
                              "name": "Account Administrator",
                              "description": "Administrative access to the entire Account",
                              "permissions": {
                                "analytics": {
                                  "read": true,
                                  "write": true
                                },
                                "billing": {
                                  "read": true,
                                  "write": true
                                },
                                "cache_purge": {
                                  "read": true,
                                  "write": true
                                },
                                "dns": {
                                  "read": true,
                                  "write": true
                                },
                                "dns_records": {
                                  "read": true,
                                  "write": true
                                },
                                "lb": {
                                  "read": true,
                                  "write": true
                                },
                                "logs": {
                                  "read": true,
                                  "write": true
                                },
                                "organization": {
                                  "read": true,
                                  "write": true
                                },
                                "ssl": {
                                  "read": true,
                                  "write": true
                                },
                                "waf": {
                                  "read": true,
                                  "write": true
                                },
                                "zones": {
                                  "read": true,
                                  "write": true
                                },
                                "zone_settings": {
                                  "read": true,
                                  "write": true
                                }
                              }
                            }
                          ]
                        }
                      }
                      account-members-update-member

                      Optional parameters

                      Name /typeDescription /exampleConstraints
                      id
                      string

                      Membership identifier tag

                      "4536bcfad5faccb111b47003c79917fa"

                      • max length: 32
                      • read only
                      code
                      string

                      The unique activation code for the account membership

                      "05dd05cce12bbed97c0d87cd78e89bc2fd41a6cee72f27f6fc84af2e45c0fac0"

                      • max length: 64
                      • read only
                      user
                      object

                      { "id": "7c5dae5552338874e5053f2534d2767a", "first_name": "John", "last_name": "Appleseed", "email": "user@example.com", "two_factor_authentication_enabled": false }
                      An object with the following properties:

                      Show definition »

                      • read only
                      status
                      string

                      A member's status in the account

                      "accepted"

                      • valid values: accepted, pending, rejected
                      • read only
                      roles
                      array

                      Roles assigned to this member

                      [ { "id": "3536bcfad5faccb999b47003c79917fb", "name": "Account Administrator", "description": "Administrative access to the entire Account", "permissions": { "analytics": { "read": true, "write": true }, "billing": { "read": true, "write": true }, "cache_purge": { "read": true, "write": true }, "dns": { "read": true, "write": true }, "dns_records": { "read": true, "write": true }, "lb": { "read": true, "write": true }, "logs": { "read": true, "write": true }, "organization": { "read": true, "write": true }, "ssl": { "read": true, "write": true }, "waf": { "read": true, "write": true }, "zones": { "read": true, "write": true }, "zone_settings": { "read": true, "write": true } } } ]
                      An array with items in the following form:

                      Show definition »

                        cURL (example)
                        curl -X PUT "https://api.cloudflare.com/client/v4/accounts/01a7362d577a6c3019a474fd6f485823/members/4536bcfad5faccb111b47003c79917fa" \
                             -H "X-Auth-Email: user@example.com" \
                             -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                             -H "Content-Type: application/json" \
                             --data '{"id":"4536bcfad5faccb111b47003c79917fa","code":"05dd05cce12bbed97c0d87cd78e89bc2fd41a6cee72f27f6fc84af2e45c0fac0","user":{"id":"7c5dae5552338874e5053f2534d2767a","first_name":"John","last_name":"Appleseed","email":"user@example.com","two_factor_authentication_enabled":false},"status":"accepted","roles":[{"id":"3536bcfad5faccb999b47003c79917fb","name":"Account Administrator","description":"Administrative access to the entire Account","permissions":{"analytics":{"read":true,"write":true},"billing":{"read":true,"write":true},"cache_purge":{"read":true,"write":true},"dns":{"read":true,"write":true},"dns_records":{"read":true,"write":true},"lb":{"read":true,"write":true},"logs":{"read":true,"write":true},"organization":{"read":true,"write":true},"ssl":{"read":true,"write":true},"waf":{"read":true,"write":true},"zones":{"read":true,"write":true},"zone_settings":{"read":true,"write":true}}}]}'
                        Response (example)
                        {
                          "success": true,
                          "errors": [],
                          "messages": [],
                          "result": {
                            "id": "4536bcfad5faccb111b47003c79917fa",
                            "code": "05dd05cce12bbed97c0d87cd78e89bc2fd41a6cee72f27f6fc84af2e45c0fac0",
                            "user": {
                              "id": "7c5dae5552338874e5053f2534d2767a",
                              "first_name": "John",
                              "last_name": "Appleseed",
                              "email": "user@example.com",
                              "two_factor_authentication_enabled": false
                            },
                            "status": "accepted",
                            "roles": [
                              {
                                "id": "3536bcfad5faccb999b47003c79917fb",
                                "name": "Account Administrator",
                                "description": "Administrative access to the entire Account",
                                "permissions": {
                                  "analytics": {
                                    "read": true,
                                    "write": true
                                  },
                                  "billing": {
                                    "read": true,
                                    "write": true
                                  },
                                  "cache_purge": {
                                    "read": true,
                                    "write": true
                                  },
                                  "dns": {
                                    "read": true,
                                    "write": true
                                  },
                                  "dns_records": {
                                    "read": true,
                                    "write": true
                                  },
                                  "lb": {
                                    "read": true,
                                    "write": true
                                  },
                                  "logs": {
                                    "read": true,
                                    "write": true
                                  },
                                  "organization": {
                                    "read": true,
                                    "write": true
                                  },
                                  "ssl": {
                                    "read": true,
                                    "write": true
                                  },
                                  "waf": {
                                    "read": true,
                                    "write": true
                                  },
                                  "zones": {
                                    "read": true,
                                    "write": true
                                  },
                                  "zone_settings": {
                                    "read": true,
                                    "write": true
                                  }
                                }
                              }
                            ]
                          }
                        }
                        account-members-remove-member
                        cURL (example)
                        curl -X DELETE "https://api.cloudflare.com/client/v4/accounts/01a7362d577a6c3019a474fd6f485823/members/4536bcfad5faccb111b47003c79917fa" \
                             -H "X-Auth-Email: user@example.com" \
                             -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                             -H "Content-Type: application/json"
                        Response (example)
                        {
                          "success": true,
                          "errors": [],
                          "messages": [],
                          "result": {
                            "id": "9a7806061c88ada191ed06f989cc3dac"
                          }
                        }

                        Account Roles

                        A Role defines what permissions a Member of an Account has.

                        account-roles
                        account-roles-list-roles
                        cURL (example)
                        curl -X GET "https://api.cloudflare.com/client/v4/accounts/01a7362d577a6c3019a474fd6f485823/roles" \
                             -H "X-Auth-Email: user@example.com" \
                             -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                             -H "Content-Type: application/json"
                        Response (example)
                        {
                          "success": true,
                          "errors": [],
                          "messages": [],
                          "result": [
                            {
                              "id": "3536bcfad5faccb999b47003c79917fb",
                              "name": "Account Administrator",
                              "description": "Administrative access to the entire Account",
                              "permissions": {
                                "analytics": {
                                  "read": true,
                                  "write": true
                                },
                                "billing": {
                                  "read": true,
                                  "write": true
                                },
                                "cache_purge": {
                                  "read": true,
                                  "write": true
                                },
                                "dns": {
                                  "read": true,
                                  "write": true
                                },
                                "dns_records": {
                                  "read": true,
                                  "write": true
                                },
                                "lb": {
                                  "read": true,
                                  "write": true
                                },
                                "logs": {
                                  "read": true,
                                  "write": true
                                },
                                "organization": {
                                  "read": true,
                                  "write": true
                                },
                                "ssl": {
                                  "read": true,
                                  "write": true
                                },
                                "waf": {
                                  "read": true,
                                  "write": true
                                },
                                "zones": {
                                  "read": true,
                                  "write": true
                                },
                                "zone_settings": {
                                  "read": true,
                                  "write": true
                                }
                              }
                            }
                          ]
                        }
                        account-roles-role-details
                        cURL (example)
                        curl -X GET "https://api.cloudflare.com/client/v4/accounts/01a7362d577a6c3019a474fd6f485823/roles/3536bcfad5faccb999b47003c79917fb" \
                             -H "X-Auth-Email: user@example.com" \
                             -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                             -H "Content-Type: application/json"
                        Response (example)
                        {
                          "success": true,
                          "errors": [],
                          "messages": [],
                          "result": {
                            "id": "3536bcfad5faccb999b47003c79917fb",
                            "name": "Account Administrator",
                            "description": "Administrative access to the entire Account",
                            "permissions": {
                              "analytics": {
                                "read": true,
                                "write": true
                              },
                              "billing": {
                                "read": true,
                                "write": true
                              },
                              "cache_purge": {
                                "read": true,
                                "write": true
                              },
                              "dns": {
                                "read": true,
                                "write": true
                              },
                              "dns_records": {
                                "read": true,
                                "write": true
                              },
                              "lb": {
                                "read": true,
                                "write": true
                              },
                              "logs": {
                                "read": true,
                                "write": true
                              },
                              "organization": {
                                "read": true,
                                "write": true
                              },
                              "ssl": {
                                "read": true,
                                "write": true
                              },
                              "waf": {
                                "read": true,
                                "write": true
                              },
                              "zones": {
                                "read": true,
                                "write": true
                              },
                              "zone_settings": {
                                "read": true,
                                "write": true
                              }
                            }
                          }
                        }

                        Account Subscriptions

                        Listing of an account's subscriptions

                        account-subscriptions
                        account-subscriptions-list-subscriptions
                        cURL (example)
                        curl -X GET "https://api.cloudflare.com/client/v4/accounts/01a7362d577a6c3019a474fd6f485823/subscriptions" \
                             -H "X-Auth-Email: user@example.com" \
                             -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                             -H "Content-Type: application/json"
                        Response (example)
                        {
                          "success": true,
                          "errors": [],
                          "messages": [],
                          "result": [
                            {
                              "app": {
                                "install_id": null
                              },
                              "id": "506e3185e9c882d175a2d0cb0093d9f2",
                              "state": "Paid",
                              "price": 20,
                              "currency": "USD",
                              "component_values": [
                                {
                                  "name": "page_rules",
                                  "value": 20,
                                  "default": 5,
                                  "price": 5
                                }
                              ],
                              "zone": {
                                "id": "023e105f4ecef8ad9ca31a8372d0c353",
                                "name": "example.com"
                              },
                              "frequency": "monthly",
                              "rate_plan": {
                                "id": "free",
                                "public_name": "Business Plan",
                                "currency": "USD",
                                "scope": "zone",
                                "sets": [
                                  {}
                                ],
                                "is_contract": false,
                                "externally_managed": false
                              },
                              "current_period_end": "2014-03-31T12:20:00Z",
                              "current_period_start": "2014-05-11T12:20:00Z"
                            }
                          ]
                        }
                        account-subscriptions-create-subscription

                        Optional parameters

                        Name /typeDescription /exampleConstraints
                        app

                        { "install_id": null }
                        An object with the following properties:

                        Show definition »

                          current_period_end
                          string (date-time)

                          The end of the current period, and also when the next billing is due

                          "2014-03-31T12:20:00Z"

                          • read only
                          component_values
                          array

                          The list of add-ons subscribed to

                          [ { "name": "page_rules", "value": 20, "default": 5, "price": 5 } ]
                          An array with items in the following form:

                          Show definition »

                            rate_plan
                            object

                            The rate plan applied to the subscription

                            { "id": "free", "public_name": "Business Plan", "currency": "USD", "scope": "zone", "sets": [ {} ], "is_contract": false, "externally_managed": false }
                            An object with the following properties:

                            Show definition »

                              price
                              number

                              The price of the subscription that will be billed, in US dollars

                              20

                              • read only
                              current_period_start
                              string (date-time)

                              When the current billing period started, may be the same as InitialPeriodStart if this is the first period

                              "2014-05-11T12:20:00Z"

                              • read only
                              zone
                              object

                              A simple zone object. May have null properties if not a zone subscription.

                              { "id": "023e105f4ecef8ad9ca31a8372d0c353", "name": "example.com" }
                              An object with the following properties:

                              Show definition »

                                currency
                                string

                                The monetary unit in which pricing information is displayed

                                "USD"

                                • read only
                                state
                                string

                                The state that the subscription is in

                                "Paid"

                                • valid values: Trial, Provisioned, Paid, AwaitingPayment, Cancelled, Failed, Expired
                                • read only
                                id
                                string

                                Subscription identifier tag

                                "506e3185e9c882d175a2d0cb0093d9f2"

                                • max length: 32
                                • read only
                                frequency
                                string

                                How often the subscription is renewed automatically

                                "monthly"

                                • valid values: weekly, monthly, quarterly, yearly
                                cURL (example)
                                curl -X POST "https://api.cloudflare.com/client/v4/accounts/01a7362d577a6c3019a474fd6f485823/subscriptions" \
                                     -H "X-Auth-Email: user@example.com" \
                                     -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                     -H "Content-Type: application/json" \
                                     --data '{"app":{"install_id":null},"id":"506e3185e9c882d175a2d0cb0093d9f2","state":"Paid","price":20,"currency":"USD","component_values":[{"name":"page_rules","value":20,"default":5,"price":5}],"zone":{"id":"023e105f4ecef8ad9ca31a8372d0c353","name":"example.com"},"frequency":"monthly","rate_plan":{"id":"free","public_name":"Business Plan","currency":"USD","scope":"zone","sets":[{}],"is_contract":false,"externally_managed":false},"current_period_end":"2014-03-31T12:20:00Z","current_period_start":"2014-05-11T12:20:00Z"}'
                                Response (example)
                                {
                                  "success": true,
                                  "errors": [],
                                  "messages": [],
                                  "result": {
                                    "app": {
                                      "install_id": null
                                    },
                                    "id": "506e3185e9c882d175a2d0cb0093d9f2",
                                    "state": "Paid",
                                    "price": 20,
                                    "currency": "USD",
                                    "component_values": [
                                      {
                                        "name": "page_rules",
                                        "value": 20,
                                        "default": 5,
                                        "price": 5
                                      }
                                    ],
                                    "zone": {
                                      "id": "023e105f4ecef8ad9ca31a8372d0c353",
                                      "name": "example.com"
                                    },
                                    "frequency": "monthly",
                                    "rate_plan": {
                                      "id": "free",
                                      "public_name": "Business Plan",
                                      "currency": "USD",
                                      "scope": "zone",
                                      "sets": [
                                        {}
                                      ],
                                      "is_contract": false,
                                      "externally_managed": false
                                    },
                                    "current_period_end": "2014-03-31T12:20:00Z",
                                    "current_period_start": "2014-05-11T12:20:00Z"
                                  }
                                }
                                account-subscriptions-update-subscription

                                Optional parameters

                                Name /typeDescription /exampleConstraints
                                app

                                { "install_id": null }
                                An object with the following properties:

                                Show definition »

                                  current_period_end
                                  string (date-time)

                                  The end of the current period, and also when the next billing is due

                                  "2014-03-31T12:20:00Z"

                                  • read only
                                  component_values
                                  array

                                  The list of add-ons subscribed to

                                  [ { "name": "page_rules", "value": 20, "default": 5, "price": 5 } ]
                                  An array with items in the following form:

                                  Show definition »

                                    rate_plan
                                    object

                                    The rate plan applied to the subscription

                                    { "id": "free", "public_name": "Business Plan", "currency": "USD", "scope": "zone", "sets": [ {} ], "is_contract": false, "externally_managed": false }
                                    An object with the following properties:

                                    Show definition »

                                      price
                                      number

                                      The price of the subscription that will be billed, in US dollars

                                      20

                                      • read only
                                      current_period_start
                                      string (date-time)

                                      When the current billing period started, may be the same as InitialPeriodStart if this is the first period

                                      "2014-05-11T12:20:00Z"

                                      • read only
                                      zone
                                      object

                                      A simple zone object. May have null properties if not a zone subscription.

                                      { "id": "023e105f4ecef8ad9ca31a8372d0c353", "name": "example.com" }
                                      An object with the following properties:

                                      Show definition »

                                        currency
                                        string

                                        The monetary unit in which pricing information is displayed

                                        "USD"

                                        • read only
                                        state
                                        string

                                        The state that the subscription is in

                                        "Paid"

                                        • valid values: Trial, Provisioned, Paid, AwaitingPayment, Cancelled, Failed, Expired
                                        • read only
                                        id
                                        string

                                        Subscription identifier tag

                                        "506e3185e9c882d175a2d0cb0093d9f2"

                                        • max length: 32
                                        • read only
                                        frequency
                                        string

                                        How often the subscription is renewed automatically

                                        "monthly"

                                        • valid values: weekly, monthly, quarterly, yearly
                                        cURL (example)
                                        curl -X PUT "https://api.cloudflare.com/client/v4/accounts/01a7362d577a6c3019a474fd6f485823/subscriptions/506e3185e9c882d175a2d0cb0093d9f2" \
                                             -H "X-Auth-Email: user@example.com" \
                                             -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                             -H "Content-Type: application/json" \
                                             --data '{"app":{"install_id":null},"id":"506e3185e9c882d175a2d0cb0093d9f2","state":"Paid","price":20,"currency":"USD","component_values":[{"name":"page_rules","value":20,"default":5,"price":5}],"zone":{"id":"023e105f4ecef8ad9ca31a8372d0c353","name":"example.com"},"frequency":"monthly","rate_plan":{"id":"free","public_name":"Business Plan","currency":"USD","scope":"zone","sets":[{}],"is_contract":false,"externally_managed":false},"current_period_end":"2014-03-31T12:20:00Z","current_period_start":"2014-05-11T12:20:00Z"}'
                                        Response (example)
                                        {
                                          "success": true,
                                          "errors": [],
                                          "messages": [],
                                          "result": {
                                            "app": {
                                              "install_id": null
                                            },
                                            "id": "506e3185e9c882d175a2d0cb0093d9f2",
                                            "state": "Paid",
                                            "price": 20,
                                            "currency": "USD",
                                            "component_values": [
                                              {
                                                "name": "page_rules",
                                                "value": 20,
                                                "default": 5,
                                                "price": 5
                                              }
                                            ],
                                            "zone": {
                                              "id": "023e105f4ecef8ad9ca31a8372d0c353",
                                              "name": "example.com"
                                            },
                                            "frequency": "monthly",
                                            "rate_plan": {
                                              "id": "free",
                                              "public_name": "Business Plan",
                                              "currency": "USD",
                                              "scope": "zone",
                                              "sets": [
                                                {}
                                              ],
                                              "is_contract": false,
                                              "externally_managed": false
                                            },
                                            "current_period_end": "2014-03-31T12:20:00Z",
                                            "current_period_start": "2014-05-11T12:20:00Z"
                                          }
                                        }
                                        account-subscriptions-delete-subscription
                                        cURL (example)
                                        curl -X DELETE "https://api.cloudflare.com/client/v4/accounts/01a7362d577a6c3019a474fd6f485823/subscriptions/506e3185e9c882d175a2d0cb0093d9f2" \
                                             -H "X-Auth-Email: user@example.com" \
                                             -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                             -H "Content-Type: application/json"
                                        Response (example)
                                        {
                                          "success": true,
                                          "errors": [],
                                          "messages": [],
                                          "result": {
                                            "subscription_id": "506e3185e9c882d175a2d0cb0093d9f2"
                                          }
                                        }

                                        Organizations

                                        An Organization is an entity which holds a set of zones for multiple users to interact with.

                                        Please use equivalent /accounts API endpoints. Account APIs provide a broader range of features and are backwards-compatible to organization APIs.

                                        organizations

                                        Deprecation Warning

                                        End of life Date: February 4, 2020

                                        This endpoint and its related APIs are deprecated in favor of the `/accounts` equivalent APIs, which have a broader range of features and are backwards compatible with these API.

                                        organizations-organization-details
                                        cURL (example)
                                        curl -X GET "https://api.cloudflare.com/client/v4/organizations/01a7362d577a6c3019a474fd6f485823" \
                                             -H "X-Auth-Email: user@example.com" \
                                             -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                             -H "Content-Type: application/json"
                                        Response (example)
                                        {
                                          "success": true,
                                          "errors": [],
                                          "messages": [],
                                          "result": {
                                            "id": "01a7362d577a6c3019a474fd6f485823",
                                            "name": "Cloudflare, Inc.",
                                            "members": [
                                              {
                                                "id": "7c5dae5552338874e5053f2534d2767a",
                                                "name": "John Smith",
                                                "email": "user@example.com",
                                                "status": "accepted",
                                                "roles": [
                                                  {
                                                    "id": "3536bcfad5faccb999b47003c79917fb",
                                                    "name": "Organization Admin",
                                                    "description": "Administrative access to the entire Organization",
                                                    "permissions": [
                                                      "#zones:read"
                                                    ]
                                                  }
                                                ]
                                              }
                                            ],
                                            "invites": [
                                              {
                                                "id": "4f5f0c14a2a41d5063dd301b2f829f04",
                                                "invited_member_id": "5a7805061c76ada191ed06f989cc3dac",
                                                "invited_member_email": "user@example.com",
                                                "organization_id": "5a7805061c76ada191ed06f989cc3dac",
                                                "organization_name": "Cloudflare, Inc.",
                                                "roles": [
                                                  {
                                                    "id": "3536bcfad5faccb999b47003c79917fb",
                                                    "name": "Organization Admin",
                                                    "description": "Administrative access to the entire Organization",
                                                    "permissions": [
                                                      "#zones:read"
                                                    ]
                                                  }
                                                ],
                                                "invited_by": "user@example.com",
                                                "invited_on": "2014-01-01T05:20:00Z",
                                                "expires_on": "2014-01-01T05:20:00Z",
                                                "organization_is_enforcing_twofactor": true,
                                                "status": "accepted"
                                              }
                                            ],
                                            "roles": [
                                              {
                                                "id": "3536bcfad5faccb999b47003c79917fb",
                                                "name": "Organization Admin",
                                                "description": "Administrative access to the entire Organization",
                                                "permissions": [
                                                  "#zones:read"
                                                ]
                                              }
                                            ]
                                          }
                                        }

                                        Deprecation Warning

                                        End of life Date: February 4, 2020

                                        This endpoint and its related APIs are deprecated in favor of the `/accounts` equivalent APIs, which have a broader range of features and are backwards compatible with these API.

                                        organizations-edit-organization

                                        Optional parameters

                                        Name /typeDescription /exampleConstraints
                                        name
                                        string

                                        Organization Name

                                        "Cloudflare, Inc."

                                        • max length: 100
                                        cURL (example)
                                        curl -X PATCH "https://api.cloudflare.com/client/v4/organizations/01a7362d577a6c3019a474fd6f485823" \
                                             -H "X-Auth-Email: user@example.com" \
                                             -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                             -H "Content-Type: application/json" \
                                             --data '{"name":"Cloudflare, Inc."}'
                                        Response (example)
                                        {
                                          "success": true,
                                          "errors": [],
                                          "messages": [],
                                          "result": {
                                            "id": "01a7362d577a6c3019a474fd6f485823",
                                            "name": "Cloudflare, Inc.",
                                            "members": [
                                              {
                                                "id": "7c5dae5552338874e5053f2534d2767a",
                                                "name": "John Smith",
                                                "email": "user@example.com",
                                                "status": "accepted",
                                                "roles": [
                                                  {
                                                    "id": "3536bcfad5faccb999b47003c79917fb",
                                                    "name": "Organization Admin",
                                                    "description": "Administrative access to the entire Organization",
                                                    "permissions": [
                                                      "#zones:read"
                                                    ]
                                                  }
                                                ]
                                              }
                                            ],
                                            "invites": [
                                              {
                                                "id": "4f5f0c14a2a41d5063dd301b2f829f04",
                                                "invited_member_id": "5a7805061c76ada191ed06f989cc3dac",
                                                "invited_member_email": "user@example.com",
                                                "organization_id": "5a7805061c76ada191ed06f989cc3dac",
                                                "organization_name": "Cloudflare, Inc.",
                                                "roles": [
                                                  {
                                                    "id": "3536bcfad5faccb999b47003c79917fb",
                                                    "name": "Organization Admin",
                                                    "description": "Administrative access to the entire Organization",
                                                    "permissions": [
                                                      "#zones:read"
                                                    ]
                                                  }
                                                ],
                                                "invited_by": "user@example.com",
                                                "invited_on": "2014-01-01T05:20:00Z",
                                                "expires_on": "2014-01-01T05:20:00Z",
                                                "organization_is_enforcing_twofactor": true,
                                                "status": "accepted"
                                              }
                                            ],
                                            "roles": [
                                              {
                                                "id": "3536bcfad5faccb999b47003c79917fb",
                                                "name": "Organization Admin",
                                                "description": "Administrative access to the entire Organization",
                                                "permissions": [
                                                  "#zones:read"
                                                ]
                                              }
                                            ]
                                          }
                                        }

                                        Organization Invites

                                        Invitations to potential members that this organization has created

                                        Please use equivalent /accounts API endpoints. Account APIs provide a broader range of features and are backwards-compatible to organization APIs.

                                        organization-invites

                                        Deprecation Warning

                                        End of life Date: February 4, 2020

                                        This endpoint and its related APIs are deprecated in favor of the `/accounts` equivalent APIs, which have a broader range of features and are backwards compatible with these API.

                                        organization-invites-list-invitations
                                        cURL (example)
                                        curl -X GET "https://api.cloudflare.com/client/v4/organizations/01a7362d577a6c3019a474fd6f485823/invites" \
                                             -H "X-Auth-Email: user@example.com" \
                                             -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                             -H "Content-Type: application/json"
                                        Response (example)
                                        {
                                          "success": true,
                                          "errors": [],
                                          "messages": [],
                                          "result": [
                                            {
                                              "id": "4f5f0c14a2a41d5063dd301b2f829f04",
                                              "invited_member_id": "5a7805061c76ada191ed06f989cc3dac",
                                              "invited_member_email": "user@example.com",
                                              "organization_id": "5a7805061c76ada191ed06f989cc3dac",
                                              "organization_name": "Cloudflare, Inc.",
                                              "roles": [
                                                {
                                                  "id": "3536bcfad5faccb999b47003c79917fb",
                                                  "name": "Organization Admin",
                                                  "description": "Administrative access to the entire Organization",
                                                  "permissions": [
                                                    "#zones:read"
                                                  ]
                                                }
                                              ],
                                              "invited_by": "user@example.com",
                                              "invited_on": "2014-01-01T05:20:00Z",
                                              "expires_on": "2014-01-01T05:20:00Z",
                                              "organization_is_enforcing_twofactor": true,
                                              "status": "accepted"
                                            }
                                          ]
                                        }

                                        Deprecation Warning

                                        End of life Date: February 4, 2020

                                        This endpoint and its related APIs are deprecated in favor of the `/accounts` equivalent APIs, which have a broader range of features and are backwards compatible with these API.

                                        organization-invites-create-invitation

                                        Required parameters

                                        Name /typeDescription /exampleConstraints
                                        invited_member_email
                                        string

                                        Email address of the user to be added to the Organization

                                        "user@example.com"

                                        • max length: 90
                                        roles
                                        array

                                        Array of Roles associated with the invited user

                                        [ { "id": "5a7805061c76ada191ed06f989cc3dac" }, { "id": "9a7806061c88ada191ed06f989cc3dac" } ]
                                        An array with items in the following form:

                                        Show definition »

                                          Optional parameters

                                          Name /typeDescription /exampleConstraints
                                          auto_accept
                                          boolean

                                          When present and set to true, allows for the invited user to be automatically accepted to the organization. No invitation is sent.

                                          true

                                          • default value: false
                                          • valid values: (true,false)
                                          cURL (example)
                                          curl -X POST "https://api.cloudflare.com/client/v4/organizations/01a7362d577a6c3019a474fd6f485823/invites" \
                                               -H "X-Auth-Email: user@example.com" \
                                               -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                               -H "Content-Type: application/json" \
                                               --data '{"invited_member_email":"user@example.com","roles":[{"id":"5a7805061c76ada191ed06f989cc3dac"},{"id":"9a7806061c88ada191ed06f989cc3dac"}],"auto_accept":true}'
                                          Response (example)
                                          {
                                            "success": true,
                                            "errors": [],
                                            "messages": [],
                                            "result": {
                                              "id": "4f5f0c14a2a41d5063dd301b2f829f04",
                                              "invited_member_id": "5a7805061c76ada191ed06f989cc3dac",
                                              "invited_member_email": "user@example.com",
                                              "organization_id": "5a7805061c76ada191ed06f989cc3dac",
                                              "organization_name": "Cloudflare, Inc.",
                                              "roles": [
                                                {
                                                  "id": "3536bcfad5faccb999b47003c79917fb",
                                                  "name": "Organization Admin",
                                                  "description": "Administrative access to the entire Organization",
                                                  "permissions": [
                                                    "#zones:read"
                                                  ]
                                                }
                                              ],
                                              "invited_by": "user@example.com",
                                              "invited_on": "2014-01-01T05:20:00Z",
                                              "expires_on": "2014-01-01T05:20:00Z",
                                              "organization_is_enforcing_twofactor": true,
                                              "status": "accepted"
                                            }
                                          }

                                          Deprecation Warning

                                          End of life Date: February 4, 2020

                                          This endpoint and its related APIs are deprecated in favor of the `/accounts` equivalent APIs, which have a broader range of features and are backwards compatible with these API.

                                          organization-invites-invitation-details
                                          cURL (example)
                                          curl -X GET "https://api.cloudflare.com/client/v4/organizations/01a7362d577a6c3019a474fd6f485823/invites/4f5f0c14a2a41d5063dd301b2f829f04" \
                                               -H "X-Auth-Email: user@example.com" \
                                               -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                               -H "Content-Type: application/json"
                                          Response (example)
                                          {
                                            "success": true,
                                            "errors": [],
                                            "messages": [],
                                            "result": {
                                              "id": "4f5f0c14a2a41d5063dd301b2f829f04",
                                              "invited_member_id": "5a7805061c76ada191ed06f989cc3dac",
                                              "invited_member_email": "user@example.com",
                                              "organization_id": "5a7805061c76ada191ed06f989cc3dac",
                                              "organization_name": "Cloudflare, Inc.",
                                              "roles": [
                                                {
                                                  "id": "3536bcfad5faccb999b47003c79917fb",
                                                  "name": "Organization Admin",
                                                  "description": "Administrative access to the entire Organization",
                                                  "permissions": [
                                                    "#zones:read"
                                                  ]
                                                }
                                              ],
                                              "invited_by": "user@example.com",
                                              "invited_on": "2014-01-01T05:20:00Z",
                                              "expires_on": "2014-01-01T05:20:00Z",
                                              "organization_is_enforcing_twofactor": true,
                                              "status": "accepted"
                                            }
                                          }

                                          Deprecation Warning

                                          End of life Date: February 4, 2020

                                          This endpoint and its related APIs are deprecated in favor of the `/accounts` equivalent APIs, which have a broader range of features and are backwards compatible with these API.

                                          organization-invites-edit-invitation-roles

                                          Optional parameters

                                          Name /typeDescription /exampleConstraints
                                          roles
                                          array

                                          Array of Roles associated with the invited user

                                          [ "3536bcfad5faccb999b47003c79917fb" ]
                                          An array with items in the following form:

                                          Show definition »

                                            cURL (example)
                                            curl -X PATCH "https://api.cloudflare.com/client/v4/organizations/01a7362d577a6c3019a474fd6f485823/invites/4f5f0c14a2a41d5063dd301b2f829f04" \
                                                 -H "X-Auth-Email: user@example.com" \
                                                 -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                 -H "Content-Type: application/json" \
                                                 --data '{"roles":["3536bcfad5faccb999b47003c79917fb"]}'
                                            Response (example)
                                            {
                                              "success": true,
                                              "errors": [],
                                              "messages": [],
                                              "result": {
                                                "id": "4f5f0c14a2a41d5063dd301b2f829f04",
                                                "invited_member_id": "5a7805061c76ada191ed06f989cc3dac",
                                                "invited_member_email": "user@example.com",
                                                "organization_id": "5a7805061c76ada191ed06f989cc3dac",
                                                "organization_name": "Cloudflare, Inc.",
                                                "roles": [
                                                  {
                                                    "id": "3536bcfad5faccb999b47003c79917fb",
                                                    "name": "Organization Admin",
                                                    "description": "Administrative access to the entire Organization",
                                                    "permissions": [
                                                      "#zones:read"
                                                    ]
                                                  }
                                                ],
                                                "invited_by": "user@example.com",
                                                "invited_on": "2014-01-01T05:20:00Z",
                                                "expires_on": "2014-01-01T05:20:00Z",
                                                "organization_is_enforcing_twofactor": true,
                                                "status": "accepted"
                                              }
                                            }

                                            Deprecation Warning

                                            End of life Date: February 4, 2020

                                            This endpoint and its related APIs are deprecated in favor of the `/accounts` equivalent APIs, which have a broader range of features and are backwards compatible with these API.

                                            organization-invites-cancel-invitation
                                            cURL (example)
                                            curl -X DELETE "https://api.cloudflare.com/client/v4/organizations/01a7362d577a6c3019a474fd6f485823/invites/4f5f0c14a2a41d5063dd301b2f829f04" \
                                                 -H "X-Auth-Email: user@example.com" \
                                                 -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                 -H "Content-Type: application/json"
                                            Response (example)
                                            {
                                              "id": "4f5f0c14a2a41d5063dd301b2f829f04"
                                            }

                                            Organization Members

                                            A member is the association of a Cloudflare user with an Organization.

                                            Please use equivalent /accounts API endpoints. Account APIs provide a broader range of features and are backwards-compatible to organization APIs.

                                            organization-members

                                            Deprecation Warning

                                            End of life Date: February 4, 2020

                                            This endpoint and its related APIs are deprecated in favor of the `/accounts` equivalent APIs, which have a broader range of features and are backwards compatible with these API.

                                            organization-members-list-members
                                            cURL (example)
                                            curl -X GET "https://api.cloudflare.com/client/v4/organizations/01a7362d577a6c3019a474fd6f485823/members" \
                                                 -H "X-Auth-Email: user@example.com" \
                                                 -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                 -H "Content-Type: application/json"
                                            Response (example)
                                            {
                                              "success": true,
                                              "errors": [],
                                              "messages": [],
                                              "result": [
                                                {
                                                  "id": "7c5dae5552338874e5053f2534d2767a",
                                                  "name": "John Smith",
                                                  "email": "user@example.com",
                                                  "status": "accepted",
                                                  "roles": [
                                                    {
                                                      "id": "3536bcfad5faccb999b47003c79917fb",
                                                      "name": "Organization Admin",
                                                      "description": "Administrative access to the entire Organization",
                                                      "permissions": [
                                                        "#zones:read"
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            }

                                            Deprecation Warning

                                            End of life Date: February 4, 2020

                                            This endpoint and its related APIs are deprecated in favor of the `/accounts` equivalent APIs, which have a broader range of features and are backwards compatible with these API.

                                            organization-members-member-details
                                            cURL (example)
                                            curl -X GET "https://api.cloudflare.com/client/v4/organizations/01a7362d577a6c3019a474fd6f485823/members/7c5dae5552338874e5053f2534d2767a" \
                                                 -H "X-Auth-Email: user@example.com" \
                                                 -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                 -H "Content-Type: application/json"
                                            Response (example)
                                            {
                                              "success": true,
                                              "errors": [],
                                              "messages": [],
                                              "result": {
                                                "id": "7c5dae5552338874e5053f2534d2767a",
                                                "name": "John Smith",
                                                "email": "user@example.com",
                                                "status": "accepted",
                                                "roles": [
                                                  {
                                                    "id": "3536bcfad5faccb999b47003c79917fb",
                                                    "name": "Organization Admin",
                                                    "description": "Administrative access to the entire Organization",
                                                    "permissions": [
                                                      "#zones:read"
                                                    ]
                                                  }
                                                ]
                                              }
                                            }

                                            Deprecation Warning

                                            End of life Date: February 4, 2020

                                            This endpoint and its related APIs are deprecated in favor of the `/accounts` equivalent APIs, which have a broader range of features and are backwards compatible with these API.

                                            organization-members-edit-member-roles

                                            Optional parameters

                                            Name /typeDescription /exampleConstraints
                                            roles
                                            array

                                            Array of Roles associated with this Member

                                            [ "3536bcfad5faccb999b47003c79917fb" ]
                                            An array with items in the following form:

                                            Show definition »

                                              cURL (example)
                                              curl -X PATCH "https://api.cloudflare.com/client/v4/organizations/01a7362d577a6c3019a474fd6f485823/members/7c5dae5552338874e5053f2534d2767a" \
                                                   -H "X-Auth-Email: user@example.com" \
                                                   -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                   -H "Content-Type: application/json" \
                                                   --data '{"roles":["3536bcfad5faccb999b47003c79917fb"]}'
                                              Response (example)
                                              {
                                                "success": true,
                                                "errors": [],
                                                "messages": [],
                                                "result": {
                                                  "id": "7c5dae5552338874e5053f2534d2767a",
                                                  "name": "John Smith",
                                                  "email": "user@example.com",
                                                  "status": "accepted",
                                                  "roles": [
                                                    {
                                                      "id": "3536bcfad5faccb999b47003c79917fb",
                                                      "name": "Organization Admin",
                                                      "description": "Administrative access to the entire Organization",
                                                      "permissions": [
                                                        "#zones:read"
                                                      ]
                                                    }
                                                  ]
                                                }
                                              }

                                              Deprecation Warning

                                              End of life Date: February 4, 2020

                                              This endpoint and its related APIs are deprecated in favor of the `/accounts` equivalent APIs, which have a broader range of features and are backwards compatible with these API.

                                              organization-members-remove-member
                                              cURL (example)
                                              curl -X DELETE "https://api.cloudflare.com/client/v4/organizations/01a7362d577a6c3019a474fd6f485823/members/7c5dae5552338874e5053f2534d2767a" \
                                                   -H "X-Auth-Email: user@example.com" \
                                                   -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                   -H "Content-Type: application/json"
                                              Response (example)
                                              {
                                                "id": "7c5dae5552338874e5053f2534d2767a"
                                              }

                                              Organization Roles

                                              A role defines what permissions a Member of an Organization has.

                                              Please use equivalent /accounts API endpoints. Account APIs provide a broader range of features and are backwards-compatible to organization APIs.

                                              organization-roles

                                              Deprecation Warning

                                              End of life Date: February 4, 2020

                                              This endpoint and its related APIs are deprecated in favor of the `/accounts` equivalent APIs, which have a broader range of features and are backwards compatible with these API.

                                              organization-roles-list-roles
                                              cURL (example)
                                              curl -X GET "https://api.cloudflare.com/client/v4/organizations/01a7362d577a6c3019a474fd6f485823/roles" \
                                                   -H "X-Auth-Email: user@example.com" \
                                                   -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                   -H "Content-Type: application/json"
                                              Response (example)
                                              {
                                                "success": true,
                                                "errors": [],
                                                "messages": [],
                                                "result": [
                                                  {
                                                    "id": "3536bcfad5faccb999b47003c79917fb",
                                                    "name": "Organization Admin",
                                                    "description": "Administrative access to the entire Organization",
                                                    "permissions": [
                                                      "#zones:read"
                                                    ]
                                                  }
                                                ]
                                              }

                                              Deprecation Warning

                                              End of life Date: February 4, 2020

                                              This endpoint and its related APIs are deprecated in favor of the `/accounts` equivalent APIs, which have a broader range of features and are backwards compatible with these API.

                                              organization-roles-role-details
                                              cURL (example)
                                              curl -X GET "https://api.cloudflare.com/client/v4/organizations/01a7362d577a6c3019a474fd6f485823/roles/3536bcfad5faccb999b47003c79917fb" \
                                                   -H "X-Auth-Email: user@example.com" \
                                                   -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                   -H "Content-Type: application/json"
                                              Response (example)
                                              {
                                                "success": true,
                                                "errors": [],
                                                "messages": [],
                                                "result": {
                                                  "id": "3536bcfad5faccb999b47003c79917fb",
                                                  "name": "Organization Admin",
                                                  "description": "Administrative access to the entire Organization",
                                                  "permissions": [
                                                    "#zones:read"
                                                  ]
                                                }
                                              }

                                              User's Invites

                                              Your pending invitations to organizations

                                              user-s-invites
                                              user-s-invites-list-invitations
                                              cURL (example)
                                              curl -X GET "https://api.cloudflare.com/client/v4/user/invites" \
                                                   -H "X-Auth-Email: user@example.com" \
                                                   -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                   -H "Content-Type: application/json"
                                              Response (example)
                                              {
                                                "success": true,
                                                "errors": [],
                                                "messages": [],
                                                "result": [
                                                  {
                                                    "id": "4f5f0c14a2a41d5063dd301b2f829f04",
                                                    "invited_member_id": "5a7805061c76ada191ed06f989cc3dac",
                                                    "invited_member_email": "user@example.com",
                                                    "organization_id": "5a7805061c76ada191ed06f989cc3dac",
                                                    "organization_name": "Cloudflare, Inc.",
                                                    "roles": [
                                                      {
                                                        "id": "3536bcfad5faccb999b47003c79917fb",
                                                        "name": "Organization Admin",
                                                        "description": "Administrative access to the entire Organization",
                                                        "permissions": [
                                                          "#zones:read"
                                                        ]
                                                      }
                                                    ],
                                                    "invited_by": "user@example.com",
                                                    "invited_on": "2014-01-01T05:20:00Z",
                                                    "expires_on": "2014-01-01T05:20:00Z",
                                                    "status": "accepted"
                                                  }
                                                ]
                                              }
                                              user-s-invites-invitation-details
                                              cURL (example)
                                              curl -X GET "https://api.cloudflare.com/client/v4/user/invites/4f5f0c14a2a41d5063dd301b2f829f04" \
                                                   -H "X-Auth-Email: user@example.com" \
                                                   -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                   -H "Content-Type: application/json"
                                              Response (example)
                                              {
                                                "success": true,
                                                "errors": [],
                                                "messages": [],
                                                "result": {
                                                  "id": "4f5f0c14a2a41d5063dd301b2f829f04",
                                                  "invited_member_id": "5a7805061c76ada191ed06f989cc3dac",
                                                  "invited_member_email": "user@example.com",
                                                  "organization_id": "5a7805061c76ada191ed06f989cc3dac",
                                                  "organization_name": "Cloudflare, Inc.",
                                                  "roles": [
                                                    {
                                                      "id": "3536bcfad5faccb999b47003c79917fb",
                                                      "name": "Organization Admin",
                                                      "description": "Administrative access to the entire Organization",
                                                      "permissions": [
                                                        "#zones:read"
                                                      ]
                                                    }
                                                  ],
                                                  "invited_by": "user@example.com",
                                                  "invited_on": "2014-01-01T05:20:00Z",
                                                  "expires_on": "2014-01-01T05:20:00Z",
                                                  "status": "accepted"
                                                }
                                              }
                                              user-s-invites-respond-to-invitation

                                              Required parameters

                                              Name /typeDescription /exampleConstraints
                                              status

                                              Status of your response to the invitation (rejected or accepted)

                                              "accepted"

                                              • valid values: accepted, rejected
                                              cURL (example)
                                              curl -X PATCH "https://api.cloudflare.com/client/v4/user/invites/4f5f0c14a2a41d5063dd301b2f829f04" \
                                                   -H "X-Auth-Email: user@example.com" \
                                                   -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                   -H "Content-Type: application/json" \
                                                   --data '{"status":"accepted"}'
                                              Response (example)
                                              {
                                                "success": true,
                                                "errors": [],
                                                "messages": [],
                                                "result": {
                                                  "id": "4f5f0c14a2a41d5063dd301b2f829f04",
                                                  "invited_member_id": "5a7805061c76ada191ed06f989cc3dac",
                                                  "invited_member_email": "user@example.com",
                                                  "organization_id": "5a7805061c76ada191ed06f989cc3dac",
                                                  "organization_name": "Cloudflare, Inc.",
                                                  "roles": [
                                                    {
                                                      "id": "3536bcfad5faccb999b47003c79917fb",
                                                      "name": "Organization Admin",
                                                      "description": "Administrative access to the entire Organization",
                                                      "permissions": [
                                                        "#zones:read"
                                                      ]
                                                    }
                                                  ],
                                                  "invited_by": "user@example.com",
                                                  "invited_on": "2014-01-01T05:20:00Z",
                                                  "expires_on": "2014-01-01T05:20:00Z",
                                                  "status": "accepted"
                                                }
                                              }

                                              User's Organizations

                                              A list of organizations this user is a member of

                                              Please use equivalent /accounts API endpoints. Account APIs provide a broader range of features and are backwards-compatible to organization APIs.

                                              user-s-organizations
                                              user-s-organizations-list-organizations

                                              Optional parameters

                                              Name /typeDescription /exampleConstraints
                                              status
                                              string

                                              Whether or not the user is a member of the organization or has an inivitation pending

                                              "member"

                                              • valid values: member, invited
                                              name
                                              string

                                              Organization Name

                                              "Cloudflare, Inc."

                                              • max length: 100
                                              page
                                              number

                                              Page number of paginated results

                                              1

                                              • default value: 1
                                              • min value:1
                                              per_page
                                              number

                                              Number of organizations per page

                                              20

                                              • default value: 20
                                              • min value:5
                                              • max value:50
                                              order
                                              string

                                              Field to order organizations by

                                              "status"

                                              • valid values: id, name, status
                                              direction
                                              string

                                              Direction to order organizations

                                              "desc"

                                              • valid values: asc, desc
                                              match
                                              string

                                              Whether to match all search requirements or at least one (any)

                                              "all"

                                              • default value: all
                                              • valid values: any, all
                                              cURL (example)
                                              curl -X GET "https://api.cloudflare.com/client/v4/user/organizations?status=member&name=Cloudflare, Inc.&page=1&per_page=20&order=status&direction=desc&match=all" \
                                                   -H "X-Auth-Email: user@example.com" \
                                                   -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                   -H "Content-Type: application/json"
                                              Response (example)
                                              {
                                                "success": true,
                                                "errors": [],
                                                "messages": [],
                                                "result": [
                                                  {
                                                    "id": "01a7362d577a6c3019a474fd6f485823",
                                                    "name": "Cloudflare, Inc.",
                                                    "status": "member",
                                                    "permissions": [
                                                      "#zones:read"
                                                    ],
                                                    "roles": [
                                                      "All Privileges - Super Administrator"
                                                    ]
                                                  }
                                                ]
                                              }
                                              user-s-organizations-organization-details
                                              cURL (example)
                                              curl -X GET "https://api.cloudflare.com/client/v4/user/organizations/01a7362d577a6c3019a474fd6f485823" \
                                                   -H "X-Auth-Email: user@example.com" \
                                                   -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                   -H "Content-Type: application/json"
                                              Response (example)
                                              {
                                                "success": true,
                                                "errors": [],
                                                "messages": [],
                                                "result": {
                                                  "id": "01a7362d577a6c3019a474fd6f485823",
                                                  "name": "Cloudflare, Inc.",
                                                  "status": "member",
                                                  "permissions": [
                                                    "#zones:read"
                                                  ],
                                                  "roles": [
                                                    "All Privileges - Super Administrator"
                                                  ]
                                                }
                                              }
                                              user-s-organizations-leave-organization
                                              cURL (example)
                                              curl -X DELETE "https://api.cloudflare.com/client/v4/user/organizations/01a7362d577a6c3019a474fd6f485823" \
                                                   -H "X-Auth-Email: user@example.com" \
                                                   -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                   -H "Content-Type: application/json"
                                              Response (example)
                                              {
                                                "id": "01a7362d577a6c3019a474fd6f485823"
                                              }

                                              User Billing Profile

                                              A user billing profile

                                              user-billing-profile
                                              user-billing-profile-billing-profile-details
                                              cURL (example)
                                              curl -X GET "https://api.cloudflare.com/client/v4/user/billing/profile" \
                                                   -H "X-Auth-Email: user@example.com" \
                                                   -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                   -H "Content-Type: application/json"
                                              Response (example)
                                              {
                                                "success": true,
                                                "errors": [],
                                                "messages": [],
                                                "result": {
                                                  "id": "0020c268dbf54e975e7fe8563df49d52",
                                                  "first_name": "Bob",
                                                  "last_name": "Smith",
                                                  "address": "123 3rd St.",
                                                  "address2": "Apt 123",
                                                  "company": "Cloudflare",
                                                  "city": "San Francisco",
                                                  "state": "CA",
                                                  "zipcode": "12345",
                                                  "country": "US",
                                                  "telephone": "+1 111-867-5309",
                                                  "card_number": "xxxx-xxxx-xxxx-1234",
                                                  "card_expiry_year": 2015,
                                                  "card_expiry_month": 4,
                                                  "vat": "aaa-123-987",
                                                  "edited_on": "2014-03-01T12:21:02.0000Z",
                                                  "created_on": "2014-03-01T12:21:02.0000Z"
                                                }
                                              }

                                              User Billing History

                                              A user billing history

                                              user-billing-history
                                              user-billing-history-billing-history-details

                                              Optional parameters

                                              Name /typeDescription /exampleConstraints
                                              page
                                              number

                                              Page number of paginated results

                                              1

                                              • default value: 1
                                              • min value:1
                                              per_page
                                              number

                                              Number of items per page

                                              20

                                              • default value: 20
                                              • min value:5
                                              • max value:50
                                              order
                                              string

                                              Field to order billing history by

                                              "occured_at"

                                              • valid values: type, occured_at, action
                                              type
                                              string

                                              The billing item type

                                              "charge"

                                              • max length: 30
                                              • read only
                                              occured_at
                                              string (date-time)

                                              When the billing item was created

                                              "2014-03-01T12:21:59.3456Z"

                                              • read only
                                              action
                                              string

                                              The billing item action

                                              "subscription"

                                              • max length: 30
                                              • read only
                                              cURL (example)
                                              curl -X GET "https://api.cloudflare.com/client/v4/user/billing/history?page=1&per_page=20&order=occured_at&type=charge&occured_at=2014-03-01T12:21:59.3456Z&action=subscription" \
                                                   -H "X-Auth-Email: user@example.com" \
                                                   -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                   -H "Content-Type: application/json"
                                              Response (example)
                                              {
                                                "success": true,
                                                "errors": [],
                                                "messages": [],
                                                "result": [
                                                  {
                                                    "id": "b69a9f3492637782896352daae219e7d",
                                                    "type": "charge",
                                                    "action": "subscription",
                                                    "description": "The billing item description",
                                                    "occurred_at": "2014-03-01T12:21:59.3456Z",
                                                    "amount": 20.99,
                                                    "currency": "USD",
                                                    "zone": {
                                                      "name": "example.com"
                                                    }
                                                  }
                                                ]
                                              }

                                              User Subscription

                                              Listing of a user's subscriptions

                                              user-subscription
                                              user-subscription-get-user-subscriptions
                                              cURL (example)
                                              curl -X GET "https://api.cloudflare.com/client/v4/user/subscriptions" \
                                                   -H "X-Auth-Email: user@example.com" \
                                                   -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                   -H "Content-Type: application/json"
                                              Response (example)
                                              {
                                                "success": true,
                                                "errors": [],
                                                "messages": [],
                                                "result": [
                                                  {
                                                    "app": {
                                                      "install_id": null
                                                    },
                                                    "id": "506e3185e9c882d175a2d0cb0093d9f2",
                                                    "state": "Paid",
                                                    "price": 20,
                                                    "currency": "USD",
                                                    "component_values": [
                                                      {
                                                        "name": "page_rules",
                                                        "value": 20,
                                                        "default": 5,
                                                        "price": 5
                                                      }
                                                    ],
                                                    "zone": {
                                                      "id": "023e105f4ecef8ad9ca31a8372d0c353",
                                                      "name": "example.com"
                                                    },
                                                    "frequency": "monthly",
                                                    "rate_plan": {
                                                      "id": "free",
                                                      "public_name": "Business Plan",
                                                      "currency": "USD",
                                                      "scope": "zone",
                                                      "sets": [
                                                        {}
                                                      ],
                                                      "is_contract": false,
                                                      "externally_managed": false
                                                    },
                                                    "current_period_end": "2014-03-31T12:20:00Z",
                                                    "current_period_start": "2014-05-11T12:20:00Z"
                                                  }
                                                ]
                                              }
                                              user-subscription-update-user-subscription

                                              Optional parameters

                                              Name /typeDescription /exampleConstraints
                                              app

                                              { "install_id": null }
                                              An object with the following properties:

                                              Show definition »

                                                current_period_end
                                                string (date-time)

                                                The end of the current period, and also when the next billing is due

                                                "2014-03-31T12:20:00Z"

                                                • read only
                                                component_values
                                                array

                                                The list of add-ons subscribed to

                                                [ { "name": "page_rules", "value": 20, "default": 5, "price": 5 } ]
                                                An array with items in the following form:

                                                Show definition »

                                                  rate_plan
                                                  object

                                                  The rate plan applied to the subscription

                                                  { "id": "free", "public_name": "Business Plan", "currency": "USD", "scope": "zone", "sets": [ {} ], "is_contract": false, "externally_managed": false }
                                                  An object with the following properties:

                                                  Show definition »

                                                    price
                                                    number

                                                    The price of the subscription that will be billed, in US dollars

                                                    20

                                                    • read only
                                                    current_period_start
                                                    string (date-time)

                                                    When the current billing period started, may be the same as InitialPeriodStart if this is the first period

                                                    "2014-05-11T12:20:00Z"

                                                    • read only
                                                    zone
                                                    object

                                                    A simple zone object. May have null properties if not a zone subscription.

                                                    { "id": "023e105f4ecef8ad9ca31a8372d0c353", "name": "example.com" }
                                                    An object with the following properties:

                                                    Show definition »

                                                      currency
                                                      string

                                                      The monetary unit in which pricing information is displayed

                                                      "USD"

                                                      • read only
                                                      state
                                                      string

                                                      The state that the subscription is in

                                                      "Paid"

                                                      • valid values: Trial, Provisioned, Paid, AwaitingPayment, Cancelled, Failed, Expired
                                                      • read only
                                                      id
                                                      string

                                                      Subscription identifier tag

                                                      "506e3185e9c882d175a2d0cb0093d9f2"

                                                      • max length: 32
                                                      • read only
                                                      frequency
                                                      string

                                                      How often the subscription is renewed automatically

                                                      "monthly"

                                                      • valid values: weekly, monthly, quarterly, yearly
                                                      cURL (example)
                                                      curl -X PUT "https://api.cloudflare.com/client/v4/user/subscriptions/506e3185e9c882d175a2d0cb0093d9f2" \
                                                           -H "X-Auth-Email: user@example.com" \
                                                           -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                           -H "Content-Type: application/json" \
                                                           --data '{"app":{"install_id":null},"id":"506e3185e9c882d175a2d0cb0093d9f2","state":"Paid","price":20,"currency":"USD","component_values":[{"name":"page_rules","value":20,"default":5,"price":5}],"zone":{"id":"023e105f4ecef8ad9ca31a8372d0c353","name":"example.com"},"frequency":"monthly","rate_plan":{"id":"free","public_name":"Business Plan","currency":"USD","scope":"zone","sets":[{}],"is_contract":false,"externally_managed":false},"current_period_end":"2014-03-31T12:20:00Z","current_period_start":"2014-05-11T12:20:00Z"}'
                                                      Response (example)
                                                      {
                                                        "success": true,
                                                        "errors": [],
                                                        "messages": [],
                                                        "result": {
                                                          "app": {
                                                            "install_id": null
                                                          },
                                                          "id": "506e3185e9c882d175a2d0cb0093d9f2",
                                                          "state": "Paid",
                                                          "price": 20,
                                                          "currency": "USD",
                                                          "component_values": [
                                                            {
                                                              "name": "page_rules",
                                                              "value": 20,
                                                              "default": 5,
                                                              "price": 5
                                                            }
                                                          ],
                                                          "zone": {
                                                            "id": "023e105f4ecef8ad9ca31a8372d0c353",
                                                            "name": "example.com"
                                                          },
                                                          "frequency": "monthly",
                                                          "rate_plan": {
                                                            "id": "free",
                                                            "public_name": "Business Plan",
                                                            "currency": "USD",
                                                            "scope": "zone",
                                                            "sets": [
                                                              {}
                                                            ],
                                                            "is_contract": false,
                                                            "externally_managed": false
                                                          },
                                                          "current_period_end": "2014-03-31T12:20:00Z",
                                                          "current_period_start": "2014-05-11T12:20:00Z"
                                                        }
                                                      }
                                                      user-subscription-delete-user-subscription
                                                      cURL (example)
                                                      curl -X DELETE "https://api.cloudflare.com/client/v4/user/subscriptions/506e3185e9c882d175a2d0cb0093d9f2" \
                                                           -H "X-Auth-Email: user@example.com" \
                                                           -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                           -H "Content-Type: application/json"
                                                      Response (example)
                                                      {
                                                        "subscription_id": "506e3185e9c882d175a2d0cb0093d9f2"
                                                      }

                                                      Account Billing Profile

                                                      Account's billing profile

                                                      account-billing-profile
                                                      account-billing-profile-billing-profile-details
                                                      cURL (example)
                                                      curl -X GET "https://api.cloudflare.com/client/v4/accounts/01a7362d577a6c3019a474fd6f485823/billing/profile" \
                                                           -H "X-Auth-Email: user@example.com" \
                                                           -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                           -H "Content-Type: application/json"
                                                      Response (example)
                                                      {
                                                        "success": true,
                                                        "errors": [],
                                                        "messages": [],
                                                        "result": {
                                                          "id": "0020c268dbf54e975e7fe8563df49d52",
                                                          "first_name": "Bob",
                                                          "last_name": "Smith",
                                                          "address": "123 3rd St.",
                                                          "address2": "Apt 123",
                                                          "company": "Cloudflare",
                                                          "city": "San Francisco",
                                                          "state": "CA",
                                                          "zipcode": "12345",
                                                          "country": "US",
                                                          "telephone": "+1 111-867-5309",
                                                          "card_number": "xxxx-xxxx-xxxx-1234",
                                                          "card_expiry_year": 2015,
                                                          "card_expiry_month": 4,
                                                          "vat": "aaa-123-987",
                                                          "edited_on": "2014-03-01T12:21:02.0000Z",
                                                          "created_on": "2014-03-01T12:21:02.0000Z"
                                                        }
                                                      }

                                                      Zone Rate Plan

                                                      A zone rate plan from the billing service

                                                      zone-rate-plan
                                                      zone-rate-plan-list-available-rate-plans
                                                      cURL (example)
                                                      curl -X GET "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/available_rate_plans" \
                                                           -H "X-Auth-Email: user@example.com" \
                                                           -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                           -H "Content-Type: application/json"
                                                      Response (example)
                                                      {
                                                        "success": true,
                                                        "errors": [],
                                                        "messages": [],
                                                        "result": [
                                                          {
                                                            "id": "free",
                                                            "name": "Free Plan",
                                                            "currency": "USD",
                                                            "duration": 1,
                                                            "frequency": "monthly",
                                                            "components": [
                                                              {
                                                                "name": "page_rules",
                                                                "default": 5,
                                                                "unit_price": 1
                                                              }
                                                            ]
                                                          }
                                                        ]
                                                      }
                                                      zone-rate-plan-list-available-plans
                                                      cURL (example)
                                                      curl -X GET "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/available_plans" \
                                                           -H "X-Auth-Email: user@example.com" \
                                                           -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                           -H "Content-Type: application/json"
                                                      Response (example)
                                                      {
                                                        "success": true,
                                                        "errors": [],
                                                        "messages": [],
                                                        "result": [
                                                          {
                                                            "id": "9a7806061c88ada191ed06f989cc3dac",
                                                            "name": "Free Plan",
                                                            "currency": "USD",
                                                            "frequency": "monthly",
                                                            "price": 0,
                                                            "is_subscribed": false,
                                                            "can_subscribe": true,
                                                            "legacy_id": "free",
                                                            "legacy_discount": false,
                                                            "externally_managed": false
                                                          }
                                                        ]
                                                      }
                                                      zone-rate-plan-available-plan-details
                                                      cURL (example)
                                                      curl -X GET "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/available_plans/9a7806061c88ada191ed06f989cc3dac" \
                                                           -H "X-Auth-Email: user@example.com" \
                                                           -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                           -H "Content-Type: application/json"
                                                      Response (example)
                                                      {
                                                        "success": true,
                                                        "errors": [],
                                                        "messages": [],
                                                        "result": {
                                                          "id": "9a7806061c88ada191ed06f989cc3dac",
                                                          "name": "Free Plan",
                                                          "currency": "USD",
                                                          "frequency": "monthly",
                                                          "price": 0,
                                                          "is_subscribed": false,
                                                          "can_subscribe": true,
                                                          "legacy_id": "free",
                                                          "legacy_discount": false,
                                                          "externally_managed": false
                                                        }
                                                      }

                                                      Zone Subscription

                                                      A subscription associated with a zone containing plan and add-ons

                                                      zone-subscription
                                                      zone-subscription-zone-subscription-details
                                                      cURL (example)
                                                      curl -X GET "https://api.cloudflare.com/client/v4/zones/506e3185e9c882d175a2d0cb0093d9f2/subscription" \
                                                           -H "X-Auth-Email: user@example.com" \
                                                           -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                           -H "Content-Type: application/json"
                                                      Response (example)
                                                      {
                                                        "success": true,
                                                        "errors": [],
                                                        "messages": [],
                                                        "result": {
                                                          "app": {
                                                            "install_id": null
                                                          },
                                                          "id": "506e3185e9c882d175a2d0cb0093d9f2",
                                                          "state": "Paid",
                                                          "price": 20,
                                                          "currency": "USD",
                                                          "component_values": [
                                                            {
                                                              "name": "page_rules",
                                                              "value": 20,
                                                              "default": 5,
                                                              "price": 5
                                                            }
                                                          ],
                                                          "zone": {
                                                            "id": "023e105f4ecef8ad9ca31a8372d0c353",
                                                            "name": "example.com"
                                                          },
                                                          "frequency": "monthly",
                                                          "rate_plan": {
                                                            "id": "free",
                                                            "public_name": "Business Plan",
                                                            "currency": "USD",
                                                            "scope": "zone",
                                                            "sets": [
                                                              {}
                                                            ],
                                                            "is_contract": false,
                                                            "externally_managed": false
                                                          },
                                                          "current_period_end": "2014-03-31T12:20:00Z",
                                                          "current_period_start": "2014-05-11T12:20:00Z"
                                                        }
                                                      }
                                                      zone-subscription-update-zone-subscription

                                                      Optional parameters

                                                      Name /typeDescription /exampleConstraints
                                                      app

                                                      { "install_id": null }
                                                      An object with the following properties:

                                                      Show definition »

                                                        current_period_end
                                                        string (date-time)

                                                        The end of the current period, and also when the next billing is due

                                                        "2014-03-31T12:20:00Z"

                                                        • read only
                                                        component_values
                                                        array

                                                        The list of add-ons subscribed to

                                                        [ { "name": "page_rules", "value": 20, "default": 5, "price": 5 } ]
                                                        An array with items in the following form:

                                                        Show definition »

                                                          rate_plan
                                                          object

                                                          The rate plan applied to the subscription

                                                          { "id": "free", "public_name": "Business Plan", "currency": "USD", "scope": "zone", "sets": [ {} ], "is_contract": false, "externally_managed": false }
                                                          An object with the following properties:

                                                          Show definition »

                                                            price
                                                            number

                                                            The price of the subscription that will be billed, in US dollars

                                                            20

                                                            • read only
                                                            current_period_start
                                                            string (date-time)

                                                            When the current billing period started, may be the same as InitialPeriodStart if this is the first period

                                                            "2014-05-11T12:20:00Z"

                                                            • read only
                                                            zone
                                                            object

                                                            A simple zone object. May have null properties if not a zone subscription.

                                                            { "id": "023e105f4ecef8ad9ca31a8372d0c353", "name": "example.com" }
                                                            An object with the following properties:

                                                            Show definition »

                                                              currency
                                                              string

                                                              The monetary unit in which pricing information is displayed

                                                              "USD"

                                                              • read only
                                                              state
                                                              string

                                                              The state that the subscription is in

                                                              "Paid"

                                                              • valid values: Trial, Provisioned, Paid, AwaitingPayment, Cancelled, Failed, Expired
                                                              • read only
                                                              id
                                                              string

                                                              Subscription identifier tag

                                                              "506e3185e9c882d175a2d0cb0093d9f2"

                                                              • max length: 32
                                                              • read only
                                                              frequency
                                                              string

                                                              How often the subscription is renewed automatically

                                                              "monthly"

                                                              • valid values: weekly, monthly, quarterly, yearly
                                                              cURL (example)
                                                              curl -X PUT "https://api.cloudflare.com/client/v4/zones/506e3185e9c882d175a2d0cb0093d9f2/subscription" \
                                                                   -H "X-Auth-Email: user@example.com" \
                                                                   -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                   -H "Content-Type: application/json" \
                                                                   --data '{"app":{"install_id":null},"id":"506e3185e9c882d175a2d0cb0093d9f2","state":"Paid","price":20,"currency":"USD","component_values":[{"name":"page_rules","value":20,"default":5,"price":5}],"zone":{"id":"023e105f4ecef8ad9ca31a8372d0c353","name":"example.com"},"frequency":"monthly","rate_plan":{"id":"free","public_name":"Business Plan","currency":"USD","scope":"zone","sets":[{}],"is_contract":false,"externally_managed":false},"current_period_end":"2014-03-31T12:20:00Z","current_period_start":"2014-05-11T12:20:00Z"}'
                                                              Response (example)
                                                              {
                                                                "success": true,
                                                                "errors": [],
                                                                "messages": [],
                                                                "result": {
                                                                  "app": {
                                                                    "install_id": null
                                                                  },
                                                                  "id": "506e3185e9c882d175a2d0cb0093d9f2",
                                                                  "state": "Paid",
                                                                  "price": 20,
                                                                  "currency": "USD",
                                                                  "component_values": [
                                                                    {
                                                                      "name": "page_rules",
                                                                      "value": 20,
                                                                      "default": 5,
                                                                      "price": 5
                                                                    }
                                                                  ],
                                                                  "zone": {
                                                                    "id": "023e105f4ecef8ad9ca31a8372d0c353",
                                                                    "name": "example.com"
                                                                  },
                                                                  "frequency": "monthly",
                                                                  "rate_plan": {
                                                                    "id": "free",
                                                                    "public_name": "Business Plan",
                                                                    "currency": "USD",
                                                                    "scope": "zone",
                                                                    "sets": [
                                                                      {}
                                                                    ],
                                                                    "is_contract": false,
                                                                    "externally_managed": false
                                                                  },
                                                                  "current_period_end": "2014-03-31T12:20:00Z",
                                                                  "current_period_start": "2014-05-11T12:20:00Z"
                                                                }
                                                              }
                                                              zone-subscription-create-zone-subscription

                                                              Optional parameters

                                                              Name /typeDescription /exampleConstraints
                                                              app

                                                              { "install_id": null }
                                                              An object with the following properties:

                                                              Show definition »

                                                                current_period_end
                                                                string (date-time)

                                                                The end of the current period, and also when the next billing is due

                                                                "2014-03-31T12:20:00Z"

                                                                • read only
                                                                component_values
                                                                array

                                                                The list of add-ons subscribed to

                                                                [ { "name": "page_rules", "value": 20, "default": 5, "price": 5 } ]
                                                                An array with items in the following form:

                                                                Show definition »

                                                                  rate_plan
                                                                  object

                                                                  The rate plan applied to the subscription

                                                                  { "id": "free", "public_name": "Business Plan", "currency": "USD", "scope": "zone", "sets": [ {} ], "is_contract": false, "externally_managed": false }
                                                                  An object with the following properties:

                                                                  Show definition »

                                                                    price
                                                                    number

                                                                    The price of the subscription that will be billed, in US dollars

                                                                    20

                                                                    • read only
                                                                    current_period_start
                                                                    string (date-time)

                                                                    When the current billing period started, may be the same as InitialPeriodStart if this is the first period

                                                                    "2014-05-11T12:20:00Z"

                                                                    • read only
                                                                    zone
                                                                    object

                                                                    A simple zone object. May have null properties if not a zone subscription.

                                                                    { "id": "023e105f4ecef8ad9ca31a8372d0c353", "name": "example.com" }
                                                                    An object with the following properties:

                                                                    Show definition »

                                                                      currency
                                                                      string

                                                                      The monetary unit in which pricing information is displayed

                                                                      "USD"

                                                                      • read only
                                                                      state
                                                                      string

                                                                      The state that the subscription is in

                                                                      "Paid"

                                                                      • valid values: Trial, Provisioned, Paid, AwaitingPayment, Cancelled, Failed, Expired
                                                                      • read only
                                                                      id
                                                                      string

                                                                      Subscription identifier tag

                                                                      "506e3185e9c882d175a2d0cb0093d9f2"

                                                                      • max length: 32
                                                                      • read only
                                                                      frequency
                                                                      string

                                                                      How often the subscription is renewed automatically

                                                                      "monthly"

                                                                      • valid values: weekly, monthly, quarterly, yearly
                                                                      cURL (example)
                                                                      curl -X POST "https://api.cloudflare.com/client/v4/zones/506e3185e9c882d175a2d0cb0093d9f2/subscription" \
                                                                           -H "X-Auth-Email: user@example.com" \
                                                                           -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                           -H "Content-Type: application/json" \
                                                                           --data '{"app":{"install_id":null},"id":"506e3185e9c882d175a2d0cb0093d9f2","state":"Paid","price":20,"currency":"USD","component_values":[{"name":"page_rules","value":20,"default":5,"price":5}],"zone":{"id":"023e105f4ecef8ad9ca31a8372d0c353","name":"example.com"},"frequency":"monthly","rate_plan":{"id":"free","public_name":"Business Plan","currency":"USD","scope":"zone","sets":[{}],"is_contract":false,"externally_managed":false},"current_period_end":"2014-03-31T12:20:00Z","current_period_start":"2014-05-11T12:20:00Z"}'
                                                                      Response (example)
                                                                      {
                                                                        "success": true,
                                                                        "errors": [],
                                                                        "messages": [],
                                                                        "result": {
                                                                          "app": {
                                                                            "install_id": null
                                                                          },
                                                                          "id": "506e3185e9c882d175a2d0cb0093d9f2",
                                                                          "state": "Paid",
                                                                          "price": 20,
                                                                          "currency": "USD",
                                                                          "component_values": [
                                                                            {
                                                                              "name": "page_rules",
                                                                              "value": 20,
                                                                              "default": 5,
                                                                              "price": 5
                                                                            }
                                                                          ],
                                                                          "zone": {
                                                                            "id": "023e105f4ecef8ad9ca31a8372d0c353",
                                                                            "name": "example.com"
                                                                          },
                                                                          "frequency": "monthly",
                                                                          "rate_plan": {
                                                                            "id": "free",
                                                                            "public_name": "Business Plan",
                                                                            "currency": "USD",
                                                                            "scope": "zone",
                                                                            "sets": [
                                                                              {}
                                                                            ],
                                                                            "is_contract": false,
                                                                            "externally_managed": false
                                                                          },
                                                                          "current_period_end": "2014-03-31T12:20:00Z",
                                                                          "current_period_start": "2014-05-11T12:20:00Z"
                                                                        }
                                                                      }

                                                                      Audit Logs

                                                                      A log of changes made to your Cloudflare account

                                                                      audit-logs
                                                                      audit-logs-list-user-audit-logs

                                                                      Optional parameters

                                                                      Name /typeDescription /exampleConstraints
                                                                      actor.ip
                                                                      string

                                                                      Filter by the IP address of the request that made the change by specific IP address or valid CIDR Range

                                                                      "17.168.228.63"

                                                                        actor.email
                                                                        string (email)

                                                                        Filter by the email address of the actor that made the change

                                                                        "alice@example.com"

                                                                          zone.name
                                                                          string

                                                                          Filter by the name of the zone associated to the change.

                                                                          "example.com"

                                                                            page
                                                                            number

                                                                            Which page of results to return.

                                                                            50

                                                                            • default value: 1
                                                                            • min value:1
                                                                            per_page
                                                                            number

                                                                            How many results to return per page.

                                                                            25

                                                                            • default value: 100
                                                                            • min value:1
                                                                            • max value:1000
                                                                            action.type
                                                                            string

                                                                            Filter by the action type.

                                                                            "add"

                                                                              export
                                                                              boolean

                                                                              Indicates that this request is an export of logs in CSV format

                                                                              "true"

                                                                              • valid values: (true,false)
                                                                              since
                                                                              string (date-time)

                                                                              Limit the returned results to logs newer than the specified date. This can be a date string 2019-04-30 or an absolute timestamp that conforms to RFC3339

                                                                              "2019-04-30T01:12:20Z"

                                                                                id
                                                                                string

                                                                                Find a specific log by its ID.

                                                                                "f174be97-19b1-40d6-954d-70cd5fbd52db"

                                                                                  direction
                                                                                  string

                                                                                  Change the direction of the chronological sorting.

                                                                                  "desc"

                                                                                  • default value: desc
                                                                                  • valid values: desc, asc
                                                                                  before
                                                                                  string (date-time)

                                                                                  Limit the returned results to logs older than the specified date. This can be a date string 2019-04-30 or an absolute timestamp that conforms to RFC3339

                                                                                  "2019-04-30T01:12:20Z"

                                                                                    cURL (example)
                                                                                    curl -X GET "https://api.cloudflare.com/client/v4/user/audit_logs?id=f174be97-19b1-40d6-954d-70cd5fbd52db&export=true&action.type=add&actor.ip=17.168.228.63&actor.email=alice@example.com&since=2019-04-30T01:12:20Z&before=2019-04-30T01:12:20Z&zone.name=example.com&direction=desc&per_page=25&page=50" \
                                                                                         -H "X-Auth-Email: user@example.com" \
                                                                                         -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                         -H "Content-Type: application/json"
                                                                                    Response (example)
                                                                                    {
                                                                                      "success": true,
                                                                                      "errors": null,
                                                                                      "messages": [],
                                                                                      "result": [
                                                                                        {
                                                                                          "id": "d5b0f326-1232-4452-8858-1089bd7168ef",
                                                                                          "action": {
                                                                                            "type": "change_setting",
                                                                                            "result": true
                                                                                          },
                                                                                          "actor": {
                                                                                            "id": "f6b5de0326bb5182b8a4840ee01ec774",
                                                                                            "email": "michelle@example.com",
                                                                                            "type": "user",
                                                                                            "ip": "198.41.129.166"
                                                                                          },
                                                                                          "newValue": "low",
                                                                                          "oldValue": "high",
                                                                                          "owner": {
                                                                                            "id": "7c5dae5552338874e5053f2534d2767a"
                                                                                          },
                                                                                          "resource": {
                                                                                            "type": "zone",
                                                                                            "id": "023e105f4ecef8ad9ca31a8372d0c353"
                                                                                          },
                                                                                          "interface": "API",
                                                                                          "metadata": {
                                                                                            "zone_name": "example.com",
                                                                                            "type": "firewall",
                                                                                            "name": "security_level",
                                                                                            "value": "high"
                                                                                          },
                                                                                          "when": "2017-04-26T17:31:07Z"
                                                                                        }
                                                                                      ]
                                                                                    }
                                                                                    audit-logs-list-account-audit-logs

                                                                                    Optional parameters

                                                                                    Name /typeDescription /exampleConstraints
                                                                                    actor.ip
                                                                                    string

                                                                                    Filter by the IP address of the request that made the change by specific IP address or valid CIDR Range

                                                                                    "17.168.228.63"

                                                                                      actor.email
                                                                                      string (email)

                                                                                      Filter by the email address of the actor that made the change

                                                                                      "alice@example.com"

                                                                                        zone.name
                                                                                        string

                                                                                        Filter by the name of the zone associated to the change.

                                                                                        "example.com"

                                                                                          page
                                                                                          number

                                                                                          Which page of results to return.

                                                                                          50

                                                                                          • default value: 1
                                                                                          • min value:1
                                                                                          per_page
                                                                                          number

                                                                                          How many results to return per page.

                                                                                          25

                                                                                          • default value: 100
                                                                                          • min value:1
                                                                                          • max value:1000
                                                                                          action.type
                                                                                          string

                                                                                          Filter by the action type.

                                                                                          "add"

                                                                                            export
                                                                                            boolean

                                                                                            Indicates that this request is an export of logs in CSV format

                                                                                            "true"

                                                                                            • valid values: (true,false)
                                                                                            since
                                                                                            string (date-time)

                                                                                            Limit the returned results to logs newer than the specified date. This can be a date string 2019-04-30 or an absolute timestamp that conforms to RFC3339

                                                                                            "2019-04-30T01:12:20Z"

                                                                                              id
                                                                                              string

                                                                                              Find a specific log by its ID.

                                                                                              "f174be97-19b1-40d6-954d-70cd5fbd52db"

                                                                                                direction
                                                                                                string

                                                                                                Change the direction of the chronological sorting.

                                                                                                "desc"

                                                                                                • default value: desc
                                                                                                • valid values: desc, asc
                                                                                                before
                                                                                                string (date-time)

                                                                                                Limit the returned results to logs older than the specified date. This can be a date string 2019-04-30 or an absolute timestamp that conforms to RFC3339

                                                                                                "2019-04-30T01:12:20Z"

                                                                                                  cURL (example)
                                                                                                  curl -X GET "https://api.cloudflare.com/client/v4/accounts/01a7362d577a6c3019a474fd6f485823/audit_logs?id=f174be97-19b1-40d6-954d-70cd5fbd52db&export=true&action.type=add&actor.ip=17.168.228.63&actor.email=alice@example.com&since=2019-04-30T01:12:20Z&before=2019-04-30T01:12:20Z&zone.name=example.com&direction=desc&per_page=25&page=50" \
                                                                                                       -H "X-Auth-Email: user@example.com" \
                                                                                                       -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                       -H "Content-Type: application/json"
                                                                                                  Response (example)
                                                                                                  {
                                                                                                    "success": true,
                                                                                                    "errors": null,
                                                                                                    "messages": [],
                                                                                                    "result": [
                                                                                                      {
                                                                                                        "id": "d5b0f326-1232-4452-8858-1089bd7168ef",
                                                                                                        "action": {
                                                                                                          "type": "change_setting",
                                                                                                          "result": true
                                                                                                        },
                                                                                                        "actor": {
                                                                                                          "id": "f6b5de0326bb5182b8a4840ee01ec774",
                                                                                                          "email": "michelle@example.com",
                                                                                                          "type": "user",
                                                                                                          "ip": "198.41.129.166"
                                                                                                        },
                                                                                                        "newValue": "low",
                                                                                                        "oldValue": "high",
                                                                                                        "owner": {
                                                                                                          "id": "7c5dae5552338874e5053f2534d2767a"
                                                                                                        },
                                                                                                        "resource": {
                                                                                                          "type": "zone",
                                                                                                          "id": "023e105f4ecef8ad9ca31a8372d0c353"
                                                                                                        },
                                                                                                        "interface": "API",
                                                                                                        "metadata": {
                                                                                                          "zone_name": "example.com",
                                                                                                          "type": "firewall",
                                                                                                          "name": "security_level",
                                                                                                          "value": "high"
                                                                                                        },
                                                                                                        "when": "2017-04-26T17:31:07Z"
                                                                                                      }
                                                                                                    ]
                                                                                                  }

                                                                                                  Deprecation Warning

                                                                                                  End of life Date: February 4, 2020

                                                                                                  This endpoint and its related APIs are deprecated in favor of the `/accounts` equivalent APIs, which have a broader range of features and are backwards compatible with these API.

                                                                                                  audit-logs-list-organization-audit-logs

                                                                                                  Optional parameters

                                                                                                  Name /typeDescription /exampleConstraints
                                                                                                  actor.ip
                                                                                                  string

                                                                                                  Filter by the IP address of the request that made the change by specific IP address or valid CIDR Range

                                                                                                  "17.168.228.63"

                                                                                                    actor.email
                                                                                                    string (email)

                                                                                                    Filter by the email address of the actor that made the change

                                                                                                    "alice@example.com"

                                                                                                      zone.name
                                                                                                      string

                                                                                                      Filter by the name of the zone associated to the change.

                                                                                                      "example.com"

                                                                                                        page
                                                                                                        number

                                                                                                        Which page of results to return.

                                                                                                        50

                                                                                                        • default value: 1
                                                                                                        • min value:1
                                                                                                        per_page
                                                                                                        number

                                                                                                        How many results to return per page.

                                                                                                        25

                                                                                                        • default value: 100
                                                                                                        • min value:1
                                                                                                        • max value:1000
                                                                                                        action.type
                                                                                                        string

                                                                                                        Filter by the action type.

                                                                                                        "add"

                                                                                                          export
                                                                                                          boolean

                                                                                                          Indicates that this request is an export of logs in CSV format

                                                                                                          "true"

                                                                                                          • valid values: (true,false)
                                                                                                          since
                                                                                                          string (date-time)

                                                                                                          Limit the returned results to logs newer than the specified date. This can be a date string 2019-04-30 or an absolute timestamp that conforms to RFC3339

                                                                                                          "2019-04-30T01:12:20Z"

                                                                                                            id
                                                                                                            string

                                                                                                            Find a specific log by its ID.

                                                                                                            "f174be97-19b1-40d6-954d-70cd5fbd52db"

                                                                                                              direction
                                                                                                              string

                                                                                                              Change the direction of the chronological sorting.

                                                                                                              "desc"

                                                                                                              • default value: desc
                                                                                                              • valid values: desc, asc
                                                                                                              before
                                                                                                              string (date-time)

                                                                                                              Limit the returned results to logs older than the specified date. This can be a date string 2019-04-30 or an absolute timestamp that conforms to RFC3339

                                                                                                              "2019-04-30T01:12:20Z"

                                                                                                                cURL (example)
                                                                                                                curl -X GET "https://api.cloudflare.com/client/v4/organizations/01a7362d577a6c3019a474fd6f485823/audit_logs?id=f174be97-19b1-40d6-954d-70cd5fbd52db&export=true&action.type=add&actor.ip=17.168.228.63&actor.email=alice@example.com&since=2019-04-30T01:12:20Z&before=2019-04-30T01:12:20Z&zone.name=example.com&direction=desc&per_page=25&page=50" \
                                                                                                                     -H "X-Auth-Email: user@example.com" \
                                                                                                                     -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                     -H "Content-Type: application/json"
                                                                                                                Response (example)
                                                                                                                {
                                                                                                                  "success": true,
                                                                                                                  "errors": null,
                                                                                                                  "messages": [],
                                                                                                                  "result": [
                                                                                                                    {
                                                                                                                      "id": "d5b0f326-1232-4452-8858-1089bd7168ef",
                                                                                                                      "action": {
                                                                                                                        "type": "change_setting",
                                                                                                                        "result": true
                                                                                                                      },
                                                                                                                      "actor": {
                                                                                                                        "id": "f6b5de0326bb5182b8a4840ee01ec774",
                                                                                                                        "email": "michelle@example.com",
                                                                                                                        "type": "user",
                                                                                                                        "ip": "198.41.129.166"
                                                                                                                      },
                                                                                                                      "newValue": "low",
                                                                                                                      "oldValue": "high",
                                                                                                                      "owner": {
                                                                                                                        "id": "7c5dae5552338874e5053f2534d2767a"
                                                                                                                      },
                                                                                                                      "resource": {
                                                                                                                        "type": "zone",
                                                                                                                        "id": "023e105f4ecef8ad9ca31a8372d0c353"
                                                                                                                      },
                                                                                                                      "interface": "API",
                                                                                                                      "metadata": {
                                                                                                                        "zone_name": "example.com",
                                                                                                                        "type": "firewall",
                                                                                                                        "name": "security_level",
                                                                                                                        "value": "high"
                                                                                                                      },
                                                                                                                      "when": "2017-04-26T17:31:07Z"
                                                                                                                    }
                                                                                                                  ]
                                                                                                                }

                                                                                                                Argo Smart Routing

                                                                                                                Query, enable and disable Argo smart routing for a zone.

                                                                                                                argo-smart-routing
                                                                                                                argo-smart-routing-get-argo-smart-routing-setting
                                                                                                                cURL (example)
                                                                                                                curl -X GET "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/argo/smart_routing" \
                                                                                                                     -H "X-Auth-Email: user@example.com" \
                                                                                                                     -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                     -H "Content-Type: application/json"
                                                                                                                Response (example)
                                                                                                                {
                                                                                                                  "success": true,
                                                                                                                  "errors": [],
                                                                                                                  "messages": [],
                                                                                                                  "result": {
                                                                                                                    "id": "smart_routing",
                                                                                                                    "value": "on",
                                                                                                                    "editable": true,
                                                                                                                    "modified_on": "2019-02-20T22:37:07.107449Z"
                                                                                                                  }
                                                                                                                }
                                                                                                                argo-smart-routing-patch-argo-smart-routing-setting

                                                                                                                Required parameters

                                                                                                                Name /typeDescription /exampleConstraints
                                                                                                                value
                                                                                                                string

                                                                                                                Enablement of Argo smart routing

                                                                                                                "on"

                                                                                                                • valid values: on, off
                                                                                                                cURL (example)
                                                                                                                curl -X PATCH "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/argo/smart_routing" \
                                                                                                                     -H "X-Auth-Email: user@example.com" \
                                                                                                                     -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                     -H "Content-Type: application/json" \
                                                                                                                     --data '{"value":"on"}'
                                                                                                                Response (example)
                                                                                                                {
                                                                                                                  "success": true,
                                                                                                                  "errors": [],
                                                                                                                  "messages": [],
                                                                                                                  "result": {
                                                                                                                    "id": "smart_routing",
                                                                                                                    "value": "on",
                                                                                                                    "editable": true,
                                                                                                                    "modified_on": "2019-02-20T22:37:07.107449Z"
                                                                                                                  }
                                                                                                                }

                                                                                                                Argo Analytics for Zone

                                                                                                                Argo Smart Routing Analytics for a zone

                                                                                                                argo-analytics-for-zone
                                                                                                                argo-analytics-for-zone-argo-analytics-for-a-zone

                                                                                                                Optional parameters

                                                                                                                Name /typeDescription /exampleConstraints
                                                                                                                bins
                                                                                                                integer

                                                                                                                Number of buckets latency is split into

                                                                                                                3

                                                                                                                • min value:1
                                                                                                                • max value:1000
                                                                                                                cURL (example)
                                                                                                                curl -X GET "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/analytics/latency?bins=3" \
                                                                                                                     -H "X-Auth-Email: user@example.com" \
                                                                                                                     -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                     -H "Content-Type: application/json"
                                                                                                                Response (example)
                                                                                                                {
                                                                                                                  "success": true,
                                                                                                                  "errors": [],
                                                                                                                  "messages": [],
                                                                                                                  "result": {
                                                                                                                    "bins": 3,
                                                                                                                    "range": {
                                                                                                                      "min": 0,
                                                                                                                      "max": 2500
                                                                                                                    },
                                                                                                                    "time_range": {
                                                                                                                      "since": "2019-03-04T22:05:00Z",
                                                                                                                      "until": "2019-03-06T22:05:00Z"
                                                                                                                    },
                                                                                                                    "data": {
                                                                                                                      "labels": [
                                                                                                                        "without_argo",
                                                                                                                        "with_argo"
                                                                                                                      ],
                                                                                                                      "counts": [
                                                                                                                        [
                                                                                                                          3306,
                                                                                                                          362,
                                                                                                                          1267
                                                                                                                        ],
                                                                                                                        [
                                                                                                                          30685,
                                                                                                                          11775,
                                                                                                                          42169
                                                                                                                        ]
                                                                                                                      ],
                                                                                                                      "averages": [
                                                                                                                        192,
                                                                                                                        120
                                                                                                                      ],
                                                                                                                      "percent_smart_routed": 42.5
                                                                                                                    }
                                                                                                                  }
                                                                                                                }

                                                                                                                Argo Analytics for Geolocation

                                                                                                                Argo Smart Routing Analytics for a zone at different PoPs

                                                                                                                argo-analytics-for-geolocation
                                                                                                                argo-analytics-for-geolocation-argo-analytics-for-a-zone-at-differnt-pops
                                                                                                                cURL (example)
                                                                                                                curl -X GET "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/analytics/latency/colos" \
                                                                                                                     -H "X-Auth-Email: user@example.com" \
                                                                                                                     -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                     -H "Content-Type: application/json"
                                                                                                                Response (example)
                                                                                                                {
                                                                                                                  "success": true,
                                                                                                                  "errors": [],
                                                                                                                  "messages": [],
                                                                                                                  "result": {
                                                                                                                    "type": "FeatureCollection",
                                                                                                                    "features": [
                                                                                                                      {
                                                                                                                        "properties": {
                                                                                                                          "code": "ATL",
                                                                                                                          "argo_req_count": 15644,
                                                                                                                          "pct_avg_change": -0.38009502863254624,
                                                                                                                          "no_argo_avg": 319.0564263322884,
                                                                                                                          "argo_avg": 197.78466483011937
                                                                                                                        },
                                                                                                                        "type": "Feature",
                                                                                                                        "geometry": {
                                                                                                                          "type": "Point",
                                                                                                                          "coordinates": [
                                                                                                                            -84.44403,
                                                                                                                            33.640068
                                                                                                                          ]
                                                                                                                        }
                                                                                                                      }
                                                                                                                    ]
                                                                                                                  }
                                                                                                                }

                                                                                                                Zone

                                                                                                                A Zone is a domain name along with its subdomains and other identities

                                                                                                                zone
                                                                                                                zone-list-zones

                                                                                                                Optional parameters

                                                                                                                Name /typeDescription /exampleConstraints
                                                                                                                match
                                                                                                                string

                                                                                                                Whether to match all search requirements or at least one (any)

                                                                                                                "all"

                                                                                                                • default value: all
                                                                                                                • valid values: any, all
                                                                                                                name
                                                                                                                string (hostname)

                                                                                                                A domain name

                                                                                                                "example.com"

                                                                                                                • max length: 253
                                                                                                                account.name
                                                                                                                string

                                                                                                                Account name

                                                                                                                "Demo Account"

                                                                                                                • max length: 100
                                                                                                                order
                                                                                                                string

                                                                                                                Field to order zones by

                                                                                                                "status"

                                                                                                                • valid values: name, status, account.id, account.name
                                                                                                                page
                                                                                                                number

                                                                                                                Page number of paginated results

                                                                                                                1

                                                                                                                • default value: 1
                                                                                                                • min value:1
                                                                                                                per_page
                                                                                                                number

                                                                                                                Number of zones per page

                                                                                                                20

                                                                                                                • default value: 20
                                                                                                                • min value:5
                                                                                                                • max value:50
                                                                                                                status
                                                                                                                string

                                                                                                                Status of the zone

                                                                                                                "active"

                                                                                                                • valid values: active, pending, initializing, moved, deleted, deactivated
                                                                                                                • read only
                                                                                                                account.id
                                                                                                                string

                                                                                                                Account identifier tag

                                                                                                                "01a7362d577a6c3019a474fd6f485823"

                                                                                                                • max length: 32
                                                                                                                • read only
                                                                                                                direction
                                                                                                                string

                                                                                                                Direction to order zones

                                                                                                                "desc"

                                                                                                                • valid values: asc, desc
                                                                                                                cURL (example)
                                                                                                                curl -X GET "https://api.cloudflare.com/client/v4/zones?name=example.com&status=active&account.id=01a7362d577a6c3019a474fd6f485823&account.name=Demo Account&page=1&per_page=20&order=status&direction=desc&match=all" \
                                                                                                                     -H "X-Auth-Email: user@example.com" \
                                                                                                                     -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                     -H "Content-Type: application/json"
                                                                                                                Response (example)
                                                                                                                {
                                                                                                                  "success": true,
                                                                                                                  "errors": [],
                                                                                                                  "messages": [],
                                                                                                                  "result": [
                                                                                                                    {
                                                                                                                      "id": "023e105f4ecef8ad9ca31a8372d0c353",
                                                                                                                      "name": "example.com",
                                                                                                                      "development_mode": 7200,
                                                                                                                      "original_name_servers": [
                                                                                                                        "ns1.originaldnshost.com",
                                                                                                                        "ns2.originaldnshost.com"
                                                                                                                      ],
                                                                                                                      "original_registrar": "GoDaddy",
                                                                                                                      "original_dnshost": "NameCheap",
                                                                                                                      "created_on": "2014-01-01T05:20:00.12345Z",
                                                                                                                      "modified_on": "2014-01-01T05:20:00.12345Z",
                                                                                                                      "activated_on": "2014-01-02T00:01:00.12345Z",
                                                                                                                      "owner": {
                                                                                                                        "id": {},
                                                                                                                        "email": {},
                                                                                                                        "type": "user"
                                                                                                                      },
                                                                                                                      "account": {
                                                                                                                        "id": "01a7362d577a6c3019a474fd6f485823",
                                                                                                                        "name": "Demo Account"
                                                                                                                      },
                                                                                                                      "permissions": [
                                                                                                                        "#zone:read",
                                                                                                                        "#zone:edit"
                                                                                                                      ],
                                                                                                                      "plan": {
                                                                                                                        "id": "e592fd9519420ba7405e1307bff33214",
                                                                                                                        "name": "Pro Plan",
                                                                                                                        "price": 20,
                                                                                                                        "currency": "USD",
                                                                                                                        "frequency": "monthly",
                                                                                                                        "legacy_id": "pro",
                                                                                                                        "is_subscribed": true,
                                                                                                                        "can_subscribe": true
                                                                                                                      },
                                                                                                                      "plan_pending": {
                                                                                                                        "id": "e592fd9519420ba7405e1307bff33214",
                                                                                                                        "name": "Pro Plan",
                                                                                                                        "price": 20,
                                                                                                                        "currency": "USD",
                                                                                                                        "frequency": "monthly",
                                                                                                                        "legacy_id": "pro",
                                                                                                                        "is_subscribed": true,
                                                                                                                        "can_subscribe": true
                                                                                                                      },
                                                                                                                      "status": "active",
                                                                                                                      "paused": false,
                                                                                                                      "type": "full",
                                                                                                                      "name_servers": [
                                                                                                                        "tony.ns.cloudflare.com",
                                                                                                                        "woz.ns.cloudflare.com"
                                                                                                                      ]
                                                                                                                    }
                                                                                                                  ]
                                                                                                                }
                                                                                                                zone-create-zone

                                                                                                                Required parameters

                                                                                                                Name /typeDescription /exampleConstraints
                                                                                                                name
                                                                                                                string

                                                                                                                The domain name

                                                                                                                "example.com"

                                                                                                                • max length: 253
                                                                                                                • read only
                                                                                                                • pattern: ^([a-zA-Z0-9][\-a-zA-Z0-9]*\.)+[\-a-zA-Z0-9]{2,20}$
                                                                                                                account
                                                                                                                object

                                                                                                                Account of which the zone is created in

                                                                                                                { "id": "01a7362d577a6c3019a474fd6f485823" }
                                                                                                                An object with the following properties:

                                                                                                                Show definition »

                                                                                                                  Optional parameters

                                                                                                                  Name /typeDescription /exampleConstraints
                                                                                                                  jump_start
                                                                                                                  boolean

                                                                                                                  Automatically attempt to fetch existing DNS records

                                                                                                                  true

                                                                                                                  • default value: false
                                                                                                                  • valid values: (true,false)
                                                                                                                  type
                                                                                                                  string

                                                                                                                  A full zone implies that DNS is hosted with Cloudflare. A partial zone is typically a partner-hosted zone or a CNAME setup.

                                                                                                                  "full"

                                                                                                                  • valid values: full, partial
                                                                                                                  cURL (example)
                                                                                                                  curl -X POST "https://api.cloudflare.com/client/v4/zones" \
                                                                                                                       -H "X-Auth-Email: user@example.com" \
                                                                                                                       -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                       -H "Content-Type: application/json" \
                                                                                                                       --data '{"name":"example.com","account":{"id":"01a7362d577a6c3019a474fd6f485823"},"jump_start":true,"type":"full"}'
                                                                                                                  Response (example)
                                                                                                                  {
                                                                                                                    "success": true,
                                                                                                                    "errors": [],
                                                                                                                    "messages": [],
                                                                                                                    "result": {
                                                                                                                      "id": "023e105f4ecef8ad9ca31a8372d0c353",
                                                                                                                      "name": "example.com",
                                                                                                                      "development_mode": 7200,
                                                                                                                      "original_name_servers": [
                                                                                                                        "ns1.originaldnshost.com",
                                                                                                                        "ns2.originaldnshost.com"
                                                                                                                      ],
                                                                                                                      "original_registrar": "GoDaddy",
                                                                                                                      "original_dnshost": "NameCheap",
                                                                                                                      "created_on": "2014-01-01T05:20:00.12345Z",
                                                                                                                      "modified_on": "2014-01-01T05:20:00.12345Z",
                                                                                                                      "activated_on": "2014-01-02T00:01:00.12345Z",
                                                                                                                      "owner": {
                                                                                                                        "id": {},
                                                                                                                        "email": {},
                                                                                                                        "type": "user"
                                                                                                                      },
                                                                                                                      "account": {
                                                                                                                        "id": "01a7362d577a6c3019a474fd6f485823",
                                                                                                                        "name": "Demo Account"
                                                                                                                      },
                                                                                                                      "permissions": [
                                                                                                                        "#zone:read",
                                                                                                                        "#zone:edit"
                                                                                                                      ],
                                                                                                                      "plan": {
                                                                                                                        "id": "e592fd9519420ba7405e1307bff33214",
                                                                                                                        "name": "Pro Plan",
                                                                                                                        "price": 20,
                                                                                                                        "currency": "USD",
                                                                                                                        "frequency": "monthly",
                                                                                                                        "legacy_id": "pro",
                                                                                                                        "is_subscribed": true,
                                                                                                                        "can_subscribe": true
                                                                                                                      },
                                                                                                                      "plan_pending": {
                                                                                                                        "id": "e592fd9519420ba7405e1307bff33214",
                                                                                                                        "name": "Pro Plan",
                                                                                                                        "price": 20,
                                                                                                                        "currency": "USD",
                                                                                                                        "frequency": "monthly",
                                                                                                                        "legacy_id": "pro",
                                                                                                                        "is_subscribed": true,
                                                                                                                        "can_subscribe": true
                                                                                                                      },
                                                                                                                      "status": "active",
                                                                                                                      "paused": false,
                                                                                                                      "type": "full",
                                                                                                                      "name_servers": [
                                                                                                                        "tony.ns.cloudflare.com",
                                                                                                                        "woz.ns.cloudflare.com"
                                                                                                                      ]
                                                                                                                    }
                                                                                                                  }
                                                                                                                  zone-zone-details
                                                                                                                  cURL (example)
                                                                                                                  curl -X GET "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353" \
                                                                                                                       -H "X-Auth-Email: user@example.com" \
                                                                                                                       -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                       -H "Content-Type: application/json"
                                                                                                                  Response (example)
                                                                                                                  {
                                                                                                                    "success": true,
                                                                                                                    "errors": [],
                                                                                                                    "messages": [],
                                                                                                                    "result": {
                                                                                                                      "id": "023e105f4ecef8ad9ca31a8372d0c353",
                                                                                                                      "name": "example.com",
                                                                                                                      "development_mode": 7200,
                                                                                                                      "original_name_servers": [
                                                                                                                        "ns1.originaldnshost.com",
                                                                                                                        "ns2.originaldnshost.com"
                                                                                                                      ],
                                                                                                                      "original_registrar": "GoDaddy",
                                                                                                                      "original_dnshost": "NameCheap",
                                                                                                                      "created_on": "2014-01-01T05:20:00.12345Z",
                                                                                                                      "modified_on": "2014-01-01T05:20:00.12345Z",
                                                                                                                      "activated_on": "2014-01-02T00:01:00.12345Z",
                                                                                                                      "owner": {
                                                                                                                        "id": {},
                                                                                                                        "email": {},
                                                                                                                        "type": "user"
                                                                                                                      },
                                                                                                                      "account": {
                                                                                                                        "id": "01a7362d577a6c3019a474fd6f485823",
                                                                                                                        "name": "Demo Account"
                                                                                                                      },
                                                                                                                      "permissions": [
                                                                                                                        "#zone:read",
                                                                                                                        "#zone:edit"
                                                                                                                      ],
                                                                                                                      "plan": {
                                                                                                                        "id": "e592fd9519420ba7405e1307bff33214",
                                                                                                                        "name": "Pro Plan",
                                                                                                                        "price": 20,
                                                                                                                        "currency": "USD",
                                                                                                                        "frequency": "monthly",
                                                                                                                        "legacy_id": "pro",
                                                                                                                        "is_subscribed": true,
                                                                                                                        "can_subscribe": true
                                                                                                                      },
                                                                                                                      "plan_pending": {
                                                                                                                        "id": "e592fd9519420ba7405e1307bff33214",
                                                                                                                        "name": "Pro Plan",
                                                                                                                        "price": 20,
                                                                                                                        "currency": "USD",
                                                                                                                        "frequency": "monthly",
                                                                                                                        "legacy_id": "pro",
                                                                                                                        "is_subscribed": true,
                                                                                                                        "can_subscribe": true
                                                                                                                      },
                                                                                                                      "status": "active",
                                                                                                                      "paused": false,
                                                                                                                      "type": "full",
                                                                                                                      "name_servers": [
                                                                                                                        "tony.ns.cloudflare.com",
                                                                                                                        "woz.ns.cloudflare.com"
                                                                                                                      ]
                                                                                                                    }
                                                                                                                  }
                                                                                                                  zone-edit-zone

                                                                                                                  Optional parameters

                                                                                                                  Name /typeDescription /exampleConstraints
                                                                                                                  paused
                                                                                                                  boolean

                                                                                                                  Indicates if the zone is only using Cloudflare DNS services. A true value means the zone will not receive security or performance benefits.

                                                                                                                  false

                                                                                                                  • default value: false
                                                                                                                  • valid values: (true,false)
                                                                                                                  • read only
                                                                                                                  vanity_name_servers
                                                                                                                  array

                                                                                                                  An array of domains used for custom name servers. This is only available for Business and Enterprise plans.

                                                                                                                  [ "ns1.example.com", "ns2.example.com" ]
                                                                                                                  An array with items in the following form:

                                                                                                                  Show definition »

                                                                                                                    plan
                                                                                                                    object

                                                                                                                    The desired plan for the zone. Changing this value will create/cancel associated subscriptions. To view available plans for this zone, see Zone Plans

                                                                                                                    { "id": "e592fd9519420ba7405e1307bff33214" }
                                                                                                                    An object with the following properties:

                                                                                                                    Show definition »

                                                                                                                      type
                                                                                                                      string

                                                                                                                      A full zone implies that DNS is hosted with Cloudflare. A partial zone is typically a partner-hosted zone or a CNAME setup. This parameter is only available to Enterprise customers or if it has been explicitly enabled on a zone.

                                                                                                                      "full"

                                                                                                                      • valid values: full, partial
                                                                                                                      cURL (example)
                                                                                                                      curl -X PATCH "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353" \
                                                                                                                           -H "X-Auth-Email: user@example.com" \
                                                                                                                           -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                           -H "Content-Type: application/json" \
                                                                                                                           --data '{"paused":false,"vanity_name_servers":["ns1.example.com","ns2.example.com"],"plan":{"id":"e592fd9519420ba7405e1307bff33214"},"type":"full"}'
                                                                                                                      Response (example)
                                                                                                                      {
                                                                                                                        "success": true,
                                                                                                                        "errors": [],
                                                                                                                        "messages": [],
                                                                                                                        "result": {
                                                                                                                          "id": "023e105f4ecef8ad9ca31a8372d0c353",
                                                                                                                          "name": "example.com",
                                                                                                                          "development_mode": 7200,
                                                                                                                          "original_name_servers": [
                                                                                                                            "ns1.originaldnshost.com",
                                                                                                                            "ns2.originaldnshost.com"
                                                                                                                          ],
                                                                                                                          "original_registrar": "GoDaddy",
                                                                                                                          "original_dnshost": "NameCheap",
                                                                                                                          "created_on": "2014-01-01T05:20:00.12345Z",
                                                                                                                          "modified_on": "2014-01-01T05:20:00.12345Z",
                                                                                                                          "activated_on": "2014-01-02T00:01:00.12345Z",
                                                                                                                          "owner": {
                                                                                                                            "id": {},
                                                                                                                            "email": {},
                                                                                                                            "type": "user"
                                                                                                                          },
                                                                                                                          "account": {
                                                                                                                            "id": "01a7362d577a6c3019a474fd6f485823",
                                                                                                                            "name": "Demo Account"
                                                                                                                          },
                                                                                                                          "permissions": [
                                                                                                                            "#zone:read",
                                                                                                                            "#zone:edit"
                                                                                                                          ],
                                                                                                                          "plan": {
                                                                                                                            "id": "e592fd9519420ba7405e1307bff33214",
                                                                                                                            "name": "Pro Plan",
                                                                                                                            "price": 20,
                                                                                                                            "currency": "USD",
                                                                                                                            "frequency": "monthly",
                                                                                                                            "legacy_id": "pro",
                                                                                                                            "is_subscribed": true,
                                                                                                                            "can_subscribe": true
                                                                                                                          },
                                                                                                                          "plan_pending": {
                                                                                                                            "id": "e592fd9519420ba7405e1307bff33214",
                                                                                                                            "name": "Pro Plan",
                                                                                                                            "price": 20,
                                                                                                                            "currency": "USD",
                                                                                                                            "frequency": "monthly",
                                                                                                                            "legacy_id": "pro",
                                                                                                                            "is_subscribed": true,
                                                                                                                            "can_subscribe": true
                                                                                                                          },
                                                                                                                          "status": "active",
                                                                                                                          "paused": false,
                                                                                                                          "type": "full",
                                                                                                                          "name_servers": [
                                                                                                                            "tony.ns.cloudflare.com",
                                                                                                                            "woz.ns.cloudflare.com"
                                                                                                                          ]
                                                                                                                        }
                                                                                                                      }
                                                                                                                      zone-delete-zone
                                                                                                                      cURL (example)
                                                                                                                      curl -X DELETE "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353" \
                                                                                                                           -H "X-Auth-Email: user@example.com" \
                                                                                                                           -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                           -H "Content-Type: application/json"
                                                                                                                      Response (example)
                                                                                                                      {
                                                                                                                        "success": true,
                                                                                                                        "errors": [],
                                                                                                                        "messages": [],
                                                                                                                        "result": {
                                                                                                                          "id": "9a7806061c88ada191ed06f989cc3dac"
                                                                                                                        }
                                                                                                                      }
                                                                                                                      zone-zone-activation-check
                                                                                                                      cURL (example)
                                                                                                                      curl -X PUT "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/activation_check" \
                                                                                                                           -H "X-Auth-Email: user@example.com" \
                                                                                                                           -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                           -H "Content-Type: application/json"
                                                                                                                      Response (example)
                                                                                                                      {
                                                                                                                        "success": true,
                                                                                                                        "errors": [],
                                                                                                                        "messages": [],
                                                                                                                        "result": {
                                                                                                                          "id": "9a7806061c88ada191ed06f989cc3dac"
                                                                                                                        }
                                                                                                                      }
                                                                                                                      zone-purge-all-files

                                                                                                                      Required parameters

                                                                                                                      Name /typeDescription /exampleConstraints
                                                                                                                      purge_everything

                                                                                                                      A flag that indicates all resources in Cloudflare's cache should be removed. Note: This may have dramatic affects on your origin server load after performing this action.

                                                                                                                      true

                                                                                                                      • valid values: true
                                                                                                                      cURL (example)
                                                                                                                      curl -X POST "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/purge_cache" \
                                                                                                                           -H "X-Auth-Email: user@example.com" \
                                                                                                                           -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                           -H "Content-Type: application/json" \
                                                                                                                           --data '{"purge_everything":true}'
                                                                                                                      Response (example)
                                                                                                                      {
                                                                                                                        "success": true,
                                                                                                                        "errors": [],
                                                                                                                        "messages": [],
                                                                                                                        "result": {
                                                                                                                          "id": "9a7806061c88ada191ed06f989cc3dac"
                                                                                                                        }
                                                                                                                      }
                                                                                                                      zone-purge-files-by-url

                                                                                                                      Optional parameters

                                                                                                                      Name /typeDescription /exampleConstraints
                                                                                                                      files
                                                                                                                      array

                                                                                                                      An array of URLs that should be removed from cache

                                                                                                                      [ "http://www.example.com/css/styles.css", { "url": "http://www.example.com/cat_picture.jpg", "headers": { "Origin": "https://www.cloudflare.com", "CF-IPCountry": "US", "CF-Device-Type": "desktop" } } ]
                                                                                                                      An array with items in the following form:

                                                                                                                      Show definition »

                                                                                                                      • max length: 30
                                                                                                                      cURL (example)
                                                                                                                      curl -X POST "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/purge_cache" \
                                                                                                                           -H "X-Auth-Email: user@example.com" \
                                                                                                                           -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                           -H "Content-Type: application/json" \
                                                                                                                           --data '{"files":["http://www.example.com/css/styles.css",{"url":"http://www.example.com/cat_picture.jpg","headers":{"Origin":"https://www.cloudflare.com","CF-IPCountry":"US","CF-Device-Type":"desktop"}}]}'
                                                                                                                      Response (example)
                                                                                                                      {
                                                                                                                        "success": true,
                                                                                                                        "errors": [],
                                                                                                                        "messages": [],
                                                                                                                        "result": {
                                                                                                                          "id": "9a7806061c88ada191ed06f989cc3dac"
                                                                                                                        }
                                                                                                                      }
                                                                                                                      zone-purge-files-by-cache-tags,-host-or-prefix

                                                                                                                      Optional parameters

                                                                                                                      Name /typeDescription /exampleConstraints
                                                                                                                      tags
                                                                                                                      array

                                                                                                                      Any assets served with a Cache-Tag header that matches one of the provided values will be purged from the Cloudflare cache

                                                                                                                      [ "some-tag", "another-tag" ]
                                                                                                                      An array with items in the following form:

                                                                                                                      Show definition »

                                                                                                                      • max length: 30
                                                                                                                      hosts
                                                                                                                      array

                                                                                                                      Any assets at URLs with a host that matches one of the provided values will be purged from the Cloudflare cache

                                                                                                                      [ "www.example.com", "images.example.com" ]
                                                                                                                      An array with items in the following form:

                                                                                                                      Show definition »

                                                                                                                      • max length: 30
                                                                                                                      prefixes
                                                                                                                      array

                                                                                                                      Any assets at URLs that match the prefix will be purged from the Cloudflare cache. For instance, a.com/b will purge a.com/b/c/d.png but not a.com/bc.png. The prefixes a.com/b and a.com/b/c are redundant.

                                                                                                                      [ "www.example.com/foo", "images.example.com/bar/baz" ]
                                                                                                                      An array with items in the following form:

                                                                                                                      Show definition »

                                                                                                                      • max length: 30
                                                                                                                      cURL (example)
                                                                                                                      curl -X POST "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/purge_cache" \
                                                                                                                           -H "X-Auth-Email: user@example.com" \
                                                                                                                           -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                           -H "Content-Type: application/json" \
                                                                                                                           --data '{"tags":["some-tag","another-tag"],"hosts":["www.example.com","images.example.com"],"prefixes":["www.example.com/foo","images.example.com/bar/baz"]}'
                                                                                                                      Response (example)
                                                                                                                      {
                                                                                                                        "success": true,
                                                                                                                        "errors": [],
                                                                                                                        "messages": [],
                                                                                                                        "result": {
                                                                                                                          "id": "9a7806061c88ada191ed06f989cc3dac"
                                                                                                                        }
                                                                                                                      }
                                                                                                                      CodeDescription
                                                                                                                      1000Invalid or missing user
                                                                                                                      1001Invalid zone identifier
                                                                                                                      1002Invalid domain
                                                                                                                      1003'jump_start' must be boolean
                                                                                                                      1006Invalid or missing zone
                                                                                                                      1008Invalid or missing Zone id
                                                                                                                      1010Bulk deal limit reached
                                                                                                                      1012Request must contain one of 'purge_everything', 'files', 'tags', 'hosts' or 'prefixes'
                                                                                                                      1013'purge_everything' must be true
                                                                                                                      1014'files', 'tags', 'hosts' or 'prefixes' must be an array
                                                                                                                      1015Unable to purge <url>
                                                                                                                      1016Unable to purge any urls
                                                                                                                      1017Unable to purge all
                                                                                                                      1018Invalid zone status
                                                                                                                      1019Zone is already paused
                                                                                                                      1020Invalid or missing zone
                                                                                                                      1021Invalid zone status
                                                                                                                      1022Zone is already unpaused
                                                                                                                      1023Invalid or missing zone
                                                                                                                      1049<domain> is not a registered domain
                                                                                                                      1050<domain> is currently being tasted. It is not currently a registered domain
                                                                                                                      1051Cloudflare is already hosting <domain>
                                                                                                                      1052An error has occurred and it has been logged. We will fix this problem promptly. We apologize for the inconvenience
                                                                                                                      1055Failed to disable <domain>
                                                                                                                      1056preserve_ini must be a boolean
                                                                                                                      1057Zone must be in 'initializing' status
                                                                                                                      1059Unable to delete zone
                                                                                                                      1061<domain> already exists
                                                                                                                      1064Not allowed to update zone step. Bad zone status
                                                                                                                      1065Not allowed to update zone step. Zone has already been set up
                                                                                                                      1066Could not promote zone to step 3
                                                                                                                      1067Invalid organization identifier passed in your organization variable
                                                                                                                      1068Permission denied
                                                                                                                      1069organization variable should be an organization object
                                                                                                                      1070This operation requires a Business or Enterprise account.
                                                                                                                      1071Vanity name server array expected.
                                                                                                                      1073A name server provided is in the wrong format.
                                                                                                                      1074Could not find a valid zone.
                                                                                                                      1075Vanity name server array count is invalid
                                                                                                                      1076Name servers have invalid IP addresses
                                                                                                                      1077Could not find a valid zone.
                                                                                                                      1078This zone has no valid vanity IPs.
                                                                                                                      1079This zone has no valid vanity name servers.
                                                                                                                      1080There is a conflict with one of the name servers.
                                                                                                                      1081There are no valid vanity name servers to disable.
                                                                                                                      1082Unable to purge '<url>'. You can only purge files for this zone
                                                                                                                      1083Unable to purge '<url>'. Rate limit reached. Please wait if you need to perform more operations
                                                                                                                      1084Unable to purge '<url>'.
                                                                                                                      1085Only one property can be updated at a time
                                                                                                                      1086Invalid property
                                                                                                                      1088Invalid/Missing Zone plan ID
                                                                                                                      1089Invalid/Missing Zone plan ID
                                                                                                                      1092Request cannot contain 'purge_everything' and any of 'files', 'tags', 'hosts' or 'prefixes'
                                                                                                                      1094Exceeded maximum amount of files that can be purged on a single request for your plan type.
                                                                                                                      1095Sorry, you do not have access to purge cache for that zone id or that zone id is invalid
                                                                                                                      1096This action is not available as your zone has been deactivated for a possible Terms of Service violation
                                                                                                                      1097This web property cannot be added to Cloudflare at this time. If you are an Enterprise customer, please contact your Customer Success Manager. Otherwise, please email abusereply@cloudflare.com with the name of the web property and a detailed explanation of your association with this web property.
                                                                                                                      1098This web property is temporarily restricted from being added to Cloudflare at this time. Please try again later, or contact Cloudflare Support with any questions.
                                                                                                                      1099We were unable to identify <domain> as a registered domain. Please ensure you are providing the root domain and not any subdomains (e.g., example.com, not subdomain.example.com)
                                                                                                                      1100Tag exceeds maximum length of 1024 characters
                                                                                                                      1101Exceeded maximum amount of 30 tags that can be purged on a single request
                                                                                                                      1102Unable to purge by tag, rate limit reached. Please wait if you need to perform more
                                                                                                                      1104Partial zone signup not allowed
                                                                                                                      1105This web property is temporarily restricted from being added to Cloudflare at this time. Please try again later, or contact Cloudflare Support with any questions.
                                                                                                                      1106Sorry, you are not allowed to create new zones. Please contact support.
                                                                                                                      1107Only enterprise zones can purge by tag.
                                                                                                                      1108Unable to update domain subscription. Please contact support for assistance.
                                                                                                                      1109Unable to update domain subscription. Please contact support for assistance.
                                                                                                                      1110Failed to lookup registrar and hosting information of <domain> at this time. Please contact Cloudflare Support or try again later.
                                                                                                                      1111Exceeded maximum amount of 30 hosts that can be purged on a single request
                                                                                                                      1112Only enterprise zones can purge by host
                                                                                                                      1113Unable to purge by host, rate limit reached. Please wait if you need to perform more operations.
                                                                                                                      1114Host exceeds maximum length of 200 characters
                                                                                                                      1115Invalid host
                                                                                                                      1116No prefixes were provided in the request. Must provide at least 1 prefixes.
                                                                                                                      1117Exceeded maximum amount of 30 prefixes that can be purged on a single request.
                                                                                                                      1118Empty prefix provided. Prefixes must not be empty.
                                                                                                                      1119URI scheme provided in prefix '<prefix>'. URI schemes must not be provided.
                                                                                                                      1120URI host was not provided in prefix '<prefix>'. Host must be provided in each prefix.
                                                                                                                      1121URI host in prefix '<prefix>' exceeds maximum length of 200 characters.
                                                                                                                      1122URI host in prefix '<prefix>' has a segment exceeding maximum length of 63 characters.
                                                                                                                      1123URI Query string was provided in prefix '<prefix>'. Query strings must not be provided.
                                                                                                                      1124URI fragment was provided in prefix '<prefix>'. Fragments must not be provided.
                                                                                                                      1125URI host in prefix '<prefix>' is not a domain. Host must be a valid domain or IPV4 address.
                                                                                                                      1126URI host in prefix '<prefix>' contains an invalid top level domain.
                                                                                                                      1127Invalid prefix '<prefix>'. Invalid Url.
                                                                                                                      1128Prefix '<prefix>' overlaps with another prefix. Prefixes must not be redundant.
                                                                                                                      1129Could not purge prefix '<prefix>'. Internal error.
                                                                                                                      1130Only enterprise zones can purge by prefix.
                                                                                                                      1131Unable to purge by prefix, rate limit reached. Please wait if you need to perform more operations
                                                                                                                      1132Unable to purge '<url>'. Resized images cannot be purged. Purge the original image instead.
                                                                                                                      1133Path too deep in '<prefix>', maximum path depth is 31.

                                                                                                                      Zone Settings

                                                                                                                      A Zone setting changes how the Zone works in relation to caching, security, or other features of Cloudflare

                                                                                                                      zone-settings
                                                                                                                      zone-settings-get-all-zone-settings
                                                                                                                      cURL (example)
                                                                                                                      curl -X GET "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/settings" \
                                                                                                                           -H "X-Auth-Email: user@example.com" \
                                                                                                                           -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                           -H "Content-Type: application/json"
                                                                                                                      Response (example)
                                                                                                                      {
                                                                                                                        "success": true,
                                                                                                                        "errors": [],
                                                                                                                        "messages": []
                                                                                                                      }
                                                                                                                      zone-settings-get-advanced-ddos-setting
                                                                                                                      cURL (example)
                                                                                                                      curl -X GET "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/settings/advanced_ddos" \
                                                                                                                           -H "X-Auth-Email: user@example.com" \
                                                                                                                           -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                           -H "Content-Type: application/json"
                                                                                                                      Response (example)
                                                                                                                      {
                                                                                                                        "success": true,
                                                                                                                        "errors": [],
                                                                                                                        "messages": [],
                                                                                                                        "result": {
                                                                                                                          "id": "advanced_ddos",
                                                                                                                          "value": "off",
                                                                                                                          "editable": true,
                                                                                                                          "modified_on": "2014-01-01T05:20:00.12345Z"
                                                                                                                        }
                                                                                                                      }
                                                                                                                      zone-settings-get-always-online-setting
                                                                                                                      cURL (example)
                                                                                                                      curl -X GET "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/settings/always_online" \
                                                                                                                           -H "X-Auth-Email: user@example.com" \
                                                                                                                           -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                           -H "Content-Type: application/json"
                                                                                                                      Response (example)
                                                                                                                      {
                                                                                                                        "success": true,
                                                                                                                        "errors": [],
                                                                                                                        "messages": [],
                                                                                                                        "result": {
                                                                                                                          "id": "always_online",
                                                                                                                          "value": "on",
                                                                                                                          "editable": true,
                                                                                                                          "modified_on": "2014-01-01T05:20:00.12345Z"
                                                                                                                        }
                                                                                                                      }
                                                                                                                      zone-settings-get-always-use-https-setting
                                                                                                                      cURL (example)
                                                                                                                      curl -X GET "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/settings/always_use_https" \
                                                                                                                           -H "X-Auth-Email: user@example.com" \
                                                                                                                           -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                           -H "Content-Type: application/json"
                                                                                                                      Response (example)
                                                                                                                      {
                                                                                                                        "success": true,
                                                                                                                        "errors": [],
                                                                                                                        "messages": [],
                                                                                                                        "result": "off"
                                                                                                                      }
                                                                                                                      zone-settings-get-opportunistic-onion-setting
                                                                                                                      cURL (example)
                                                                                                                      curl -X GET "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/settings/opportunistic_onion" \
                                                                                                                           -H "X-Auth-Email: user@example.com" \
                                                                                                                           -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                           -H "Content-Type: application/json"
                                                                                                                      Response (example)
                                                                                                                      {
                                                                                                                        "success": true,
                                                                                                                        "errors": [],
                                                                                                                        "messages": [],
                                                                                                                        "result": "off"
                                                                                                                      }
                                                                                                                      zone-settings-get-orange-to-orange-o2o-
                                                                                                                      cURL (example)
                                                                                                                      curl -X GET "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/settings/orange_to_orange" \
                                                                                                                           -H "X-Auth-Email: user@example.com" \
                                                                                                                           -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                           -H "Content-Type: application/json"
                                                                                                                      Response (example)
                                                                                                                      {
                                                                                                                        "success": true,
                                                                                                                        "errors": [],
                                                                                                                        "messages": [],
                                                                                                                        "result": {
                                                                                                                          "id": "orange_to_orange",
                                                                                                                          "value": "on",
                                                                                                                          "editable": true,
                                                                                                                          "modified_on": "2014-01-01T05:20:00.12345Z"
                                                                                                                        }
                                                                                                                      }
                                                                                                                      zone-settings-get-automatic-https-rewrites-setting
                                                                                                                      cURL (example)
                                                                                                                      curl -X GET "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/settings/automatic_https_rewrites" \
                                                                                                                           -H "X-Auth-Email: user@example.com" \
                                                                                                                           -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                           -H "Content-Type: application/json"
                                                                                                                      Response (example)
                                                                                                                      {
                                                                                                                        "success": true,
                                                                                                                        "errors": [],
                                                                                                                        "messages": [],
                                                                                                                        "result": "off"
                                                                                                                      }
                                                                                                                      zone-settings-get-browser-cache-ttl-setting
                                                                                                                      cURL (example)
                                                                                                                      curl -X GET "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/settings/browser_cache_ttl" \
                                                                                                                           -H "X-Auth-Email: user@example.com" \
                                                                                                                           -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                           -H "Content-Type: application/json"
                                                                                                                      Response (example)
                                                                                                                      {
                                                                                                                        "success": true,
                                                                                                                        "errors": [],
                                                                                                                        "messages": [],
                                                                                                                        "result": {
                                                                                                                          "id": "browser_cache_ttl",
                                                                                                                          "value": 14400,
                                                                                                                          "editable": true,
                                                                                                                          "modified_on": "2014-01-01T05:20:00.12345Z"
                                                                                                                        }
                                                                                                                      }
                                                                                                                      zone-settings-get-browser-check-setting
                                                                                                                      cURL (example)
                                                                                                                      curl -X GET "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/settings/browser_check" \
                                                                                                                           -H "X-Auth-Email: user@example.com" \
                                                                                                                           -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                           -H "Content-Type: application/json"
                                                                                                                      Response (example)
                                                                                                                      {
                                                                                                                        "success": true,
                                                                                                                        "errors": [],
                                                                                                                        "messages": [],
                                                                                                                        "result": {
                                                                                                                          "id": "browser_check",
                                                                                                                          "value": "on",
                                                                                                                          "editable": true,
                                                                                                                          "modified_on": "2014-01-01T05:20:00.12345Z"
                                                                                                                        }
                                                                                                                      }
                                                                                                                      zone-settings-get-cache-level-setting
                                                                                                                      cURL (example)
                                                                                                                      curl -X GET "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/settings/cache_level" \
                                                                                                                           -H "X-Auth-Email: user@example.com" \
                                                                                                                           -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                           -H "Content-Type: application/json"
                                                                                                                      Response (example)
                                                                                                                      {
                                                                                                                        "success": true,
                                                                                                                        "errors": [],
                                                                                                                        "messages": [],
                                                                                                                        "result": {
                                                                                                                          "id": "cache_level",
                                                                                                                          "value": "aggressive",
                                                                                                                          "editable": true,
                                                                                                                          "modified_on": "2014-01-01T05:20:00.12345Z"
                                                                                                                        }
                                                                                                                      }
                                                                                                                      zone-settings-get-challenge-ttl-setting
                                                                                                                      cURL (example)
                                                                                                                      curl -X GET "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/settings/challenge_ttl" \
                                                                                                                           -H "X-Auth-Email: user@example.com" \
                                                                                                                           -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                           -H "Content-Type: application/json"
                                                                                                                      Response (example)
                                                                                                                      {
                                                                                                                        "success": true,
                                                                                                                        "errors": [],
                                                                                                                        "messages": [],
                                                                                                                        "result": {
                                                                                                                          "id": "challenge_ttl",
                                                                                                                          "value": 1800,
                                                                                                                          "editable": true,
                                                                                                                          "modified_on": "2014-01-01T05:20:00.12345Z"
                                                                                                                        }
                                                                                                                      }
                                                                                                                      zone-settings-get-development-mode-setting
                                                                                                                      cURL (example)
                                                                                                                      curl -X GET "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/settings/development_mode" \
                                                                                                                           -H "X-Auth-Email: user@example.com" \
                                                                                                                           -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                           -H "Content-Type: application/json"
                                                                                                                      Response (example)
                                                                                                                      {
                                                                                                                        "success": true,
                                                                                                                        "errors": [],
                                                                                                                        "messages": [],
                                                                                                                        "result": {
                                                                                                                          "id": "development_mode",
                                                                                                                          "value": "off",
                                                                                                                          "editable": true,
                                                                                                                          "modified_on": "2014-01-01T05:20:00.12345Z",
                                                                                                                          "time_remaining": 3600
                                                                                                                        }
                                                                                                                      }
                                                                                                                      zone-settings-get-early-hints-setting
                                                                                                                      cURL (example)
                                                                                                                      curl -X GET "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/settings/early_hints" \
                                                                                                                           -H "X-Auth-Email: user@example.com" \
                                                                                                                           -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                           -H "Content-Type: application/json"
                                                                                                                      Response (example)
                                                                                                                      {
                                                                                                                        "success": true,
                                                                                                                        "errors": [],
                                                                                                                        "messages": [],
                                                                                                                        "result": {
                                                                                                                          "id": "early_hints",
                                                                                                                          "value": "off",
                                                                                                                          "editable": true,
                                                                                                                          "modified_on": "2014-01-01T05:20:00.12345Z"
                                                                                                                        }
                                                                                                                      }
                                                                                                                      zone-settings-get-email-obfuscation-setting
                                                                                                                      cURL (example)
                                                                                                                      curl -X GET "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/settings/email_obfuscation" \
                                                                                                                           -H "X-Auth-Email: user@example.com" \
                                                                                                                           -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                           -H "Content-Type: application/json"
                                                                                                                      Response (example)
                                                                                                                      {
                                                                                                                        "success": true,
                                                                                                                        "errors": [],
                                                                                                                        "messages": [],
                                                                                                                        "result": {
                                                                                                                          "id": "email_obfuscation",
                                                                                                                          "value": "on",
                                                                                                                          "editable": true,
                                                                                                                          "modified_on": "2014-01-01T05:20:00.12345Z"
                                                                                                                        }
                                                                                                                      }
                                                                                                                      zone-settings-get-hotlink-protection-setting
                                                                                                                      cURL (example)
                                                                                                                      curl -X GET "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/settings/hotlink_protection" \
                                                                                                                           -H "X-Auth-Email: user@example.com" \
                                                                                                                           -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                           -H "Content-Type: application/json"
                                                                                                                      Response (example)
                                                                                                                      {
                                                                                                                        "success": true,
                                                                                                                        "errors": [],
                                                                                                                        "messages": [],
                                                                                                                        "result": {
                                                                                                                          "id": "hotlink_protection",
                                                                                                                          "value": "off",
                                                                                                                          "editable": true,
                                                                                                                          "modified_on": "2014-01-01T05:20:00.12345Z"
                                                                                                                        }
                                                                                                                      }
                                                                                                                      zone-settings-get-ip-geolocation-setting
                                                                                                                      cURL (example)
                                                                                                                      curl -X GET "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/settings/ip_geolocation" \
                                                                                                                           -H "X-Auth-Email: user@example.com" \
                                                                                                                           -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                           -H "Content-Type: application/json"
                                                                                                                      Response (example)
                                                                                                                      {
                                                                                                                        "success": true,
                                                                                                                        "errors": [],
                                                                                                                        "messages": [],
                                                                                                                        "result": {
                                                                                                                          "id": "ip_geolocation",
                                                                                                                          "value": "on",
                                                                                                                          "editable": true,
                                                                                                                          "modified_on": "2014-01-01T05:20:00.12345Z"
                                                                                                                        }
                                                                                                                      }
                                                                                                                      zone-settings-get-ipv6-setting
                                                                                                                      cURL (example)
                                                                                                                      curl -X GET "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/settings/ipv6" \
                                                                                                                           -H "X-Auth-Email: user@example.com" \
                                                                                                                           -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                           -H "Content-Type: application/json"
                                                                                                                      Response (example)
                                                                                                                      {
                                                                                                                        "success": true,
                                                                                                                        "errors": [],
                                                                                                                        "messages": [],
                                                                                                                        "result": {
                                                                                                                          "id": "ipv6",
                                                                                                                          "value": "off",
                                                                                                                          "editable": true,
                                                                                                                          "modified_on": "2014-01-01T05:20:00.12345Z"
                                                                                                                        }
                                                                                                                      }
                                                                                                                      zone-settings-get-minify-setting
                                                                                                                      cURL (example)
                                                                                                                      curl -X GET "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/settings/minify" \
                                                                                                                           -H "X-Auth-Email: user@example.com" \
                                                                                                                           -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                           -H "Content-Type: application/json"
                                                                                                                      Response (example)
                                                                                                                      {
                                                                                                                        "success": true,
                                                                                                                        "errors": [],
                                                                                                                        "messages": [],
                                                                                                                        "result": {
                                                                                                                          "id": "minify",
                                                                                                                          "value": {
                                                                                                                            "css": "off",
                                                                                                                            "html": "off",
                                                                                                                            "js": "off"
                                                                                                                          },
                                                                                                                          "editable": true,
                                                                                                                          "modified_on": "2014-01-01T05:20:00.12345Z"
                                                                                                                        }
                                                                                                                      }
                                                                                                                      zone-settings-get-mobile-redirect-setting
                                                                                                                      cURL (example)
                                                                                                                      curl -X GET "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/settings/mobile_redirect" \
                                                                                                                           -H "X-Auth-Email: user@example.com" \
                                                                                                                           -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                           -H "Content-Type: application/json"
                                                                                                                      Response (example)
                                                                                                                      {
                                                                                                                        "success": true,
                                                                                                                        "errors": [],
                                                                                                                        "messages": [],
                                                                                                                        "result": {
                                                                                                                          "id": "mobile_redirect",
                                                                                                                          "value": {
                                                                                                                            "status": "off",
                                                                                                                            "mobile_subdomain": "m",
                                                                                                                            "strip_uri": false
                                                                                                                          },
                                                                                                                          "editable": true,
                                                                                                                          "modified_on": "2014-01-01T05:20:00.12345Z"
                                                                                                                        }
                                                                                                                      }
                                                                                                                      zone-settings-get-mirage-setting
                                                                                                                      cURL (example)
                                                                                                                      curl -X GET "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/settings/mirage" \
                                                                                                                           -H "X-Auth-Email: user@example.com" \
                                                                                                                           -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                           -H "Content-Type: application/json"
                                                                                                                      Response (example)
                                                                                                                      {
                                                                                                                        "success": true,
                                                                                                                        "errors": [],
                                                                                                                        "messages": [],
                                                                                                                        "result": {
                                                                                                                          "id": "mirage",
                                                                                                                          "value": "off",
                                                                                                                          "editable": true,
                                                                                                                          "modified_on": "2014-01-01T05:20:00.12345Z"
                                                                                                                        }
                                                                                                                      }
                                                                                                                      zone-settings-get-enable-error-pages-on-setting
                                                                                                                      cURL (example)
                                                                                                                      curl -X GET "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/settings/origin_error_page_pass_thru" \
                                                                                                                           -H "X-Auth-Email: user@example.com" \
                                                                                                                           -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                           -H "Content-Type: application/json"
                                                                                                                      Response (example)
                                                                                                                      {
                                                                                                                        "success": true,
                                                                                                                        "errors": [],
                                                                                                                        "messages": [],
                                                                                                                        "result": "off"
                                                                                                                      }
                                                                                                                      zone-settings-get-opportunistic-encryption-setting
                                                                                                                      cURL (example)
                                                                                                                      curl -X GET "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/settings/opportunistic_encryption" \
                                                                                                                           -H "X-Auth-Email: user@example.com" \
                                                                                                                           -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                           -H "Content-Type: application/json"
                                                                                                                      Response (example)
                                                                                                                      {
                                                                                                                        "success": true,
                                                                                                                        "errors": [],
                                                                                                                        "messages": [],
                                                                                                                        "result": {
                                                                                                                          "id": "opportunistic_encryption",
                                                                                                                          "value": "on",
                                                                                                                          "editable": true,
                                                                                                                          "modified_on": "2014-01-01T05:20:00.12345Z"
                                                                                                                        }
                                                                                                                      }
                                                                                                                      zone-settings-get-polish-setting
                                                                                                                      cURL (example)
                                                                                                                      curl -X GET "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/settings/polish" \
                                                                                                                           -H "X-Auth-Email: user@example.com" \
                                                                                                                           -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                           -H "Content-Type: application/json"
                                                                                                                      Response (example)
                                                                                                                      {
                                                                                                                        "success": true,
                                                                                                                        "errors": [],
                                                                                                                        "messages": [],
                                                                                                                        "result": {
                                                                                                                          "id": "polish",
                                                                                                                          "value": "off",
                                                                                                                          "editable": true,
                                                                                                                          "modified_on": "2014-01-01T05:20:00.12345Z"
                                                                                                                        }
                                                                                                                      }
                                                                                                                      zone-settings-get-webp-setting
                                                                                                                      cURL (example)
                                                                                                                      curl -X GET "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/settings/webp" \
                                                                                                                           -H "X-Auth-Email: user@example.com" \
                                                                                                                           -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                           -H "Content-Type: application/json"
                                                                                                                      Response (example)
                                                                                                                      {
                                                                                                                        "success": true,
                                                                                                                        "errors": [],
                                                                                                                        "messages": [],
                                                                                                                        "result": {
                                                                                                                          "id": "webp",
                                                                                                                          "value": "off",
                                                                                                                          "editable": true,
                                                                                                                          "modified_on": "2014-01-01T05:20:00.12345Z"
                                                                                                                        }
                                                                                                                      }
                                                                                                                      zone-settings-get-brotli-setting
                                                                                                                      cURL (example)
                                                                                                                      curl -X GET "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/settings/brotli" \
                                                                                                                           -H "X-Auth-Email: user@example.com" \
                                                                                                                           -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                           -H "Content-Type: application/json"
                                                                                                                      Response (example)
                                                                                                                      {
                                                                                                                        "success": true,
                                                                                                                        "errors": [],
                                                                                                                        "messages": [],
                                                                                                                        "result": {
                                                                                                                          "id": "brotli",
                                                                                                                          "value": "off",
                                                                                                                          "editable": true,
                                                                                                                          "modified_on": "2014-01-01T05:20:00.12345Z"
                                                                                                                        }
                                                                                                                      }
                                                                                                                      zone-settings-get-prefetch-preload-setting
                                                                                                                      cURL (example)
                                                                                                                      curl -X GET "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/settings/prefetch_preload" \
                                                                                                                           -H "X-Auth-Email: user@example.com" \
                                                                                                                           -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                           -H "Content-Type: application/json"
                                                                                                                      Response (example)
                                                                                                                      {
                                                                                                                        "success": true,
                                                                                                                        "errors": [],
                                                                                                                        "messages": [],
                                                                                                                        "result": "off"
                                                                                                                      }
                                                                                                                      zone-settings-get-privacy-pass-setting
                                                                                                                      cURL (example)
                                                                                                                      curl -X GET "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/settings/privacy_pass" \
                                                                                                                           -H "X-Auth-Email: user@example.com" \
                                                                                                                           -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                           -H "Content-Type: application/json"
                                                                                                                      Response (example)
                                                                                                                      {
                                                                                                                        "success": true,
                                                                                                                        "errors": [],
                                                                                                                        "messages": [],
                                                                                                                        "result": {
                                                                                                                          "id": "privacy_pass",
                                                                                                                          "value": "on",
                                                                                                                          "editable": true,
                                                                                                                          "modified_on": "2014-01-01T05:20:00.12345Z"
                                                                                                                        }
                                                                                                                      }
                                                                                                                      zone-settings-get-response-buffering-setting
                                                                                                                      cURL (example)
                                                                                                                      curl -X GET "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/settings/response_buffering" \
                                                                                                                           -H "X-Auth-Email: user@example.com" \
                                                                                                                           -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                           -H "Content-Type: application/json"
                                                                                                                      Response (example)
                                                                                                                      {
                                                                                                                        "success": true,
                                                                                                                        "errors": [],
                                                                                                                        "messages": [],
                                                                                                                        "result": "off"
                                                                                                                      }
                                                                                                                      zone-settings-get-rocket-loader-setting
                                                                                                                      cURL (example)
                                                                                                                      curl -X GET "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/settings/rocket_loader" \
                                                                                                                           -H "X-Auth-Email: user@example.com" \
                                                                                                                           -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                           -H "Content-Type: application/json"
                                                                                                                      Response (example)
                                                                                                                      {
                                                                                                                        "success": true,
                                                                                                                        "errors": [],
                                                                                                                        "messages": [],
                                                                                                                        "result": {
                                                                                                                          "id": "rocket_loader",
                                                                                                                          "value": "off",
                                                                                                                          "editable": true,
                                                                                                                          "modified_on": "2014-01-01T05:20:00.12345Z"
                                                                                                                        }
                                                                                                                      }
                                                                                                                      zone-settings-get-security-header-hsts-setting
                                                                                                                      cURL (example)
                                                                                                                      curl -X GET "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/settings/security_header" \
                                                                                                                           -H "X-Auth-Email: user@example.com" \
                                                                                                                           -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                           -H "Content-Type: application/json"
                                                                                                                      Response (example)
                                                                                                                      {
                                                                                                                        "success": true,
                                                                                                                        "errors": [],
                                                                                                                        "messages": [],
                                                                                                                        "result": {
                                                                                                                          "id": "security_header",
                                                                                                                          "value": {
                                                                                                                            "strict_transport_security": {
                                                                                                                              "enabled": true,
                                                                                                                              "max_age": 86400,
                                                                                                                              "include_subdomains": true,
                                                                                                                              "nosniff": true
                                                                                                                            }
                                                                                                                          },
                                                                                                                          "editable": true,
                                                                                                                          "modified_on": "2014-01-01T05:20:00.12345Z"
                                                                                                                        }
                                                                                                                      }
                                                                                                                      zone-settings-get-security-level-setting
                                                                                                                      cURL (example)
                                                                                                                      curl -X GET "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/settings/security_level" \
                                                                                                                           -H "X-Auth-Email: user@example.com" \
                                                                                                                           -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                           -H "Content-Type: application/json"
                                                                                                                      Response (example)
                                                                                                                      {
                                                                                                                        "success": true,
                                                                                                                        "errors": [],
                                                                                                                        "messages": [],
                                                                                                                        "result": {
                                                                                                                          "id": "security_level",
                                                                                                                          "value": "medium",
                                                                                                                          "editable": true,
                                                                                                                          "modified_on": "2014-01-01T05:20:00.12345Z"
                                                                                                                        }
                                                                                                                      }
                                                                                                                      zone-settings-get-server-side-exclude-setting
                                                                                                                      cURL (example)
                                                                                                                      curl -X GET "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/settings/server_side_exclude" \
                                                                                                                           -H "X-Auth-Email: user@example.com" \
                                                                                                                           -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                           -H "Content-Type: application/json"
                                                                                                                      Response (example)
                                                                                                                      {
                                                                                                                        "success": true,
                                                                                                                        "errors": [],
                                                                                                                        "messages": [],
                                                                                                                        "result": {
                                                                                                                          "id": "server_side_exclude",
                                                                                                                          "value": "on",
                                                                                                                          "editable": true,
                                                                                                                          "modified_on": "2014-01-01T05:20:00.12345Z"
                                                                                                                        }
                                                                                                                      }
                                                                                                                      zone-settings-get-enable-query-string-sort-setting
                                                                                                                      cURL (example)
                                                                                                                      curl -X GET "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/settings/sort_query_string_for_cache" \
                                                                                                                           -H "X-Auth-Email: user@example.com" \
                                                                                                                           -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                           -H "Content-Type: application/json"
                                                                                                                      Response (example)
                                                                                                                      {
                                                                                                                        "success": true,
                                                                                                                        "errors": [],
                                                                                                                        "messages": [],
                                                                                                                        "result": "off"
                                                                                                                      }
                                                                                                                      zone-settings-get-ssl-setting
                                                                                                                      cURL (example)
                                                                                                                      curl -X GET "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/settings/ssl" \
                                                                                                                           -H "X-Auth-Email: user@example.com" \
                                                                                                                           -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                           -H "Content-Type: application/json"
                                                                                                                      Response (example)
                                                                                                                      {
                                                                                                                        "success": true,
                                                                                                                        "errors": [],
                                                                                                                        "messages": [],
                                                                                                                        "result": {
                                                                                                                          "id": "ssl",
                                                                                                                          "value": "off",
                                                                                                                          "editable": true,
                                                                                                                          "modified_on": "2014-01-01T05:20:00.12345Z"
                                                                                                                        }
                                                                                                                      }
                                                                                                                      zone-settings-get-ssl/tls-recommender-enrollment
                                                                                                                      cURL (example)
                                                                                                                      curl -X GET "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/settings/ssl_recommender" \
                                                                                                                           -H "X-Auth-Email: user@example.com" \
                                                                                                                           -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                           -H "Content-Type: application/json"
                                                                                                                      Response (example)
                                                                                                                      {
                                                                                                                        "success": true,
                                                                                                                        "errors": [],
                                                                                                                        "messages": [],
                                                                                                                        "result": {
                                                                                                                          "id": "ssl_recommender",
                                                                                                                          "enabled": false,
                                                                                                                          "editable": true,
                                                                                                                          "modified_on": "2014-01-01T05:20:00.12345Z"
                                                                                                                        }
                                                                                                                      }
                                                                                                                      zone-settings-get-minimum-tls-version-setting
                                                                                                                      cURL (example)
                                                                                                                      curl -X GET "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/settings/min_tls_version" \
                                                                                                                           -H "X-Auth-Email: user@example.com" \
                                                                                                                           -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                           -H "Content-Type: application/json"
                                                                                                                      Response (example)
                                                                                                                      {
                                                                                                                        "success": true,
                                                                                                                        "errors": [],
                                                                                                                        "messages": [],
                                                                                                                        "result": "1.0"
                                                                                                                      }
                                                                                                                      zone-settings-get-ciphers-setting
                                                                                                                      cURL (example)
                                                                                                                      curl -X GET "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/settings/ciphers" \
                                                                                                                           -H "X-Auth-Email: user@example.com" \
                                                                                                                           -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                           -H "Content-Type: application/json"
                                                                                                                      Response (example)
                                                                                                                      {
                                                                                                                        "success": true,
                                                                                                                        "errors": [],
                                                                                                                        "messages": [],
                                                                                                                        "result": []
                                                                                                                      }
                                                                                                                      zone-settings-get-zone-enable-tls-1.3-setting
                                                                                                                      cURL (example)
                                                                                                                      curl -X GET "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/settings/tls_1_3" \
                                                                                                                           -H "X-Auth-Email: user@example.com" \
                                                                                                                           -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                           -H "Content-Type: application/json"
                                                                                                                      Response (example)
                                                                                                                      {
                                                                                                                        "success": true,
                                                                                                                        "errors": [],
                                                                                                                        "messages": [],
                                                                                                                        "result": "off"
                                                                                                                      }
                                                                                                                      zone-settings-get-tls-client-auth-setting
                                                                                                                      cURL (example)
                                                                                                                      curl -X GET "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/settings/tls_client_auth" \
                                                                                                                           -H "X-Auth-Email: user@example.com" \
                                                                                                                           -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                           -H "Content-Type: application/json"
                                                                                                                      Response (example)
                                                                                                                      {
                                                                                                                        "success": true,
                                                                                                                        "errors": [],
                                                                                                                        "messages": [],
                                                                                                                        "result": {
                                                                                                                          "id": "tls_client_auth",
                                                                                                                          "value": "on",
                                                                                                                          "editable": true,
                                                                                                                          "modified_on": "2014-01-01T05:20:00.12345Z"
                                                                                                                        }
                                                                                                                      }
                                                                                                                      zone-settings-get-true-client-ip-setting
                                                                                                                      cURL (example)
                                                                                                                      curl -X GET "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/settings/true_client_ip_header" \
                                                                                                                           -H "X-Auth-Email: user@example.com" \
                                                                                                                           -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                           -H "Content-Type: application/json"
                                                                                                                      Response (example)
                                                                                                                      {
                                                                                                                        "success": true,
                                                                                                                        "errors": [],
                                                                                                                        "messages": [],
                                                                                                                        "result": "off"
                                                                                                                      }
                                                                                                                      zone-settings-get-proxy-read-timeout-setting
                                                                                                                      cURL (example)
                                                                                                                      curl -X GET "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/settings/proxy_read_timeout" \
                                                                                                                           -H "X-Auth-Email: user@example.com" \
                                                                                                                           -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                           -H "Content-Type: application/json"
                                                                                                                      Response (example)
                                                                                                                      {
                                                                                                                        "success": true,
                                                                                                                        "errors": [],
                                                                                                                        "messages": [],
                                                                                                                        "result": {
                                                                                                                          "id": "proxy_read_timeout",
                                                                                                                          "value": 100,
                                                                                                                          "editable": true,
                                                                                                                          "modified_on": "2014-01-01T05:20:00.12345Z"
                                                                                                                        }
                                                                                                                      }
                                                                                                                      zone-settings-get-web-application-firewall-waf-setting
                                                                                                                      cURL (example)
                                                                                                                      curl -X GET "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/settings/waf" \
                                                                                                                           -H "X-Auth-Email: user@example.com" \
                                                                                                                           -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                           -H "Content-Type: application/json"
                                                                                                                      Response (example)
                                                                                                                      {
                                                                                                                        "success": true,
                                                                                                                        "errors": [],
                                                                                                                        "messages": [],
                                                                                                                        "result": {
                                                                                                                          "id": "waf",
                                                                                                                          "value": "off",
                                                                                                                          "editable": true,
                                                                                                                          "modified_on": "2014-01-01T05:20:00.12345Z"
                                                                                                                        }
                                                                                                                      }
                                                                                                                      zone-settings-get-http2-setting
                                                                                                                      cURL (example)
                                                                                                                      curl -X GET "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/settings/http2" \
                                                                                                                           -H "X-Auth-Email: user@example.com" \
                                                                                                                           -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                           -H "Content-Type: application/json"
                                                                                                                      Response (example)
                                                                                                                      {
                                                                                                                        "success": true,
                                                                                                                        "errors": [],
                                                                                                                        "messages": [],
                                                                                                                        "result": {
                                                                                                                          "id": "http2",
                                                                                                                          "value": "off",
                                                                                                                          "editable": true,
                                                                                                                          "modified_on": "2014-01-01T05:20:00.12345Z"
                                                                                                                        }
                                                                                                                      }
                                                                                                                      zone-settings-get-http3-setting
                                                                                                                      cURL (example)
                                                                                                                      curl -X GET "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/settings/http3" \
                                                                                                                           -H "X-Auth-Email: user@example.com" \
                                                                                                                           -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                           -H "Content-Type: application/json"
                                                                                                                      Response (example)
                                                                                                                      {
                                                                                                                        "success": true,
                                                                                                                        "errors": [],
                                                                                                                        "messages": [],
                                                                                                                        "result": {
                                                                                                                          "id": "http3",
                                                                                                                          "value": "off",
                                                                                                                          "editable": true,
                                                                                                                          "modified_on": "2014-01-01T05:20:00.12345Z"
                                                                                                                        }
                                                                                                                      }
                                                                                                                      zone-settings-get-0-rtt-session-resumption-setting
                                                                                                                      cURL (example)
                                                                                                                      curl -X GET "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/settings/0rtt" \
                                                                                                                           -H "X-Auth-Email: user@example.com" \
                                                                                                                           -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                           -H "Content-Type: application/json"
                                                                                                                      Response (example)
                                                                                                                      {
                                                                                                                        "success": true,
                                                                                                                        "errors": [],
                                                                                                                        "messages": [],
                                                                                                                        "result": {
                                                                                                                          "id": "0rtt",
                                                                                                                          "value": "off",
                                                                                                                          "editable": true,
                                                                                                                          "modified_on": "2014-01-01T05:20:00.12345Z"
                                                                                                                        }
                                                                                                                      }
                                                                                                                      zone-settings-get-pseudo-ipv4-setting
                                                                                                                      cURL (example)
                                                                                                                      curl -X GET "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/settings/pseudo_ipv4" \
                                                                                                                           -H "X-Auth-Email: user@example.com" \
                                                                                                                           -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                           -H "Content-Type: application/json"
                                                                                                                      Response (example)
                                                                                                                      {
                                                                                                                        "success": true,
                                                                                                                        "errors": [],
                                                                                                                        "messages": [],
                                                                                                                        "result": {
                                                                                                                          "id": "pseudo_ipv4",
                                                                                                                          "value": "off",
                                                                                                                          "editable": true,
                                                                                                                          "modified_on": "2014-01-01T05:20:00.12345Z"
                                                                                                                        }
                                                                                                                      }
                                                                                                                      zone-settings-get-websockets-setting
                                                                                                                      cURL (example)
                                                                                                                      curl -X GET "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/settings/websockets" \
                                                                                                                           -H "X-Auth-Email: user@example.com" \
                                                                                                                           -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                           -H "Content-Type: application/json"
                                                                                                                      Response (example)
                                                                                                                      {
                                                                                                                        "success": true,
                                                                                                                        "errors": [],
                                                                                                                        "messages": [],
                                                                                                                        "result": {
                                                                                                                          "id": "websockets",
                                                                                                                          "value": "off",
                                                                                                                          "editable": true,
                                                                                                                          "modified_on": "2014-01-01T05:20:00.12345Z"
                                                                                                                        }
                                                                                                                      }
                                                                                                                      zone-settings-get-image-resizing-setting
                                                                                                                      cURL (example)
                                                                                                                      curl -X GET "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/settings/image_resizing" \
                                                                                                                           -H "X-Auth-Email: user@example.com" \
                                                                                                                           -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                           -H "Content-Type: application/json"
                                                                                                                      Response (example)
                                                                                                                      {
                                                                                                                        "success": true,
                                                                                                                        "errors": [],
                                                                                                                        "messages": [],
                                                                                                                        "result": {
                                                                                                                          "id": "image_resizing",
                                                                                                                          "value": "off",
                                                                                                                          "editable": true,
                                                                                                                          "modified_on": "2014-01-01T05:20:00.12345Z"
                                                                                                                        }
                                                                                                                      }
                                                                                                                      zone-settings-get-http/2-edge-prioritization-setting
                                                                                                                      cURL (example)
                                                                                                                      curl -X GET "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/settings/h2_prioritization" \
                                                                                                                           -H "X-Auth-Email: user@example.com" \
                                                                                                                           -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                           -H "Content-Type: application/json"
                                                                                                                      Response (example)
                                                                                                                      {
                                                                                                                        "success": true,
                                                                                                                        "errors": [],
                                                                                                                        "messages": [],
                                                                                                                        "result": {
                                                                                                                          "id": "h2_prioritization",
                                                                                                                          "value": "off",
                                                                                                                          "editable": true,
                                                                                                                          "modified_on": "2014-01-01T05:20:00.12345Z"
                                                                                                                        }
                                                                                                                      }
                                                                                                                      zone-settings-get-automatic-platform-optimization-for-wordpress-setting
                                                                                                                      cURL (example)
                                                                                                                      curl -X GET "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/settings/automatic_platform_optimization" \
                                                                                                                           -H "X-Auth-Email: user@example.com" \
                                                                                                                           -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                           -H "Content-Type: application/json"
                                                                                                                      Response (example)
                                                                                                                      {
                                                                                                                        "success": true,
                                                                                                                        "errors": [],
                                                                                                                        "messages": [],
                                                                                                                        "result": {
                                                                                                                          "id": "automatic_platform_optimization",
                                                                                                                          "value": {
                                                                                                                            "enabled": true,
                                                                                                                            "cf": true,
                                                                                                                            "wordpress": true,
                                                                                                                            "wp_plugin": true,
                                                                                                                            "hostnames": [
                                                                                                                              "www.example.com",
                                                                                                                              "example.com",
                                                                                                                              "shop.example.com"
                                                                                                                            ],
                                                                                                                            "cache_by_device_type": false
                                                                                                                          },
                                                                                                                          "editable": true,
                                                                                                                          "modified_on": "2014-01-01T05:20:00.12345Z"
                                                                                                                        }
                                                                                                                      }
                                                                                                                      zone-settings-edit-zone-settings-info

                                                                                                                      Required parameters

                                                                                                                      Name /typeDescription /exampleConstraints
                                                                                                                      items
                                                                                                                      array

                                                                                                                      One or more zone setting objects. Must contain an ID and a value.

                                                                                                                      [ { "id": "always_online", "value": "on" }, { "id": "browser_cache_ttl", "value": 18000 }, { "id": "ip_geolocation", "value": "off" } ]
                                                                                                                      An array with items in the following form:

                                                                                                                      Show definition »

                                                                                                                      • min items: 1
                                                                                                                      cURL (example)
                                                                                                                      curl -X PATCH "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/settings" \
                                                                                                                           -H "X-Auth-Email: user@example.com" \
                                                                                                                           -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                           -H "Content-Type: application/json" \
                                                                                                                           --data '{"items":[{"id":"always_online","value":"on"},{"id":"browser_cache_ttl","value":18000},{"id":"ip_geolocation","value":"off"}]}'
                                                                                                                      Response (example)
                                                                                                                      {
                                                                                                                        "success": true,
                                                                                                                        "errors": [],
                                                                                                                        "messages": []
                                                                                                                      }
                                                                                                                      zone-settings-change-always-online-setting

                                                                                                                      Required parameters

                                                                                                                      Name /typeDescription /exampleConstraints
                                                                                                                      value
                                                                                                                      string

                                                                                                                      Value of the zone setting

                                                                                                                      "on"

                                                                                                                      • default value: on
                                                                                                                      • valid values: on, off
                                                                                                                      cURL (example)
                                                                                                                      curl -X PATCH "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/settings/always_online" \
                                                                                                                           -H "X-Auth-Email: user@example.com" \
                                                                                                                           -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                           -H "Content-Type: application/json" \
                                                                                                                           --data '{"value":"on"}'
                                                                                                                      Response (example)
                                                                                                                      {
                                                                                                                        "success": true,
                                                                                                                        "errors": [],
                                                                                                                        "messages": [],
                                                                                                                        "result": {
                                                                                                                          "id": "always_online",
                                                                                                                          "value": "on",
                                                                                                                          "editable": true,
                                                                                                                          "modified_on": "2014-01-01T05:20:00.12345Z"
                                                                                                                        }
                                                                                                                      }
                                                                                                                      zone-settings-change-always-use-https-setting

                                                                                                                      Required parameters

                                                                                                                      Name /typeDescription /exampleConstraints
                                                                                                                      value
                                                                                                                      string

                                                                                                                      Value of the zone setting

                                                                                                                      "off"

                                                                                                                      • default value: off
                                                                                                                      • valid values: on, off
                                                                                                                      cURL (example)
                                                                                                                      curl -X PATCH "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/settings/always_use_https" \
                                                                                                                           -H "X-Auth-Email: user@example.com" \
                                                                                                                           -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                           -H "Content-Type: application/json" \
                                                                                                                           --data '{"value":"off"}'
                                                                                                                      Response (example)
                                                                                                                      {
                                                                                                                        "success": true,
                                                                                                                        "errors": [],
                                                                                                                        "messages": [],
                                                                                                                        "result": "off"
                                                                                                                      }
                                                                                                                      zone-settings-change-opportunistic-onion-setting

                                                                                                                      Required parameters

                                                                                                                      Name /typeDescription /exampleConstraints
                                                                                                                      value
                                                                                                                      string

                                                                                                                      Value of the zone setting

                                                                                                                      "off"

                                                                                                                      • default value: off
                                                                                                                      • valid values: on, off
                                                                                                                      • notes: Default value depends on the zone's plan level.
                                                                                                                      cURL (example)
                                                                                                                      curl -X PATCH "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/settings/opportunistic_onion" \
                                                                                                                           -H "X-Auth-Email: user@example.com" \
                                                                                                                           -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                           -H "Content-Type: application/json" \
                                                                                                                           --data '{"value":"off"}'
                                                                                                                      Response (example)
                                                                                                                      {
                                                                                                                        "success": true,
                                                                                                                        "errors": [],
                                                                                                                        "messages": [],
                                                                                                                        "result": "off"
                                                                                                                      }
                                                                                                                      zone-settings-change-orange-to-orange-o2o-

                                                                                                                      Required parameters

                                                                                                                      Name /typeDescription /exampleConstraints
                                                                                                                      value
                                                                                                                      string

                                                                                                                      Value of the zone setting

                                                                                                                      "on"

                                                                                                                      • default value: on
                                                                                                                      • valid values: on, off
                                                                                                                      cURL (example)
                                                                                                                      curl -X PATCH "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/settings/orange_to_orange" \
                                                                                                                           -H "X-Auth-Email: user@example.com" \
                                                                                                                           -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                           -H "Content-Type: application/json" \
                                                                                                                           --data '{"value":"on"}'
                                                                                                                      Response (example)
                                                                                                                      {
                                                                                                                        "success": true,
                                                                                                                        "errors": [],
                                                                                                                        "messages": [],
                                                                                                                        "result": {
                                                                                                                          "id": "orange_to_orange",
                                                                                                                          "value": "on",
                                                                                                                          "editable": true,
                                                                                                                          "modified_on": "2014-01-01T05:20:00.12345Z"
                                                                                                                        }
                                                                                                                      }
                                                                                                                      zone-settings-change-automatic-https-rewrites-setting

                                                                                                                      Required parameters

                                                                                                                      Name /typeDescription /exampleConstraints
                                                                                                                      value
                                                                                                                      string

                                                                                                                      Value of the zone setting

                                                                                                                      "on"

                                                                                                                      • default value: on
                                                                                                                      • valid values: on, off
                                                                                                                      • notes: Default value depends on the zone's plan level.
                                                                                                                      cURL (example)
                                                                                                                      curl -X PATCH "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/settings/automatic_https_rewrites" \
                                                                                                                           -H "X-Auth-Email: user@example.com" \
                                                                                                                           -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                           -H "Content-Type: application/json" \
                                                                                                                           --data '{"value":"on"}'
                                                                                                                      Response (example)
                                                                                                                      {
                                                                                                                        "success": true,
                                                                                                                        "errors": [],
                                                                                                                        "messages": [],
                                                                                                                        "result": "off"
                                                                                                                      }
                                                                                                                      zone-settings-change-browser-cache-ttl-setting

                                                                                                                      Required parameters

                                                                                                                      Name /typeDescription /exampleConstraints
                                                                                                                      value
                                                                                                                      number

                                                                                                                      Value of the zone setting

                                                                                                                      14400

                                                                                                                      • default value: 14400
                                                                                                                      • valid values: 0, 30, 60, 120, 300, 1200, 1800, 3600, 7200, 10800, 14400, 18000, 28800, 43200, 57600, 72000, 86400, 172800, 259200, 345600, 432000, 691200, 1382400, 2073600, 2678400, 5356800, 16070400, 31536000
                                                                                                                      • notes: Setting a TTL of 0 is equivalent to selecting `Respect Existing Headers`
                                                                                                                      cURL (example)
                                                                                                                      curl -X PATCH "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/settings/browser_cache_ttl" \
                                                                                                                           -H "X-Auth-Email: user@example.com" \
                                                                                                                           -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                           -H "Content-Type: application/json" \
                                                                                                                           --data '{"value":14400}'
                                                                                                                      Response (example)
                                                                                                                      {
                                                                                                                        "success": true,
                                                                                                                        "errors": [],
                                                                                                                        "messages": [],
                                                                                                                        "result": {
                                                                                                                          "id": "browser_cache_ttl",
                                                                                                                          "value": 14400,
                                                                                                                          "editable": true,
                                                                                                                          "modified_on": "2014-01-01T05:20:00.12345Z"
                                                                                                                        }
                                                                                                                      }
                                                                                                                      zone-settings-change-browser-check-setting

                                                                                                                      Required parameters

                                                                                                                      Name /typeDescription /exampleConstraints
                                                                                                                      value
                                                                                                                      string

                                                                                                                      Value of the zone setting

                                                                                                                      "on"

                                                                                                                      • default value: on
                                                                                                                      • valid values: on, off
                                                                                                                      cURL (example)
                                                                                                                      curl -X PATCH "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/settings/browser_check" \
                                                                                                                           -H "X-Auth-Email: user@example.com" \
                                                                                                                           -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                           -H "Content-Type: application/json" \
                                                                                                                           --data '{"value":"on"}'
                                                                                                                      Response (example)
                                                                                                                      {
                                                                                                                        "success": true,
                                                                                                                        "errors": [],
                                                                                                                        "messages": [],
                                                                                                                        "result": {
                                                                                                                          "id": "browser_check",
                                                                                                                          "value": "on",
                                                                                                                          "editable": true,
                                                                                                                          "modified_on": "2014-01-01T05:20:00.12345Z"
                                                                                                                        }
                                                                                                                      }
                                                                                                                      zone-settings-change-cache-level-setting

                                                                                                                      Required parameters

                                                                                                                      Name /typeDescription /exampleConstraints
                                                                                                                      value
                                                                                                                      string

                                                                                                                      Value of the zone setting

                                                                                                                      "aggressive"

                                                                                                                      • default value: aggressive
                                                                                                                      • valid values: aggressive, basic, simplified
                                                                                                                      cURL (example)
                                                                                                                      curl -X PATCH "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/settings/cache_level" \
                                                                                                                           -H "X-Auth-Email: user@example.com" \
                                                                                                                           -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                           -H "Content-Type: application/json" \
                                                                                                                           --data '{"value":"aggressive"}'
                                                                                                                      Response (example)
                                                                                                                      {
                                                                                                                        "success": true,
                                                                                                                        "errors": [],
                                                                                                                        "messages": [],
                                                                                                                        "result": {
                                                                                                                          "id": "cache_level",
                                                                                                                          "value": "aggressive",
                                                                                                                          "editable": true,
                                                                                                                          "modified_on": "2014-01-01T05:20:00.12345Z"
                                                                                                                        }
                                                                                                                      }
                                                                                                                      zone-settings-change-challenge-ttl-setting

                                                                                                                      Required parameters

                                                                                                                      Name /typeDescription /exampleConstraints
                                                                                                                      value
                                                                                                                      number

                                                                                                                      Value of the zone setting

                                                                                                                      1800

                                                                                                                      • default value: 1800
                                                                                                                      • valid values: 300, 900, 1800, 2700, 3600, 7200, 10800, 14400, 28800, 57600, 86400, 604800, 2592000, 31536000
                                                                                                                      cURL (example)
                                                                                                                      curl -X PATCH "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/settings/challenge_ttl" \
                                                                                                                           -H "X-Auth-Email: user@example.com" \
                                                                                                                           -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                           -H "Content-Type: application/json" \
                                                                                                                           --data '{"value":1800}'
                                                                                                                      Response (example)
                                                                                                                      {
                                                                                                                        "success": true,
                                                                                                                        "errors": [],
                                                                                                                        "messages": [],
                                                                                                                        "result": {
                                                                                                                          "id": "challenge_ttl",
                                                                                                                          "value": 1800,
                                                                                                                          "editable": true,
                                                                                                                          "modified_on": "2014-01-01T05:20:00.12345Z"
                                                                                                                        }
                                                                                                                      }
                                                                                                                      zone-settings-change-development-mode-setting

                                                                                                                      Required parameters

                                                                                                                      Name /typeDescription /exampleConstraints
                                                                                                                      value
                                                                                                                      string

                                                                                                                      Value of the zone setting

                                                                                                                      "off"

                                                                                                                      • default value: off
                                                                                                                      • valid values: on, off
                                                                                                                      cURL (example)
                                                                                                                      curl -X PATCH "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/settings/development_mode" \
                                                                                                                           -H "X-Auth-Email: user@example.com" \
                                                                                                                           -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                           -H "Content-Type: application/json" \
                                                                                                                           --data '{"value":"off"}'
                                                                                                                      Response (example)
                                                                                                                      {
                                                                                                                        "success": true,
                                                                                                                        "errors": [],
                                                                                                                        "messages": [],
                                                                                                                        "result": {
                                                                                                                          "id": "development_mode",
                                                                                                                          "value": "off",
                                                                                                                          "editable": true,
                                                                                                                          "modified_on": "2014-01-01T05:20:00.12345Z",
                                                                                                                          "time_remaining": 3600
                                                                                                                        }
                                                                                                                      }
                                                                                                                      zone-settings-change-early-hints-setting

                                                                                                                      Required parameters

                                                                                                                      Name /typeDescription /exampleConstraints
                                                                                                                      value
                                                                                                                      string

                                                                                                                      Value of the zone setting

                                                                                                                      "off"

                                                                                                                      • default value: off
                                                                                                                      • valid values: on, off
                                                                                                                      cURL (example)
                                                                                                                      curl -X PATCH "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/settings/early_hints" \
                                                                                                                           -H "X-Auth-Email: user@example.com" \
                                                                                                                           -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                           -H "Content-Type: application/json" \
                                                                                                                           --data '{"value":"off"}'
                                                                                                                      Response (example)
                                                                                                                      {
                                                                                                                        "success": true,
                                                                                                                        "errors": [],
                                                                                                                        "messages": [],
                                                                                                                        "result": {
                                                                                                                          "id": "early_hints",
                                                                                                                          "value": "off",
                                                                                                                          "editable": true,
                                                                                                                          "modified_on": "2014-01-01T05:20:00.12345Z"
                                                                                                                        }
                                                                                                                      }
                                                                                                                      zone-settings-change-email-obfuscation-setting

                                                                                                                      Required parameters

                                                                                                                      Name /typeDescription /exampleConstraints
                                                                                                                      value
                                                                                                                      string

                                                                                                                      Value of the zone setting

                                                                                                                      "on"

                                                                                                                      • default value: on
                                                                                                                      • valid values: on, off
                                                                                                                      cURL (example)
                                                                                                                      curl -X PATCH "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/settings/email_obfuscation" \
                                                                                                                           -H "X-Auth-Email: user@example.com" \
                                                                                                                           -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                           -H "Content-Type: application/json" \
                                                                                                                           --data '{"value":"on"}'
                                                                                                                      Response (example)
                                                                                                                      {
                                                                                                                        "success": true,
                                                                                                                        "errors": [],
                                                                                                                        "messages": [],
                                                                                                                        "result": {
                                                                                                                          "id": "email_obfuscation",
                                                                                                                          "value": "on",
                                                                                                                          "editable": true,
                                                                                                                          "modified_on": "2014-01-01T05:20:00.12345Z"
                                                                                                                        }
                                                                                                                      }
                                                                                                                      zone-settings-change-enable-error-pages-on-setting

                                                                                                                      Required parameters

                                                                                                                      Name /typeDescription /exampleConstraints
                                                                                                                      value
                                                                                                                      string

                                                                                                                      Value of the zone setting

                                                                                                                      "off"

                                                                                                                      • default value: off
                                                                                                                      • valid values: on, off
                                                                                                                      cURL (example)
                                                                                                                      curl -X PATCH "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/settings/origin_error_page_pass_thru" \
                                                                                                                           -H "X-Auth-Email: user@example.com" \
                                                                                                                           -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                           -H "Content-Type: application/json" \
                                                                                                                           --data '{"value":"off"}'
                                                                                                                      Response (example)
                                                                                                                      {
                                                                                                                        "success": true,
                                                                                                                        "errors": [],
                                                                                                                        "messages": [],
                                                                                                                        "result": "off"
                                                                                                                      }
                                                                                                                      zone-settings-change-enable-query-string-sort-setting

                                                                                                                      Required parameters

                                                                                                                      Name /typeDescription /exampleConstraints
                                                                                                                      value
                                                                                                                      string

                                                                                                                      Value of the zone setting

                                                                                                                      "off"

                                                                                                                      • default value: off
                                                                                                                      • valid values: on, off
                                                                                                                      cURL (example)
                                                                                                                      curl -X PATCH "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/settings/sort_query_string_for_cache" \
                                                                                                                           -H "X-Auth-Email: user@example.com" \
                                                                                                                           -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                           -H "Content-Type: application/json" \
                                                                                                                           --data '{"value":"off"}'
                                                                                                                      Response (example)
                                                                                                                      {
                                                                                                                        "success": true,
                                                                                                                        "errors": [],
                                                                                                                        "messages": [],
                                                                                                                        "result": "off"
                                                                                                                      }
                                                                                                                      zone-settings-change-hotlink-protection-setting

                                                                                                                      Required parameters

                                                                                                                      Name /typeDescription /exampleConstraints
                                                                                                                      value
                                                                                                                      string

                                                                                                                      Value of the zone setting

                                                                                                                      "off"

                                                                                                                      • default value: off
                                                                                                                      • valid values: on, off
                                                                                                                      cURL (example)
                                                                                                                      curl -X PATCH "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/settings/hotlink_protection" \
                                                                                                                           -H "X-Auth-Email: user@example.com" \
                                                                                                                           -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                           -H "Content-Type: application/json" \
                                                                                                                           --data '{"value":"off"}'
                                                                                                                      Response (example)
                                                                                                                      {
                                                                                                                        "success": true,
                                                                                                                        "errors": [],
                                                                                                                        "messages": [],
                                                                                                                        "result": {
                                                                                                                          "id": "hotlink_protection",
                                                                                                                          "value": "off",
                                                                                                                          "editable": true,
                                                                                                                          "modified_on": "2014-01-01T05:20:00.12345Z"
                                                                                                                        }
                                                                                                                      }
                                                                                                                      zone-settings-change-ip-geolocation-setting

                                                                                                                      Required parameters

                                                                                                                      Name /typeDescription /exampleConstraints
                                                                                                                      value
                                                                                                                      string

                                                                                                                      Value of the zone setting

                                                                                                                      "on"

                                                                                                                      • default value: on
                                                                                                                      • valid values: on, off
                                                                                                                      cURL (example)
                                                                                                                      curl -X PATCH "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/settings/ip_geolocation" \
                                                                                                                           -H "X-Auth-Email: user@example.com" \
                                                                                                                           -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                           -H "Content-Type: application/json" \
                                                                                                                           --data '{"value":"on"}'
                                                                                                                      Response (example)
                                                                                                                      {
                                                                                                                        "success": true,
                                                                                                                        "errors": [],
                                                                                                                        "messages": [],
                                                                                                                        "result": {
                                                                                                                          "id": "ip_geolocation",
                                                                                                                          "value": "on",
                                                                                                                          "editable": true,
                                                                                                                          "modified_on": "2014-01-01T05:20:00.12345Z"
                                                                                                                        }
                                                                                                                      }
                                                                                                                      zone-settings-change-ipv6-setting

                                                                                                                      Required parameters

                                                                                                                      Name /typeDescription /exampleConstraints
                                                                                                                      value
                                                                                                                      string

                                                                                                                      Value of the zone setting

                                                                                                                      "off"

                                                                                                                      • default value: off
                                                                                                                      • valid values: off, on
                                                                                                                      cURL (example)
                                                                                                                      curl -X PATCH "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/settings/ipv6" \
                                                                                                                           -H "X-Auth-Email: user@example.com" \
                                                                                                                           -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                           -H "Content-Type: application/json" \
                                                                                                                           --data '{"value":"off"}'
                                                                                                                      Response (example)
                                                                                                                      {
                                                                                                                        "success": true,
                                                                                                                        "errors": [],
                                                                                                                        "messages": [],
                                                                                                                        "result": {
                                                                                                                          "id": "ipv6",
                                                                                                                          "value": "off",
                                                                                                                          "editable": true,
                                                                                                                          "modified_on": "2014-01-01T05:20:00.12345Z"
                                                                                                                        }
                                                                                                                      }
                                                                                                                      zone-settings-change-minify-setting

                                                                                                                      Required parameters

                                                                                                                      Name /typeDescription /exampleConstraints
                                                                                                                      value
                                                                                                                      object

                                                                                                                      Value of the zone setting

                                                                                                                      { "css": "off", "html": "off", "js": "off" }
                                                                                                                      An object with the following properties:

                                                                                                                      Show definition »

                                                                                                                        cURL (example)
                                                                                                                        curl -X PATCH "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/settings/minify" \
                                                                                                                             -H "X-Auth-Email: user@example.com" \
                                                                                                                             -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                             -H "Content-Type: application/json" \
                                                                                                                             --data '{"value":{"css":"off","html":"off","js":"off"}}'
                                                                                                                        Response (example)
                                                                                                                        {
                                                                                                                          "success": true,
                                                                                                                          "errors": [],
                                                                                                                          "messages": [],
                                                                                                                          "result": {
                                                                                                                            "id": "minify",
                                                                                                                            "value": {
                                                                                                                              "css": "off",
                                                                                                                              "html": "off",
                                                                                                                              "js": "off"
                                                                                                                            },
                                                                                                                            "editable": true,
                                                                                                                            "modified_on": "2014-01-01T05:20:00.12345Z"
                                                                                                                          }
                                                                                                                        }
                                                                                                                        zone-settings-change-mobile-redirect-setting

                                                                                                                        Required parameters

                                                                                                                        Name /typeDescription /exampleConstraints
                                                                                                                        value
                                                                                                                        object

                                                                                                                        Value of the zone setting

                                                                                                                        { "status": "off", "mobile_subdomain": "m", "strip_uri": false }
                                                                                                                        An object with the following properties:

                                                                                                                        Show definition »

                                                                                                                          cURL (example)
                                                                                                                          curl -X PATCH "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/settings/mobile_redirect" \
                                                                                                                               -H "X-Auth-Email: user@example.com" \
                                                                                                                               -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                               -H "Content-Type: application/json" \
                                                                                                                               --data '{"value":{"status":"off","mobile_subdomain":"m","strip_uri":false}}'
                                                                                                                          Response (example)
                                                                                                                          {
                                                                                                                            "success": true,
                                                                                                                            "errors": [],
                                                                                                                            "messages": [],
                                                                                                                            "result": {
                                                                                                                              "id": "mobile_redirect",
                                                                                                                              "value": {
                                                                                                                                "status": "off",
                                                                                                                                "mobile_subdomain": "m",
                                                                                                                                "strip_uri": false
                                                                                                                              },
                                                                                                                              "editable": true,
                                                                                                                              "modified_on": "2014-01-01T05:20:00.12345Z"
                                                                                                                            }
                                                                                                                          }
                                                                                                                          zone-settings-change-mirage-setting

                                                                                                                          Required parameters

                                                                                                                          Name /typeDescription /exampleConstraints
                                                                                                                          value
                                                                                                                          string

                                                                                                                          Value of the zone setting

                                                                                                                          "off"

                                                                                                                          • default value: off
                                                                                                                          • valid values: on, off
                                                                                                                          cURL (example)
                                                                                                                          curl -X PATCH "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/settings/mirage" \
                                                                                                                               -H "X-Auth-Email: user@example.com" \
                                                                                                                               -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                               -H "Content-Type: application/json" \
                                                                                                                               --data '{"value":"off"}'
                                                                                                                          Response (example)
                                                                                                                          {
                                                                                                                            "success": true,
                                                                                                                            "errors": [],
                                                                                                                            "messages": [],
                                                                                                                            "result": {
                                                                                                                              "id": "mirage",
                                                                                                                              "value": "off",
                                                                                                                              "editable": true,
                                                                                                                              "modified_on": "2014-01-01T05:20:00.12345Z"
                                                                                                                            }
                                                                                                                          }
                                                                                                                          zone-settings-change-opportunistic-encryption-setting

                                                                                                                          Required parameters

                                                                                                                          Name /typeDescription /exampleConstraints
                                                                                                                          value
                                                                                                                          string

                                                                                                                          Value of the zone setting

                                                                                                                          "on"

                                                                                                                          • default value: on
                                                                                                                          • valid values: on, off
                                                                                                                          • notes: Default value depends on the zone's plan level.
                                                                                                                          cURL (example)
                                                                                                                          curl -X PATCH "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/settings/opportunistic_encryption" \
                                                                                                                               -H "X-Auth-Email: user@example.com" \
                                                                                                                               -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                               -H "Content-Type: application/json" \
                                                                                                                               --data '{"value":"on"}'
                                                                                                                          Response (example)
                                                                                                                          {
                                                                                                                            "success": true,
                                                                                                                            "errors": [],
                                                                                                                            "messages": [],
                                                                                                                            "result": {
                                                                                                                              "id": "opportunistic_encryption",
                                                                                                                              "value": "on",
                                                                                                                              "editable": true,
                                                                                                                              "modified_on": "2014-01-01T05:20:00.12345Z"
                                                                                                                            }
                                                                                                                          }
                                                                                                                          zone-settings-change-polish-setting

                                                                                                                          Required parameters

                                                                                                                          Name /typeDescription /exampleConstraints
                                                                                                                          value
                                                                                                                          string

                                                                                                                          Value of the zone setting

                                                                                                                          "off"

                                                                                                                          • default value: off
                                                                                                                          • valid values: off, lossless, lossy
                                                                                                                          cURL (example)
                                                                                                                          curl -X PATCH "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/settings/polish" \
                                                                                                                               -H "X-Auth-Email: user@example.com" \
                                                                                                                               -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                               -H "Content-Type: application/json" \
                                                                                                                               --data '{"value":"off"}'
                                                                                                                          Response (example)
                                                                                                                          {
                                                                                                                            "success": true,
                                                                                                                            "errors": [],
                                                                                                                            "messages": [],
                                                                                                                            "result": {
                                                                                                                              "id": "polish",
                                                                                                                              "value": "off",
                                                                                                                              "editable": true,
                                                                                                                              "modified_on": "2014-01-01T05:20:00.12345Z"
                                                                                                                            }
                                                                                                                          }
                                                                                                                          zone-settings-change-webp-setting

                                                                                                                          Required parameters

                                                                                                                          Name /typeDescription /exampleConstraints
                                                                                                                          value
                                                                                                                          string

                                                                                                                          Value of the zone setting

                                                                                                                          "off"

                                                                                                                          • default value: off
                                                                                                                          • valid values: off, on
                                                                                                                          cURL (example)
                                                                                                                          curl -X PATCH "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/settings/webp" \
                                                                                                                               -H "X-Auth-Email: user@example.com" \
                                                                                                                               -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                               -H "Content-Type: application/json" \
                                                                                                                               --data '{"value":"off"}'
                                                                                                                          Response (example)
                                                                                                                          {
                                                                                                                            "success": true,
                                                                                                                            "errors": [],
                                                                                                                            "messages": [],
                                                                                                                            "result": {
                                                                                                                              "id": "webp",
                                                                                                                              "value": "off",
                                                                                                                              "editable": true,
                                                                                                                              "modified_on": "2014-01-01T05:20:00.12345Z"
                                                                                                                            }
                                                                                                                          }
                                                                                                                          zone-settings-change-brotli-setting

                                                                                                                          Required parameters

                                                                                                                          Name /typeDescription /exampleConstraints
                                                                                                                          value
                                                                                                                          string

                                                                                                                          Value of the zone setting

                                                                                                                          "off"

                                                                                                                          • default value: off
                                                                                                                          • valid values: off, on
                                                                                                                          cURL (example)
                                                                                                                          curl -X PATCH "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/settings/brotli" \
                                                                                                                               -H "X-Auth-Email: user@example.com" \
                                                                                                                               -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                               -H "Content-Type: application/json" \
                                                                                                                               --data '{"value":"off"}'
                                                                                                                          Response (example)
                                                                                                                          {
                                                                                                                            "success": true,
                                                                                                                            "errors": [],
                                                                                                                            "messages": [],
                                                                                                                            "result": {
                                                                                                                              "id": "brotli",
                                                                                                                              "value": "off",
                                                                                                                              "editable": true,
                                                                                                                              "modified_on": "2014-01-01T05:20:00.12345Z"
                                                                                                                            }
                                                                                                                          }
                                                                                                                          zone-settings-change-prefetch-preload-setting

                                                                                                                          Required parameters

                                                                                                                          Name /typeDescription /exampleConstraints
                                                                                                                          value
                                                                                                                          string

                                                                                                                          Value of the zone setting

                                                                                                                          "off"

                                                                                                                          • default value: off
                                                                                                                          • valid values: on, off
                                                                                                                          cURL (example)
                                                                                                                          curl -X PATCH "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/settings/prefetch_preload" \
                                                                                                                               -H "X-Auth-Email: user@example.com" \
                                                                                                                               -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                               -H "Content-Type: application/json" \
                                                                                                                               --data '{"value":"off"}'
                                                                                                                          Response (example)
                                                                                                                          {
                                                                                                                            "success": true,
                                                                                                                            "errors": [],
                                                                                                                            "messages": [],
                                                                                                                            "result": "off"
                                                                                                                          }
                                                                                                                          zone-settings-change-privacy-pass-setting

                                                                                                                          Required parameters

                                                                                                                          Name /typeDescription /exampleConstraints
                                                                                                                          value
                                                                                                                          string

                                                                                                                          Value of the zone setting

                                                                                                                          "on"

                                                                                                                          • default value: on
                                                                                                                          • valid values: on, off
                                                                                                                          cURL (example)
                                                                                                                          curl -X PATCH "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/settings/privacy_pass" \
                                                                                                                               -H "X-Auth-Email: user@example.com" \
                                                                                                                               -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                               -H "Content-Type: application/json" \
                                                                                                                               --data '{"value":"on"}'
                                                                                                                          Response (example)
                                                                                                                          {
                                                                                                                            "success": true,
                                                                                                                            "errors": [],
                                                                                                                            "messages": [],
                                                                                                                            "result": {
                                                                                                                              "id": "privacy_pass",
                                                                                                                              "value": "on",
                                                                                                                              "editable": true,
                                                                                                                              "modified_on": "2014-01-01T05:20:00.12345Z"
                                                                                                                            }
                                                                                                                          }
                                                                                                                          zone-settings-change-response-buffering-setting

                                                                                                                          Required parameters

                                                                                                                          Name /typeDescription /exampleConstraints
                                                                                                                          value
                                                                                                                          string

                                                                                                                          Value of the zone setting

                                                                                                                          "off"

                                                                                                                          • default value: off
                                                                                                                          • valid values: on, off
                                                                                                                          cURL (example)
                                                                                                                          curl -X PATCH "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/settings/response_buffering" \
                                                                                                                               -H "X-Auth-Email: user@example.com" \
                                                                                                                               -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                               -H "Content-Type: application/json" \
                                                                                                                               --data '{"value":"off"}'
                                                                                                                          Response (example)
                                                                                                                          {
                                                                                                                            "success": true,
                                                                                                                            "errors": [],
                                                                                                                            "messages": [],
                                                                                                                            "result": "off"
                                                                                                                          }
                                                                                                                          zone-settings-change-rocket-loader-setting

                                                                                                                          Required parameters

                                                                                                                          Name /typeDescription /exampleConstraints
                                                                                                                          value
                                                                                                                          string

                                                                                                                          Value of the zone setting

                                                                                                                          "off"

                                                                                                                          • default value: off
                                                                                                                          • valid values: on, off
                                                                                                                          cURL (example)
                                                                                                                          curl -X PATCH "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/settings/rocket_loader" \
                                                                                                                               -H "X-Auth-Email: user@example.com" \
                                                                                                                               -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                               -H "Content-Type: application/json" \
                                                                                                                               --data '{"value":"off"}'
                                                                                                                          Response (example)
                                                                                                                          {
                                                                                                                            "success": true,
                                                                                                                            "errors": [],
                                                                                                                            "messages": [],
                                                                                                                            "result": {
                                                                                                                              "id": "rocket_loader",
                                                                                                                              "value": "off",
                                                                                                                              "editable": true,
                                                                                                                              "modified_on": "2014-01-01T05:20:00.12345Z"
                                                                                                                            }
                                                                                                                          }
                                                                                                                          zone-settings-change-security-header-hsts-setting

                                                                                                                          Required parameters

                                                                                                                          Name /typeDescription /exampleConstraints
                                                                                                                          value
                                                                                                                          object

                                                                                                                          { "strict_transport_security": { "enabled": true, "max_age": 86400, "include_subdomains": true, "nosniff": true } }
                                                                                                                          An object with the following properties:

                                                                                                                          Show definition »

                                                                                                                            cURL (example)
                                                                                                                            curl -X PATCH "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/settings/security_header" \
                                                                                                                                 -H "X-Auth-Email: user@example.com" \
                                                                                                                                 -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                                 -H "Content-Type: application/json" \
                                                                                                                                 --data '{"value":{"strict_transport_security":{"enabled":true,"max_age":86400,"include_subdomains":true,"nosniff":true}}}'
                                                                                                                            Response (example)
                                                                                                                            {
                                                                                                                              "success": true,
                                                                                                                              "errors": [],
                                                                                                                              "messages": [],
                                                                                                                              "result": {
                                                                                                                                "id": "security_header",
                                                                                                                                "value": {
                                                                                                                                  "strict_transport_security": {
                                                                                                                                    "enabled": true,
                                                                                                                                    "max_age": 86400,
                                                                                                                                    "include_subdomains": true,
                                                                                                                                    "nosniff": true
                                                                                                                                  }
                                                                                                                                },
                                                                                                                                "editable": true,
                                                                                                                                "modified_on": "2014-01-01T05:20:00.12345Z"
                                                                                                                              }
                                                                                                                            }
                                                                                                                            zone-settings-change-security-level-setting

                                                                                                                            Required parameters

                                                                                                                            Name /typeDescription /exampleConstraints
                                                                                                                            value
                                                                                                                            string

                                                                                                                            Value of the zone setting

                                                                                                                            "medium"

                                                                                                                            • default value: medium
                                                                                                                            • valid values: off, essentially_off, low, medium, high, under_attack
                                                                                                                            cURL (example)
                                                                                                                            curl -X PATCH "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/settings/security_level" \
                                                                                                                                 -H "X-Auth-Email: user@example.com" \
                                                                                                                                 -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                                 -H "Content-Type: application/json" \
                                                                                                                                 --data '{"value":"medium"}'
                                                                                                                            Response (example)
                                                                                                                            {
                                                                                                                              "success": true,
                                                                                                                              "errors": [],
                                                                                                                              "messages": [],
                                                                                                                              "result": {
                                                                                                                                "id": "security_level",
                                                                                                                                "value": "medium",
                                                                                                                                "editable": true,
                                                                                                                                "modified_on": "2014-01-01T05:20:00.12345Z"
                                                                                                                              }
                                                                                                                            }
                                                                                                                            zone-settings-change-server-side-exclude-setting

                                                                                                                            Required parameters

                                                                                                                            Name /typeDescription /exampleConstraints
                                                                                                                            value
                                                                                                                            string

                                                                                                                            Value of the zone setting

                                                                                                                            "on"

                                                                                                                            • default value: on
                                                                                                                            • valid values: on, off
                                                                                                                            cURL (example)
                                                                                                                            curl -X PATCH "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/settings/server_side_exclude" \
                                                                                                                                 -H "X-Auth-Email: user@example.com" \
                                                                                                                                 -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                                 -H "Content-Type: application/json" \
                                                                                                                                 --data '{"value":"on"}'
                                                                                                                            Response (example)
                                                                                                                            {
                                                                                                                              "success": true,
                                                                                                                              "errors": [],
                                                                                                                              "messages": [],
                                                                                                                              "result": {
                                                                                                                                "id": "server_side_exclude",
                                                                                                                                "value": "on",
                                                                                                                                "editable": true,
                                                                                                                                "modified_on": "2014-01-01T05:20:00.12345Z"
                                                                                                                              }
                                                                                                                            }
                                                                                                                            zone-settings-change-ssl-setting

                                                                                                                            Required parameters

                                                                                                                            Name /typeDescription /exampleConstraints
                                                                                                                            value
                                                                                                                            string

                                                                                                                            Value of the zone setting

                                                                                                                            "off"

                                                                                                                            • default value: off
                                                                                                                            • valid values: off, flexible, full, strict
                                                                                                                            • notes: Depends on the zone's plan level
                                                                                                                            cURL (example)
                                                                                                                            curl -X PATCH "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/settings/ssl" \
                                                                                                                                 -H "X-Auth-Email: user@example.com" \
                                                                                                                                 -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                                 -H "Content-Type: application/json" \
                                                                                                                                 --data '{"value":"off"}'
                                                                                                                            Response (example)
                                                                                                                            {
                                                                                                                              "success": true,
                                                                                                                              "errors": [],
                                                                                                                              "messages": [],
                                                                                                                              "result": {
                                                                                                                                "id": "ssl",
                                                                                                                                "value": "off",
                                                                                                                                "editable": true,
                                                                                                                                "modified_on": "2014-01-01T05:20:00.12345Z"
                                                                                                                              }
                                                                                                                            }
                                                                                                                            zone-settings-change-ssl/tls-recommender-enrollment

                                                                                                                            Required parameters

                                                                                                                            Name /typeDescription /exampleConstraints
                                                                                                                            enabled
                                                                                                                            boolean

                                                                                                                            ssl-recommender enrollment setting

                                                                                                                            false

                                                                                                                            • default value: false
                                                                                                                            • valid values: (true,false)
                                                                                                                            cURL (example)
                                                                                                                            curl -X PATCH "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/settings/ssl_recommender" \
                                                                                                                                 -H "X-Auth-Email: user@example.com" \
                                                                                                                                 -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                                 -H "Content-Type: application/json" \
                                                                                                                                 --data '{"enabled":false}'
                                                                                                                            Response (example)
                                                                                                                            {
                                                                                                                              "success": true,
                                                                                                                              "errors": [],
                                                                                                                              "messages": [],
                                                                                                                              "result": {
                                                                                                                                "id": "ssl_recommender",
                                                                                                                                "enabled": false,
                                                                                                                                "editable": true,
                                                                                                                                "modified_on": "2014-01-01T05:20:00.12345Z"
                                                                                                                              }
                                                                                                                            }
                                                                                                                            zone-settings-change-tls-client-auth-setting

                                                                                                                            Required parameters

                                                                                                                            Name /typeDescription /exampleConstraints
                                                                                                                            value
                                                                                                                            string

                                                                                                                            value of the zone setting

                                                                                                                            "on"

                                                                                                                            • default value: on
                                                                                                                            • valid values: on, off
                                                                                                                            cURL (example)
                                                                                                                            curl -X PATCH "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/settings/tls_client_auth" \
                                                                                                                                 -H "X-Auth-Email: user@example.com" \
                                                                                                                                 -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                                 -H "Content-Type: application/json" \
                                                                                                                                 --data '{"value":"on"}'
                                                                                                                            Response (example)
                                                                                                                            {
                                                                                                                              "success": true,
                                                                                                                              "errors": [],
                                                                                                                              "messages": [],
                                                                                                                              "result": {
                                                                                                                                "id": "tls_client_auth",
                                                                                                                                "value": "on",
                                                                                                                                "editable": true,
                                                                                                                                "modified_on": "2014-01-01T05:20:00.12345Z"
                                                                                                                              }
                                                                                                                            }
                                                                                                                            zone-settings-change-true-client-ip-setting

                                                                                                                            Required parameters

                                                                                                                            Name /typeDescription /exampleConstraints
                                                                                                                            value
                                                                                                                            string

                                                                                                                            Value of the zone setting

                                                                                                                            "off"

                                                                                                                            • default value: off
                                                                                                                            • valid values: on, off
                                                                                                                            cURL (example)
                                                                                                                            curl -X PATCH "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/settings/true_client_ip_header" \
                                                                                                                                 -H "X-Auth-Email: user@example.com" \
                                                                                                                                 -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                                 -H "Content-Type: application/json" \
                                                                                                                                 --data '{"value":"off"}'
                                                                                                                            Response (example)
                                                                                                                            {
                                                                                                                              "success": true,
                                                                                                                              "errors": [],
                                                                                                                              "messages": [],
                                                                                                                              "result": "off"
                                                                                                                            }
                                                                                                                            zone-settings-change-proxy-read-timeout-setting

                                                                                                                            Required parameters

                                                                                                                            Name /typeDescription /exampleConstraints
                                                                                                                            value
                                                                                                                            number

                                                                                                                            Value of the zone setting

                                                                                                                            100

                                                                                                                            • default value: 100
                                                                                                                            • notes: Value must be between 1 and 6000
                                                                                                                            cURL (example)
                                                                                                                            curl -X PATCH "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/settings/proxy_read_timeout" \
                                                                                                                                 -H "X-Auth-Email: user@example.com" \
                                                                                                                                 -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                                 -H "Content-Type: application/json" \
                                                                                                                                 --data '{"value":100}'
                                                                                                                            Response (example)
                                                                                                                            {
                                                                                                                              "success": true,
                                                                                                                              "errors": [],
                                                                                                                              "messages": [],
                                                                                                                              "result": {
                                                                                                                                "id": "proxy_read_timeout",
                                                                                                                                "value": 100,
                                                                                                                                "editable": true,
                                                                                                                                "modified_on": "2014-01-01T05:20:00.12345Z"
                                                                                                                              }
                                                                                                                            }
                                                                                                                            zone-settings-change-minimum-tls-version-setting

                                                                                                                            Required parameters

                                                                                                                            Name /typeDescription /exampleConstraints
                                                                                                                            value
                                                                                                                            string

                                                                                                                            Value of the zone setting

                                                                                                                            "1.0"

                                                                                                                            • default value: 1.0
                                                                                                                            • valid values: 1.0, 1.1, 1.2, 1.3
                                                                                                                            cURL (example)
                                                                                                                            curl -X PATCH "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/settings/min_tls_version" \
                                                                                                                                 -H "X-Auth-Email: user@example.com" \
                                                                                                                                 -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                                 -H "Content-Type: application/json" \
                                                                                                                                 --data '{"value":"1.0"}'
                                                                                                                            Response (example)
                                                                                                                            {
                                                                                                                              "success": true,
                                                                                                                              "errors": [],
                                                                                                                              "messages": [],
                                                                                                                              "result": "1.0"
                                                                                                                            }
                                                                                                                            zone-settings-change-ciphers-setting

                                                                                                                            Required parameters

                                                                                                                            Name /typeDescription /exampleConstraints
                                                                                                                            value
                                                                                                                            array

                                                                                                                            Value of the zone setting

                                                                                                                            [ "ECDHE-RSA-AES128-GCM-SHA256", "AES128-SHA" ]
                                                                                                                            An array with items in the following form:

                                                                                                                            Show definition »

                                                                                                                            • default value: List []
                                                                                                                            • unique items
                                                                                                                            cURL (example)
                                                                                                                            curl -X PATCH "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/settings/ciphers" \
                                                                                                                                 -H "X-Auth-Email: user@example.com" \
                                                                                                                                 -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                                 -H "Content-Type: application/json" \
                                                                                                                                 --data '{"value":["ECDHE-RSA-AES128-GCM-SHA256","AES128-SHA"]}'
                                                                                                                            Response (example)
                                                                                                                            {
                                                                                                                              "success": true,
                                                                                                                              "errors": [],
                                                                                                                              "messages": [],
                                                                                                                              "result": []
                                                                                                                            }
                                                                                                                            zone-settings-change-tls-1.3-setting

                                                                                                                            Required parameters

                                                                                                                            Name /typeDescription /exampleConstraints
                                                                                                                            value
                                                                                                                            string

                                                                                                                            Value of the zone setting

                                                                                                                            "off"

                                                                                                                            • default value: off
                                                                                                                            • valid values: on, off, zrt
                                                                                                                            • notes: Default value depends on the zone's plan level.
                                                                                                                            cURL (example)
                                                                                                                            curl -X PATCH "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/settings/tls_1_3" \
                                                                                                                                 -H "X-Auth-Email: user@example.com" \
                                                                                                                                 -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                                 -H "Content-Type: application/json" \
                                                                                                                                 --data '{"value":"off"}'
                                                                                                                            Response (example)
                                                                                                                            {
                                                                                                                              "success": true,
                                                                                                                              "errors": [],
                                                                                                                              "messages": [],
                                                                                                                              "result": "off"
                                                                                                                            }
                                                                                                                            zone-settings-change-web-application-firewall-waf-setting

                                                                                                                            Required parameters

                                                                                                                            Name /typeDescription /exampleConstraints
                                                                                                                            value
                                                                                                                            string

                                                                                                                            Value of the zone setting

                                                                                                                            "off"

                                                                                                                            • default value: off
                                                                                                                            • valid values: on, off
                                                                                                                            cURL (example)
                                                                                                                            curl -X PATCH "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/settings/waf" \
                                                                                                                                 -H "X-Auth-Email: user@example.com" \
                                                                                                                                 -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                                 -H "Content-Type: application/json" \
                                                                                                                                 --data '{"value":"off"}'
                                                                                                                            Response (example)
                                                                                                                            {
                                                                                                                              "success": true,
                                                                                                                              "errors": [],
                                                                                                                              "messages": [],
                                                                                                                              "result": {
                                                                                                                                "id": "waf",
                                                                                                                                "value": "off",
                                                                                                                                "editable": true,
                                                                                                                                "modified_on": "2014-01-01T05:20:00.12345Z"
                                                                                                                              }
                                                                                                                            }
                                                                                                                            zone-settings-change-http2-setting

                                                                                                                            Required parameters

                                                                                                                            Name /typeDescription /exampleConstraints
                                                                                                                            value
                                                                                                                            string

                                                                                                                            Value of the HTTP2 setting

                                                                                                                            "off"

                                                                                                                            • default value: off
                                                                                                                            • valid values: on, off
                                                                                                                            cURL (example)
                                                                                                                            curl -X PATCH "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/settings/http2" \
                                                                                                                                 -H "X-Auth-Email: user@example.com" \
                                                                                                                                 -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                                 -H "Content-Type: application/json" \
                                                                                                                                 --data '{"value":"off"}'
                                                                                                                            Response (example)
                                                                                                                            {
                                                                                                                              "success": true,
                                                                                                                              "errors": [],
                                                                                                                              "messages": [],
                                                                                                                              "result": {
                                                                                                                                "id": "http2",
                                                                                                                                "value": "off",
                                                                                                                                "editable": true,
                                                                                                                                "modified_on": "2014-01-01T05:20:00.12345Z"
                                                                                                                              }
                                                                                                                            }
                                                                                                                            zone-settings-change-http3-setting

                                                                                                                            Required parameters

                                                                                                                            Name /typeDescription /exampleConstraints
                                                                                                                            value
                                                                                                                            string

                                                                                                                            Value of the HTTP3 setting

                                                                                                                            "off"

                                                                                                                            • default value: off
                                                                                                                            • valid values: on, off
                                                                                                                            cURL (example)
                                                                                                                            curl -X PATCH "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/settings/http3" \
                                                                                                                                 -H "X-Auth-Email: user@example.com" \
                                                                                                                                 -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                                 -H "Content-Type: application/json" \
                                                                                                                                 --data '{"value":"off"}'
                                                                                                                            Response (example)
                                                                                                                            {
                                                                                                                              "success": true,
                                                                                                                              "errors": [],
                                                                                                                              "messages": [],
                                                                                                                              "result": {
                                                                                                                                "id": "http3",
                                                                                                                                "value": "off",
                                                                                                                                "editable": true,
                                                                                                                                "modified_on": "2014-01-01T05:20:00.12345Z"
                                                                                                                              }
                                                                                                                            }
                                                                                                                            zone-settings-change-0-rtt-session-resumption-setting

                                                                                                                            Required parameters

                                                                                                                            Name /typeDescription /exampleConstraints
                                                                                                                            value
                                                                                                                            string

                                                                                                                            Value of the 0-RTT setting

                                                                                                                            "off"

                                                                                                                            • default value: off
                                                                                                                            • valid values: on, off
                                                                                                                            cURL (example)
                                                                                                                            curl -X PATCH "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/settings/0rtt" \
                                                                                                                                 -H "X-Auth-Email: user@example.com" \
                                                                                                                                 -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                                 -H "Content-Type: application/json" \
                                                                                                                                 --data '{"value":"off"}'
                                                                                                                            Response (example)
                                                                                                                            {
                                                                                                                              "success": true,
                                                                                                                              "errors": [],
                                                                                                                              "messages": [],
                                                                                                                              "result": {
                                                                                                                                "id": "0rtt",
                                                                                                                                "value": "off",
                                                                                                                                "editable": true,
                                                                                                                                "modified_on": "2014-01-01T05:20:00.12345Z"
                                                                                                                              }
                                                                                                                            }
                                                                                                                            zone-settings-change-pseudo-ipv4-setting

                                                                                                                            Required parameters

                                                                                                                            Name /typeDescription /exampleConstraints
                                                                                                                            value
                                                                                                                            string

                                                                                                                            Value of the Pseudo IPv4 setting

                                                                                                                            "off"

                                                                                                                            • default value: off
                                                                                                                            • valid values: off, add_header, overwrite_header
                                                                                                                            cURL (example)
                                                                                                                            curl -X PATCH "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/settings/pseudo_ipv4" \
                                                                                                                                 -H "X-Auth-Email: user@example.com" \
                                                                                                                                 -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                                 -H "Content-Type: application/json" \
                                                                                                                                 --data '{"value":"off"}'
                                                                                                                            Response (example)
                                                                                                                            {
                                                                                                                              "success": true,
                                                                                                                              "errors": [],
                                                                                                                              "messages": [],
                                                                                                                              "result": {
                                                                                                                                "id": "pseudo_ipv4",
                                                                                                                                "value": "off",
                                                                                                                                "editable": true,
                                                                                                                                "modified_on": "2014-01-01T05:20:00.12345Z"
                                                                                                                              }
                                                                                                                            }
                                                                                                                            zone-settings-change-websockets-setting

                                                                                                                            Required parameters

                                                                                                                            Name /typeDescription /exampleConstraints
                                                                                                                            value
                                                                                                                            string

                                                                                                                            Value of the zone setting

                                                                                                                            "off"

                                                                                                                            • default value: off
                                                                                                                            • valid values: off, on
                                                                                                                            cURL (example)
                                                                                                                            curl -X PATCH "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/settings/websockets" \
                                                                                                                                 -H "X-Auth-Email: user@example.com" \
                                                                                                                                 -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                                 -H "Content-Type: application/json" \
                                                                                                                                 --data '{"value":"off"}'
                                                                                                                            Response (example)
                                                                                                                            {
                                                                                                                              "success": true,
                                                                                                                              "errors": [],
                                                                                                                              "messages": [],
                                                                                                                              "result": {
                                                                                                                                "id": "websockets",
                                                                                                                                "value": "off",
                                                                                                                                "editable": true,
                                                                                                                                "modified_on": "2014-01-01T05:20:00.12345Z"
                                                                                                                              }
                                                                                                                            }
                                                                                                                            zone-settings-change-image-resizing-setting

                                                                                                                            Required parameters

                                                                                                                            Name /typeDescription /exampleConstraints
                                                                                                                            value
                                                                                                                            string

                                                                                                                            Whether the feature is enabled, disabled, or enabled in 'open proxy' mode

                                                                                                                            "off"

                                                                                                                            • default value: off
                                                                                                                            • valid values: on, off, open
                                                                                                                            cURL (example)
                                                                                                                            curl -X PATCH "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/settings/image_resizing" \
                                                                                                                                 -H "X-Auth-Email: user@example.com" \
                                                                                                                                 -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                                 -H "Content-Type: application/json" \
                                                                                                                                 --data '{"value":"off"}'
                                                                                                                            Response (example)
                                                                                                                            {
                                                                                                                              "success": true,
                                                                                                                              "errors": [],
                                                                                                                              "messages": [],
                                                                                                                              "result": {
                                                                                                                                "id": "image_resizing",
                                                                                                                                "value": "off",
                                                                                                                                "editable": true,
                                                                                                                                "modified_on": "2014-01-01T05:20:00.12345Z"
                                                                                                                              }
                                                                                                                            }
                                                                                                                            zone-settings-change-http/2-edge-prioritization-setting

                                                                                                                            Required parameters

                                                                                                                            Name /typeDescription /exampleConstraints
                                                                                                                            value
                                                                                                                            string

                                                                                                                            Value of the zone setting

                                                                                                                            "off"

                                                                                                                            • default value: off
                                                                                                                            • valid values: on, off, custom
                                                                                                                            cURL (example)
                                                                                                                            curl -X PATCH "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/settings/h2_prioritization" \
                                                                                                                                 -H "X-Auth-Email: user@example.com" \
                                                                                                                                 -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                                 -H "Content-Type: application/json" \
                                                                                                                                 --data '{"value":"off"}'
                                                                                                                            Response (example)
                                                                                                                            {
                                                                                                                              "success": true,
                                                                                                                              "errors": [],
                                                                                                                              "messages": [],
                                                                                                                              "result": {
                                                                                                                                "id": "h2_prioritization",
                                                                                                                                "value": "off",
                                                                                                                                "editable": true,
                                                                                                                                "modified_on": "2014-01-01T05:20:00.12345Z"
                                                                                                                              }
                                                                                                                            }
                                                                                                                            zone-settings-change-automatic-platform-optimization-for-wordpress-setting

                                                                                                                            Required parameters

                                                                                                                            Name /typeDescription /exampleConstraints
                                                                                                                            value
                                                                                                                            object

                                                                                                                            Automatic Platform Optimization for WordPress serves your WordPress site from Cloudflare's edge network and caches third party fonts.

                                                                                                                            { "enabled": true, "cf": true, "wordpress": true, "wp_plugin": true, "hostnames": [ "www.example.com", "example.com", "shop.example.com" ], "cache_by_device_type": false }
                                                                                                                            An object with the following properties:

                                                                                                                            Show definition »

                                                                                                                              cURL (example)
                                                                                                                              curl -X PATCH "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/settings/automatic_platform_optimization" \
                                                                                                                                   -H "X-Auth-Email: user@example.com" \
                                                                                                                                   -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                                   -H "Content-Type: application/json" \
                                                                                                                                   --data '{"value":{"enabled":true,"cf":true,"wordpress":true,"wp_plugin":true,"hostnames":["www.example.com","example.com","shop.example.com"],"cache_by_device_type":false}}'
                                                                                                                              Response (example)
                                                                                                                              {
                                                                                                                                "success": true,
                                                                                                                                "errors": [],
                                                                                                                                "messages": [],
                                                                                                                                "result": {
                                                                                                                                  "id": "automatic_platform_optimization",
                                                                                                                                  "value": {
                                                                                                                                    "enabled": true,
                                                                                                                                    "cf": true,
                                                                                                                                    "wordpress": true,
                                                                                                                                    "wp_plugin": true,
                                                                                                                                    "hostnames": [
                                                                                                                                      "www.example.com",
                                                                                                                                      "example.com",
                                                                                                                                      "shop.example.com"
                                                                                                                                    ],
                                                                                                                                    "cache_by_device_type": false
                                                                                                                                  },
                                                                                                                                  "editable": true,
                                                                                                                                  "modified_on": "2014-01-01T05:20:00.12345Z"
                                                                                                                                }
                                                                                                                              }

                                                                                                                              Zone Cache Settings

                                                                                                                              Zone level settings controlling how the Zone works in relation to the caching features of Cloudflare.

                                                                                                                              zone-cache-settings
                                                                                                                              zone-cache-settings-get-variants-setting
                                                                                                                              cURL (example)
                                                                                                                              curl -X GET "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/cache/variants" \
                                                                                                                                   -H "X-Auth-Email: user@example.com" \
                                                                                                                                   -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                                   -H "Content-Type: application/json"
                                                                                                                              Response (example)
                                                                                                                              {
                                                                                                                                "success": true,
                                                                                                                                "errors": [],
                                                                                                                                "messages": [],
                                                                                                                                "result": {
                                                                                                                                  "id": "variants",
                                                                                                                                  "modified_on": "2014-01-01T05:20:00.12345Z",
                                                                                                                                  "value": {
                                                                                                                                    "avif": [
                                                                                                                                      "image/webp",
                                                                                                                                      "image/jpeg"
                                                                                                                                    ],
                                                                                                                                    "bmp": [
                                                                                                                                      "image/webp",
                                                                                                                                      "image/jpeg"
                                                                                                                                    ],
                                                                                                                                    "gif": [
                                                                                                                                      "image/webp",
                                                                                                                                      "image/jpeg"
                                                                                                                                    ],
                                                                                                                                    "jpeg": [
                                                                                                                                      "image/webp",
                                                                                                                                      "image/avif"
                                                                                                                                    ],
                                                                                                                                    "jpg": [
                                                                                                                                      "image/webp",
                                                                                                                                      "image/avif"
                                                                                                                                    ],
                                                                                                                                    "jpg2": [
                                                                                                                                      "image/webp",
                                                                                                                                      "image/avif"
                                                                                                                                    ],
                                                                                                                                    "jp2": [
                                                                                                                                      "image/webp",
                                                                                                                                      "image/avif"
                                                                                                                                    ],
                                                                                                                                    "png": [
                                                                                                                                      "image/webp",
                                                                                                                                      "image/avif"
                                                                                                                                    ],
                                                                                                                                    "tiff": [
                                                                                                                                      "image/webp",
                                                                                                                                      "image/avif"
                                                                                                                                    ],
                                                                                                                                    "tif": [
                                                                                                                                      "image/webp",
                                                                                                                                      "image/avif"
                                                                                                                                    ],
                                                                                                                                    "webp": [
                                                                                                                                      "image/jpeg",
                                                                                                                                      "image/avif"
                                                                                                                                    ]
                                                                                                                                  }
                                                                                                                                }
                                                                                                                              }
                                                                                                                              zone-cache-settings-change-variants-setting

                                                                                                                              Required parameters

                                                                                                                              Name /typeDescription /exampleConstraints
                                                                                                                              value
                                                                                                                              object

                                                                                                                              Value of the zone setting

                                                                                                                              { "avif": [ "image/webp", "image/jpeg" ], "bmp": [ "image/webp", "image/jpeg" ], "gif": [ "image/webp", "image/jpeg" ], "jpeg": [ "image/webp", "image/avif" ], "jpg": [ "image/webp", "image/avif" ], "jpg2": [ "image/webp", "image/avif" ], "jp2": [ "image/webp", "image/avif" ], "png": [ "image/webp", "image/avif" ], "tiff": [ "image/webp", "image/avif" ], "tif": [ "image/webp", "image/avif" ], "webp": [ "image/jpeg", "image/avif" ] }
                                                                                                                              An object with the following properties:

                                                                                                                              Show definition »

                                                                                                                                cURL (example)
                                                                                                                                curl -X PATCH "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/cache/variants" \
                                                                                                                                     -H "X-Auth-Email: user@example.com" \
                                                                                                                                     -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                                     -H "Content-Type: application/json" \
                                                                                                                                     --data '{"value":{"avif":["image/webp","image/jpeg"],"bmp":["image/webp","image/jpeg"],"gif":["image/webp","image/jpeg"],"jpeg":["image/webp","image/avif"],"jpg":["image/webp","image/avif"],"jpg2":["image/webp","image/avif"],"jp2":["image/webp","image/avif"],"png":["image/webp","image/avif"],"tiff":["image/webp","image/avif"],"tif":["image/webp","image/avif"],"webp":["image/jpeg","image/avif"]}}'
                                                                                                                                Response (example)
                                                                                                                                {
                                                                                                                                  "success": true,
                                                                                                                                  "errors": [],
                                                                                                                                  "messages": [],
                                                                                                                                  "result": {
                                                                                                                                    "id": "variants",
                                                                                                                                    "modified_on": "2014-01-01T05:20:00.12345Z",
                                                                                                                                    "value": {
                                                                                                                                      "avif": [
                                                                                                                                        "image/webp",
                                                                                                                                        "image/jpeg"
                                                                                                                                      ],
                                                                                                                                      "bmp": [
                                                                                                                                        "image/webp",
                                                                                                                                        "image/jpeg"
                                                                                                                                      ],
                                                                                                                                      "gif": [
                                                                                                                                        "image/webp",
                                                                                                                                        "image/jpeg"
                                                                                                                                      ],
                                                                                                                                      "jpeg": [
                                                                                                                                        "image/webp",
                                                                                                                                        "image/avif"
                                                                                                                                      ],
                                                                                                                                      "jpg": [
                                                                                                                                        "image/webp",
                                                                                                                                        "image/avif"
                                                                                                                                      ],
                                                                                                                                      "jpg2": [
                                                                                                                                        "image/webp",
                                                                                                                                        "image/avif"
                                                                                                                                      ],
                                                                                                                                      "jp2": [
                                                                                                                                        "image/webp",
                                                                                                                                        "image/avif"
                                                                                                                                      ],
                                                                                                                                      "png": [
                                                                                                                                        "image/webp",
                                                                                                                                        "image/avif"
                                                                                                                                      ],
                                                                                                                                      "tiff": [
                                                                                                                                        "image/webp",
                                                                                                                                        "image/avif"
                                                                                                                                      ],
                                                                                                                                      "tif": [
                                                                                                                                        "image/webp",
                                                                                                                                        "image/avif"
                                                                                                                                      ],
                                                                                                                                      "webp": [
                                                                                                                                        "image/jpeg",
                                                                                                                                        "image/avif"
                                                                                                                                      ]
                                                                                                                                    }
                                                                                                                                  }
                                                                                                                                }
                                                                                                                                zone-cache-settings-delete-variants-setting
                                                                                                                                cURL (example)
                                                                                                                                curl -X DELETE "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/cache/variants" \
                                                                                                                                     -H "X-Auth-Email: user@example.com" \
                                                                                                                                     -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                                     -H "Content-Type: application/json"
                                                                                                                                Response (example)
                                                                                                                                {
                                                                                                                                  "success": true,
                                                                                                                                  "errors": [],
                                                                                                                                  "messages": [],
                                                                                                                                  "result": {
                                                                                                                                    "id": "variants",
                                                                                                                                    "modified_on": "2014-01-01T05:20:00.12345Z"
                                                                                                                                  }
                                                                                                                                }
                                                                                                                                CodeDescription
                                                                                                                                1134Unable to parse zone setting value.
                                                                                                                                1135Sorry, this zone setting is not available for your plan type.
                                                                                                                                1136Sorry, you do not have access to this zone setting for that zone id or that zone id is invalid.
                                                                                                                                1137Unable to process request. Internal error.
                                                                                                                                1138Unable to retrieve <zone_cache_setting_id> setting value. Internal error.
                                                                                                                                1140Unable to update <zone_cache_setting_id> setting value. Internal error.
                                                                                                                                1141Unable to delete <zone_cache_setting_id> setting. Internal error.
                                                                                                                                1142Unable to retrieve <zone_cache_setting_id> setting value. The zone setting does not exist.
                                                                                                                                1144Unable to delete <zone_cache_setting_id> setting. The zone setting does not exist.
                                                                                                                                1146The value provided for <zone_cache_setting_id> setting is not valid.

                                                                                                                                Zone Analytics

                                                                                                                                Analytics data for a zone

                                                                                                                                zone-analytics

                                                                                                                                Deprecation Warning

                                                                                                                                End of life Date: March 1, 2021

                                                                                                                                Please use the new GraphQL Analytics API instead: https://developers.cloudflare.com/analytics/graphql-api/. It provides equivalent data and more features, including the ability to select only the metrics you need. Migration guide: https://developers.cloudflare.com/analytics/migration-guides/zone-analytics/.

                                                                                                                                zone-analytics-dashboard

                                                                                                                                Optional parameters

                                                                                                                                Name /typeDescription /exampleConstraints
                                                                                                                                since
                                                                                                                                stringinteger

                                                                                                                                The (inclusive) beginning of the requested time frame. This value can be a negative integer representing the number of minutes in the past relative to time the request is made, or can be an absolute timestamp that conforms to RFC 3339. At this point in time, it cannot exceed a time in the past greater than one year.

                                                                                                                                Ranges that the Cloudflare web application provides will provide the following period length for each point:

                                                                                                                                • Last 60 minutes (from -59 to -1): 1 minute resolution
                                                                                                                                • Last 7 hours (from -419 to -60): 15 minutes resolution
                                                                                                                                • Last 15 hours (from -899 to -420): 30 minutes resolution
                                                                                                                                • Last 72 hours (from -4320 to -900): 1 hour resolution
                                                                                                                                • Older than 3 days (-525600 to -4320): 1 day resolution

                                                                                                                                "2015-01-01T12:23:00Z"

                                                                                                                                • default value: -10080
                                                                                                                                until
                                                                                                                                stringinteger

                                                                                                                                The (exclusive) end of the requested time frame. This value can be a negative integer representing the number of minutes in the past relative to time the request is made, or can be an absolute timestamp that conforms to RFC 3339. If omitted, the time of the request is used.

                                                                                                                                "2015-01-02T12:23:00Z"

                                                                                                                                • default value: 0
                                                                                                                                continuous
                                                                                                                                boolean

                                                                                                                                When set to true, the API will move the requested time window backward, until it finds a region with completely aggregated data.

                                                                                                                                The API response may not represent the requested time window.

                                                                                                                                true

                                                                                                                                • default value: true
                                                                                                                                • valid values: (true,false)
                                                                                                                                cURL (example)
                                                                                                                                curl -X GET "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/analytics/dashboard?since=2015-01-01T12:23:00Z&until=2015-01-02T12:23:00Z&continuous=true" \
                                                                                                                                     -H "X-Auth-Email: user@example.com" \
                                                                                                                                     -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                                     -H "Content-Type: application/json"
                                                                                                                                Response (example)
                                                                                                                                {
                                                                                                                                  "success": true,
                                                                                                                                  "errors": [],
                                                                                                                                  "messages": [],
                                                                                                                                  "result": {
                                                                                                                                    "totals": {
                                                                                                                                      "since": "2015-01-01T12:23:00Z",
                                                                                                                                      "until": "2015-01-02T12:23:00Z",
                                                                                                                                      "requests": {
                                                                                                                                        "all": 1234085328,
                                                                                                                                        "cached": 1234085328,
                                                                                                                                        "uncached": 13876154,
                                                                                                                                        "content_type": {
                                                                                                                                          "css": 15343,
                                                                                                                                          "html": 1234213,
                                                                                                                                          "javascript": 318236,
                                                                                                                                          "gif": 23178,
                                                                                                                                          "jpeg": 1982048
                                                                                                                                        },
                                                                                                                                        "country": {
                                                                                                                                          "US": 4181364,
                                                                                                                                          "AG": 37298,
                                                                                                                                          "GI": 293846
                                                                                                                                        },
                                                                                                                                        "ssl": {
                                                                                                                                          "encrypted": 12978361,
                                                                                                                                          "unencrypted": 781263
                                                                                                                                        },
                                                                                                                                        "ssl_protocols": {
                                                                                                                                          "TLSv1": 398232,
                                                                                                                                          "TLSv1.1": 12532236,
                                                                                                                                          "TLSv1.2": 2447136,
                                                                                                                                          "TLSv1.3": 10483332,
                                                                                                                                          "none": 781263
                                                                                                                                        },
                                                                                                                                        "http_status": {
                                                                                                                                          "200": 13496983,
                                                                                                                                          "301": 283,
                                                                                                                                          "400": 187936,
                                                                                                                                          "402": 1828,
                                                                                                                                          "404": 1293
                                                                                                                                        }
                                                                                                                                      },
                                                                                                                                      "bandwidth": {
                                                                                                                                        "all": 213867451,
                                                                                                                                        "cached": 113205063,
                                                                                                                                        "uncached": 113205063,
                                                                                                                                        "content_type": {
                                                                                                                                          "css": 237421,
                                                                                                                                          "html": 1231290,
                                                                                                                                          "javascript": 123245,
                                                                                                                                          "gif": 1234242,
                                                                                                                                          "jpeg": 784278
                                                                                                                                        },
                                                                                                                                        "country": {
                                                                                                                                          "US": 123145433,
                                                                                                                                          "AG": 2342483,
                                                                                                                                          "GI": 984753
                                                                                                                                        },
                                                                                                                                        "ssl": {
                                                                                                                                          "encrypted": 37592942,
                                                                                                                                          "unencrypted": 237654192
                                                                                                                                        },
                                                                                                                                        "ssl_protocols": {
                                                                                                                                          "TLSv1": 398232,
                                                                                                                                          "TLSv1.1": 12532236,
                                                                                                                                          "TLSv1.2": 2447136,
                                                                                                                                          "TLSv1.3": 10483332,
                                                                                                                                          "none": 781263
                                                                                                                                        }
                                                                                                                                      },
                                                                                                                                      "threats": {
                                                                                                                                        "all": 23423873,
                                                                                                                                        "country": {
                                                                                                                                          "US": 123,
                                                                                                                                          "CN": 523423,
                                                                                                                                          "AU": 91
                                                                                                                                        },
                                                                                                                                        "type": {
                                                                                                                                          "user.ban.ip": 123,
                                                                                                                                          "hot.ban.unknown": 5324,
                                                                                                                                          "macro.chl.captchaErr": 1341,
                                                                                                                                          "macro.chl.jschlErr": 5323
                                                                                                                                        }
                                                                                                                                      },
                                                                                                                                      "pageviews": {
                                                                                                                                        "all": 5724723,
                                                                                                                                        "search_engine": {
                                                                                                                                          "googlebot": 35272,
                                                                                                                                          "pingdom": 13435,
                                                                                                                                          "bingbot": 5372,
                                                                                                                                          "baidubot": 1345
                                                                                                                                        }
                                                                                                                                      },
                                                                                                                                      "uniques": {
                                                                                                                                        "all": 12343
                                                                                                                                      }
                                                                                                                                    },
                                                                                                                                    "timeseries": [
                                                                                                                                      {
                                                                                                                                        "since": "2015-01-01T12:23:00Z",
                                                                                                                                        "until": "2015-01-02T12:23:00Z",
                                                                                                                                        "requests": {
                                                                                                                                          "all": 1234085328,
                                                                                                                                          "cached": 1234085328,
                                                                                                                                          "uncached": 13876154,
                                                                                                                                          "content_type": {
                                                                                                                                            "css": 15343,
                                                                                                                                            "html": 1234213,
                                                                                                                                            "javascript": 318236,
                                                                                                                                            "gif": 23178,
                                                                                                                                            "jpeg": 1982048
                                                                                                                                          },
                                                                                                                                          "country": {
                                                                                                                                            "US": 4181364,
                                                                                                                                            "AG": 37298,
                                                                                                                                            "GI": 293846
                                                                                                                                          },
                                                                                                                                          "ssl": {
                                                                                                                                            "encrypted": 12978361,
                                                                                                                                            "unencrypted": 781263
                                                                                                                                          },
                                                                                                                                          "ssl_protocols": {
                                                                                                                                            "TLSv1": 398232,
                                                                                                                                            "TLSv1.1": 12532236,
                                                                                                                                            "TLSv1.2": 2447136,
                                                                                                                                            "TLSv1.3": 10483332,
                                                                                                                                            "none": 781263
                                                                                                                                          },
                                                                                                                                          "http_status": {
                                                                                                                                            "200": 13496983,
                                                                                                                                            "301": 283,
                                                                                                                                            "400": 187936,
                                                                                                                                            "402": 1828,
                                                                                                                                            "404": 1293
                                                                                                                                          }
                                                                                                                                        },
                                                                                                                                        "bandwidth": {
                                                                                                                                          "all": 213867451,
                                                                                                                                          "cached": 113205063,
                                                                                                                                          "uncached": 113205063,
                                                                                                                                          "content_type": {
                                                                                                                                            "css": 237421,
                                                                                                                                            "html": 1231290,
                                                                                                                                            "javascript": 123245,
                                                                                                                                            "gif": 1234242,
                                                                                                                                            "jpeg": 784278
                                                                                                                                          },
                                                                                                                                          "country": {
                                                                                                                                            "US": 123145433,
                                                                                                                                            "AG": 2342483,
                                                                                                                                            "GI": 984753
                                                                                                                                          },
                                                                                                                                          "ssl": {
                                                                                                                                            "encrypted": 37592942,
                                                                                                                                            "unencrypted": 237654192
                                                                                                                                          },
                                                                                                                                          "ssl_protocols": {
                                                                                                                                            "TLSv1": 398232,
                                                                                                                                            "TLSv1.1": 12532236,
                                                                                                                                            "TLSv1.2": 2447136,
                                                                                                                                            "TLSv1.3": 10483332,
                                                                                                                                            "none": 781263
                                                                                                                                          }
                                                                                                                                        },
                                                                                                                                        "threats": {
                                                                                                                                          "all": 23423873,
                                                                                                                                          "country": {
                                                                                                                                            "US": 123,
                                                                                                                                            "CN": 523423,
                                                                                                                                            "AU": 91
                                                                                                                                          },
                                                                                                                                          "type": {
                                                                                                                                            "user.ban.ip": 123,
                                                                                                                                            "hot.ban.unknown": 5324,
                                                                                                                                            "macro.chl.captchaErr": 1341,
                                                                                                                                            "macro.chl.jschlErr": 5323
                                                                                                                                          }
                                                                                                                                        },
                                                                                                                                        "pageviews": {
                                                                                                                                          "all": 5724723,
                                                                                                                                          "search_engine": {
                                                                                                                                            "googlebot": 35272,
                                                                                                                                            "pingdom": 13435,
                                                                                                                                            "bingbot": 5372,
                                                                                                                                            "baidubot": 1345
                                                                                                                                          }
                                                                                                                                        },
                                                                                                                                        "uniques": {
                                                                                                                                          "all": 12343
                                                                                                                                        }
                                                                                                                                      }
                                                                                                                                    ]
                                                                                                                                  },
                                                                                                                                  "query": {
                                                                                                                                    "since": "2015-01-01T12:23:00Z",
                                                                                                                                    "until": "2015-01-02T12:23:00Z",
                                                                                                                                    "time_delta": 60
                                                                                                                                  }
                                                                                                                                }

                                                                                                                                Deprecation Warning

                                                                                                                                End of life Date: March 1, 2021

                                                                                                                                Please use the new GraphQL Analytics API instead: https://developers.cloudflare.com/analytics/graphql-api/. It provides equivalent data and more features, including the ability to select only the metrics you need. Migration guide: https://developers.cloudflare.com/analytics/migration-guides/zone-analytics/.

                                                                                                                                zone-analytics-analytics-by-co-locations

                                                                                                                                Optional parameters

                                                                                                                                Name /typeDescription /exampleConstraints
                                                                                                                                since
                                                                                                                                stringinteger

                                                                                                                                The (inclusive) beginning of the requested time frame. This value can be a negative integer representing the number of minutes in the past relative to time the request is made, or can be an absolute timestamp that conforms to RFC 3339. At this point in time, it cannot exceed a time in the past greater than one year.

                                                                                                                                Ranges that the Cloudflare web application provides will provide the following period length for each point:

                                                                                                                                • Last 60 minutes (from -59 to -1): 1 minute resolution
                                                                                                                                • Last 7 hours (from -419 to -60): 15 minutes resolution
                                                                                                                                • Last 15 hours (from -899 to -420): 30 minutes resolution
                                                                                                                                • Last 72 hours (from -4320 to -900): 1 hour resolution
                                                                                                                                • Older than 3 days (-525600 to -4320): 1 day resolution

                                                                                                                                "2015-01-01T12:23:00Z"

                                                                                                                                • default value: -10080
                                                                                                                                until
                                                                                                                                stringinteger

                                                                                                                                The (exclusive) end of the requested time frame. This value can be a negative integer representing the number of minutes in the past relative to time the request is made, or can be an absolute timestamp that conforms to RFC 3339. If omitted, the time of the request is used.

                                                                                                                                "2015-01-02T12:23:00Z"

                                                                                                                                • default value: 0
                                                                                                                                continuous
                                                                                                                                boolean

                                                                                                                                When set to true, the API will move the requested time window backward, until it finds a region with completely aggregated data.

                                                                                                                                The API response may not represent the requested time window.

                                                                                                                                true

                                                                                                                                • default value: true
                                                                                                                                • valid values: (true,false)
                                                                                                                                cURL (example)
                                                                                                                                curl -X GET "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/analytics/colos?since=2015-01-01T12:23:00Z&until=2015-01-02T12:23:00Z&continuous=true" \
                                                                                                                                     -H "X-Auth-Email: user@example.com" \
                                                                                                                                     -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                                     -H "Content-Type: application/json"
                                                                                                                                Response (example)
                                                                                                                                {
                                                                                                                                  "success": true,
                                                                                                                                  "errors": [],
                                                                                                                                  "messages": [],
                                                                                                                                  "result": [
                                                                                                                                    {
                                                                                                                                      "colo_id": "SFO",
                                                                                                                                      "timeseries": [
                                                                                                                                        {
                                                                                                                                          "since": "2015-01-01T12:23:00Z",
                                                                                                                                          "until": "2015-01-02T12:23:00Z",
                                                                                                                                          "requests": {
                                                                                                                                            "all": 1234085328,
                                                                                                                                            "cached": 1234085328,
                                                                                                                                            "uncached": 13876154,
                                                                                                                                            "country": {
                                                                                                                                              "US": 4181364,
                                                                                                                                              "AG": 37298,
                                                                                                                                              "GI": 293846
                                                                                                                                            },
                                                                                                                                            "http_status": {
                                                                                                                                              "200": 13496983,
                                                                                                                                              "301": 283,
                                                                                                                                              "400": 187936,
                                                                                                                                              "402": 1828,
                                                                                                                                              "404": 1293
                                                                                                                                            }
                                                                                                                                          },
                                                                                                                                          "bandwidth": {
                                                                                                                                            "all": 213867451,
                                                                                                                                            "cached": 113205063,
                                                                                                                                            "uncached": 113205063
                                                                                                                                          },
                                                                                                                                          "threats": {
                                                                                                                                            "all": 23423873,
                                                                                                                                            "country": {
                                                                                                                                              "US": 123,
                                                                                                                                              "CN": 523423,
                                                                                                                                              "AU": 91
                                                                                                                                            },
                                                                                                                                            "type": {
                                                                                                                                              "user.ban.ip": 123,
                                                                                                                                              "hot.ban.unknown": 5324,
                                                                                                                                              "macro.chl.captchaErr": 1341,
                                                                                                                                              "macro.chl.jschlErr": 5323
                                                                                                                                            }
                                                                                                                                          }
                                                                                                                                        }
                                                                                                                                      ],
                                                                                                                                      "totals": {
                                                                                                                                        "since": "2015-01-01T12:23:00Z",
                                                                                                                                        "until": "2015-01-02T12:23:00Z",
                                                                                                                                        "requests": {
                                                                                                                                          "all": 1234085328,
                                                                                                                                          "cached": 1234085328,
                                                                                                                                          "uncached": 13876154,
                                                                                                                                          "country": {
                                                                                                                                            "US": 4181364,
                                                                                                                                            "AG": 37298,
                                                                                                                                            "GI": 293846
                                                                                                                                          },
                                                                                                                                          "http_status": {
                                                                                                                                            "200": 13496983,
                                                                                                                                            "301": 283,
                                                                                                                                            "400": 187936,
                                                                                                                                            "402": 1828,
                                                                                                                                            "404": 1293
                                                                                                                                          }
                                                                                                                                        },
                                                                                                                                        "bandwidth": {
                                                                                                                                          "all": 213867451,
                                                                                                                                          "cached": 113205063,
                                                                                                                                          "uncached": 113205063
                                                                                                                                        },
                                                                                                                                        "threats": {
                                                                                                                                          "all": 23423873,
                                                                                                                                          "country": {
                                                                                                                                            "US": 123,
                                                                                                                                            "CN": 523423,
                                                                                                                                            "AU": 91
                                                                                                                                          },
                                                                                                                                          "type": {
                                                                                                                                            "user.ban.ip": 123,
                                                                                                                                            "hot.ban.unknown": 5324,
                                                                                                                                            "macro.chl.captchaErr": 1341,
                                                                                                                                            "macro.chl.jschlErr": 5323
                                                                                                                                          }
                                                                                                                                        }
                                                                                                                                      }
                                                                                                                                    }
                                                                                                                                  ],
                                                                                                                                  "query": {
                                                                                                                                    "since": "2015-01-01T12:23:00Z",
                                                                                                                                    "until": "2015-01-02T12:23:00Z",
                                                                                                                                    "time_delta": 60
                                                                                                                                  }
                                                                                                                                }

                                                                                                                                Logs Received

                                                                                                                                Edge http logs received

                                                                                                                                logs-received
                                                                                                                                logs-received-get-log-retention-flag
                                                                                                                                cURL (example)
                                                                                                                                curl -X GET "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/logs/control/retention/flag" \
                                                                                                                                     -H "X-Auth-Email: user@example.com" \
                                                                                                                                     -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                                     -H "Content-Type: application/json"
                                                                                                                                Response (example)
                                                                                                                                {
                                                                                                                                  "success": true,
                                                                                                                                  "errors": [],
                                                                                                                                  "messages": [],
                                                                                                                                  "result": {
                                                                                                                                    "flag": true
                                                                                                                                  }
                                                                                                                                }
                                                                                                                                logs-received-update-log-retention-flag

                                                                                                                                Required parameters

                                                                                                                                Name /typeDescription /exampleConstraints
                                                                                                                                flag
                                                                                                                                boolean

                                                                                                                                The log retention flag for Logpull API.

                                                                                                                                true

                                                                                                                                • valid values: (true,false)
                                                                                                                                cURL (example)
                                                                                                                                curl -X POST "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/logs/control/retention/flag" \
                                                                                                                                     -H "X-Auth-Email: user@example.com" \
                                                                                                                                     -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
                                                                                                                                     -H "Content-Type: application/json" \
                                                                                                                                     --data '{"flag":true}'
                                                                                                                                Response (example)
                                                                                                                                {
                                                                                                                                  "success": true,
                                                                                                                                  "errors": [],
                                                                                                                                  "messages": [],
                                                                                                                                  "result": {
                                                                                                                                    "flag": true
                                                                                                                                  }
                                                                                                                                }
                                                                                                                                logs-received-logs-received

                                                                                                                                Required parameters

                                                                                                                                Name /typeDescription /exampleConstraints
                                                                                                                                start
                                                                                                                                <em