{
  "openapi": "3.0.0",
  "info": {
    "title": "NitroPack Cloud API",
    "description": "NitroPack Cloud API Documentation",
    "version": "1.2.0"
  },
  "servers": [
    {
      "url": "https://api.getnitropack.com",
      "description": "API server"
    }
  ],
  "paths": {
    "/additionaldomains/enable/{siteId}": {
      "post": {
        "tags": [
          "AdditionalDomains"
        ],
        "summary": "Enable",
        "description": "Enables additional domains for a given Site ID",
        "operationId": "AdditionalDomainsEnable",
        "parameters": [
          {
            "name": "siteId",
            "in": "path",
            "description": "Site ID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success response",
            "headers": {
              "X-Nitro-Signature": {
                "description": "The request signature that you have calculated (128 character string)",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "error": "Invalid request"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "message": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "message": "This feature is not available for your plan."
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "message": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "message": "The service is temporarily unavailable."
                }
              }
            }
          }
        },
        "security": [
          {
            "X-Nitro-Signature": []
          }
        ]
      }
    },
    "/additionaldomains/disable/{siteId}": {
      "post": {
        "tags": [
          "AdditionalDomains"
        ],
        "summary": "Disable",
        "description": "Disables additional domains for a given Site ID",
        "operationId": "AdditionalDomainsDisable",
        "parameters": [
          {
            "name": "siteId",
            "in": "path",
            "description": "Site ID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success response",
            "headers": {
              "X-Nitro-Signature": {
                "description": "The request signature that you have calculated (128 character string)",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "error": "Invalid request"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "message": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "message": "The service is temporarily unavailable."
                }
              }
            }
          }
        },
        "security": [
          {
            "X-Nitro-Signature": []
          }
        ]
      }
    },
    "/additionaldomains/add/{siteId}": {
      "post": {
        "tags": [
          "AdditionalDomains"
        ],
        "summary": "Add",
        "description": "Adds an additional domain",
        "operationId": "AdditionalDomainsAdd",
        "parameters": [
          {
            "name": "siteId",
            "in": "path",
            "description": "Site ID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "domain": {
                    "description": "The domain that should be added. For ex. example.com",
                    "type": "string"
                  }
                },
                "type": "object"
              },
              "example": {
                "domain": "example.com"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success response",
            "headers": {
              "X-Nitro-Signature": {
                "description": "The request signature that you have calculated (128 character string)",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "message": {
                      "description": "Successfully added",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "message": "Domain: example.com was added."
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "error": "Invalid request"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "message": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "message": "The maximum number of 30 additional domain is reached."
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "message": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "message": "Domain: example.com is already added."
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "message": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "message": "The service is temporarily unavailable."
                }
              }
            }
          }
        },
        "security": [
          {
            "X-Nitro-Signature": []
          }
        ]
      }
    },
    "/additionaldomains/remove/{siteId}": {
      "post": {
        "tags": [
          "AdditionalDomains"
        ],
        "summary": "Remove",
        "description": "Remove a domain from the additional domains list",
        "operationId": "AdditionalDomainsRemove",
        "parameters": [
          {
            "name": "siteId",
            "in": "path",
            "description": "Site ID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "domain": {
                    "description": "The domain that should be removed. For ex. example.com",
                    "type": "string"
                  }
                },
                "type": "object"
              },
              "example": {
                "domain": "example.com"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success response",
            "headers": {
              "X-Nitro-Signature": {
                "description": "The request signature that you have calculated (128 character string)",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "message": {
                      "description": "Successfully added",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "message": "Domain: example.com was removed."
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "error": "Invalid request"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "message": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "message": "Domain: example.com was not found in the additional domains list."
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "message": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "message": "The service is temporarily unavailable."
                }
              }
            }
          }
        },
        "security": [
          {
            "X-Nitro-Signature": []
          }
        ]
      }
    },
    "/additionaldomains/get/{siteId}": {
      "get": {
        "tags": [
          "AdditionalDomains"
        ],
        "summary": "Get",
        "description": "Get a list of currently added additional domains",
        "operationId": "AdditionalDomainsGet",
        "parameters": [
          {
            "name": "siteId",
            "in": "path",
            "description": "Site ID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success response",
            "headers": {
              "X-Nitro-Signature": {
                "description": "The request signature that you have calculated (128 character string)",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {},
                "example": [
                  "example1.com",
                  "example2.com"
                ]
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "error": "Invalid request"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "message": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "message": "This feature is not available for your plan."
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "message": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "message": "The service is temporarily unavailable."
                }
              }
            }
          }
        },
        "security": [
          {
            "X-Nitro-Signature": []
          }
        ]
      }
    },
    "/cache/get/{siteId}/{layout}": {
      "post": {
        "tags": [
          "Cache"
        ],
        "summary": "Get",
        "operationId": "CacheGet",
        "parameters": [
          {
            "name": "siteId",
            "in": "path",
            "description": "Site ID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "layout",
            "in": "path",
            "description": "A (design) layout identifier. Critical CSS is generated only once per layout. Use this parameter to create separate critical CSS for the different page layouts on your site. For example your home page would be typically layed out in a different way compared to your product pages for example. You can use a \"home\" layout string for the home page and \"product\" for all your product pages. Avoid using unique layout identifiers for each URL though, as this will increase the time needed to prepare an optimized cache file for the requested URL.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Nitro-Url",
            "in": "header",
            "description": "The URL that you are requesting cache for",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Nitro-Visitor-Addr",
            "in": "header",
            "description": "The IP of the visitor that triggered this call to /cache/get. We will forward this IP through X-Forwarded-For header when fetching the requested URL",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Nitro-Cache-Prefix",
            "in": "header",
            "description": "A custom cache prefix. Use this when you need to divide the cache based on custom rules for your platform. For example, if you serve different content based on the visitor's location, you can add the country, continent, language, etc. as a prefix.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Nitro-Ajax",
            "in": "header",
            "description": "Indicate whether we should request this URL via AJAX",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Nitro-Priority",
            "in": "header",
            "description": "Use this to schedule an optimization with low priority. The only possible value for this parameter is \"LOW\".",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Nitro-Loopback",
            "in": "header",
            "description": "If this header is present NitroPack will bypass DNS records and connect directly to the IP calling this method.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success response",
            "headers": {
              "X-Nitro-Signature": {
                "description": "The request signature that you have calculated (128 character string)",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "202": {
            "description": "Accepted - Means that we did not find a valid cache file for this request, but we have accepted it and started working on it. A cache file should be ready soon."
          },
          "402": {
            "description": "Payment Required - This means that you have exceeded the reasonable usage for your plan. You can contact support for further assistance"
          },
          "403": {
            "description": "Forbidden - You get this if the site has been disabled for some reason (e.g. service abuse)"
          },
          "409": {
            "description": "Conflict - Means that there is another operation which prevents accepting optimization requests at the moment. Example could be an ongoing purge process."
          }
        },
        "security": [
          {
            "X-Nitro-Signature": []
          }
        ]
      }
    },
    "/cache/purge/{siteId}": {
      "post": {
        "tags": [
          "Cache"
        ],
        "summary": "Purge",
        "description": "Deletes the cache files stored on our servers and removes tag associations. If a URL is specified only cache files for this URL are deleted and only the tag associations with this URL are removed. This operation frees disk space.",
        "operationId": "PurgeCache",
        "parameters": [
          {
            "name": "siteId",
            "in": "path",
            "description": "Site ID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "url": {
                    "description": " A specific URL that you would like to purge cache for.",
                    "type": "string"
                  },
                  "tag": {
                    "description": "A specific tag that you would like to purge cache for. If this is provided it takes precedence over the url parameter and the API will return a list of the purged URLs. The returned list contains up to 250 purged URLs, so you may need to keep repeating this request until the returned list contains no items.",
                    "type": "string"
                  },
                  "pagecache_only": {
                    "description": "If true only page cache files will be purged. Otherwise, the entire cache is deleted included stored assets.",
                    "type": "boolean"
                  },
                  "light_purge": {
                    "description": "If true it will preserve images from being deleted. If pagecache_only is true this will be ignored.",
                    "type": "boolean"
                  },
                  "reason": {
                    "description": "The purge reason, in human-readable form.",
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success response",
            "headers": {
              "X-Nitro-Signature": {
                "description": "The request signature that you have calculated (128 character string)",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {},
                "examples": {
                  "SuccessResponsePurgeByURL": {
                    "summary": " Success response in case of purge by URL",
                    "value": ""
                  },
                  "SuccessResponsePurgeByTag": {
                    "summary": "Success response in case of purge by tag",
                    "value": {
                      "purged_urls": [
                        "https://example.com/example1",
                        "https://example.com/example2",
                        "https://example.com/example3"
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "error": "Invalid request"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable"
          }
        },
        "security": [
          {
            "X-Nitro-Signature": []
          }
        ]
      }
    },
    "/cache/getlastpurge/{siteId}": {
      "post": {
        "tags": [
          "Cache"
        ],
        "summary": "Get Last Purge",
        "description": "Returns information about the last /cache/purge request for the site identified by siteId",
        "operationId": "GetLastPurge",
        "parameters": [
          {
            "name": "siteId",
            "in": "path",
            "description": "Site ID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success response",
            "headers": {
              "X-Nitro-Signature": {
                "description": "The request signature that you have calculated (128 character string)",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "timestamp": {
                      "description": "Can also be null, which means that cache has never been purged for this site",
                      "type": "integer",
                      "example": "1549618432"
                    },
                    "url": {
                      "description": "Can also be null, which indicates a full cache purge",
                      "type": "string",
                      "example": "https://example.com/iphone"
                    },
                    "tag": {
                      "description": "Can also be null, which indicates a full cache purge",
                      "type": "string",
                      "example": "route:common:home"
                    },
                    "reason": {
                      "description": "Stores the reason (if provided) why cache was purged",
                      "type": "string",
                      "example": "Product update"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "error": "Invalid request"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable"
          }
        },
        "security": [
          {
            "X-Nitro-Signature": []
          }
        ]
      }
    },
    "/cache/enablecartcache/{siteId}": {
      "post": {
        "tags": [
          "Cache"
        ],
        "summary": "Enable Cart Cache",
        "description": "Enables cart cache option in the config file for the site identified by siteId",
        "operationId": "EnableCartCache",
        "parameters": [
          {
            "name": "siteId",
            "in": "path",
            "description": "Site ID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success response",
            "headers": {
              "X-Nitro-Signature": {
                "description": "The request signature that you have calculated (128 character string)",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "error": "Invalid request"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "error": "This feature is not available for your site. Please contact support."
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "examples": {
                  "ServiceUnavailable1": {
                    "summary": "Service unavailable #1",
                    "value": {
                      "error": "The service is temporarily unavailable."
                    }
                  },
                  "ServiceUnavailable2": {
                    "summary": "Service unavailable #2",
                    "value": {
                      "error": "An unexpected error has occurred while disabling safe mode."
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "X-Nitro-Signature": []
          }
        ]
      }
    },
    "/cache/disablecartcache/{siteId}": {
      "post": {
        "tags": [
          "Cache"
        ],
        "summary": "Disable Cart Cache",
        "description": "Disables cart cache option in the config file for the site identified by siteId",
        "operationId": "DisableCartCache",
        "parameters": [
          {
            "name": "siteId",
            "in": "path",
            "description": "Site ID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success response",
            "headers": {
              "X-Nitro-Signature": {
                "description": "The request signature that you have calculated (128 character string)",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "error": "Invalid request"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "examples": {
                  "ServiceUnavailable1": {
                    "summary": "Service unavailable #1",
                    "value": {
                      "error": "The service is temporarily unavailable."
                    }
                  },
                  "ServiceUnavailable2": {
                    "summary": "Service unavailable #2",
                    "value": {
                      "error": "An unexpected error has occurred while disabling safe mode."
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "X-Nitro-Signature": []
          }
        ]
      }
    },
    "/config/getchallenge/{siteId}": {
      "get": {
        "tags": [
          "Config"
        ],
        "summary": "Get Challenge",
        "description": "Returns a challenge to be solved on your end. You need to get and solve one of these challenges, then provide the result in the request to /config/get. This is needed in order to verify that we serve your config to your applications only. Any request to /config/get that does not provide a challnegeId and a valid solution will be rejected.\n# Fetching the config from the server:\nThe API offers a way to retrieve the configuration file, which contains the settings edited through the administrative dashboard. In order to obtain the configuration, the API client must prove that it holds the site secret. To do this the client must provide a response to a challenge issued by the API server. The API server would never ask for the client to send the plaintext site secret over the network, nor would it ever send the secret to the client.\n\nChallenges are 128 random bytes encoded as lowercase hex digits resulting in a 256 character string. The response to a challenge is calculated using the following formula: sha512(sha512(sha512(sha512(sha512(secret + challenge))))) Or in other words, first concatenate the site secret and challenge strings (in that order), then apply the sha512 hashing algorithm to the combined string 5 times. The result of the last hashing is the challenge response.\n\nBelow are the steps that must be carried out to receive and answer a challenge:\n\nFirst the API client makes an HTTP GET request to https://api.getnitropack.com/config/getchallenge/:site_id\n\nThe API will return a JSON structure as follows:\n```\n{\n\"cid\":  \"...\", // Challenge ID (64 character string)\n\"sc0\":  \"...\", // Server challenge 0 (256 character string)\n\"sc1\":  \"...\", // Server challenge 1 (256 character string)\n\"resp\": \"...\"  // Response to server challenge 0 (128 character string)\n}\n```\n\nThe challenge ID is to be submitted along with the challenge response. Server challenge 0 is used for the client to verify that the challenge came from the API server. The client should calculate the expected response for server challenge 0 using the site secret and the formula above and compare the result with the \"resp\" key using a cryptographically secure string comparison algorithm (ex. PHP's hash_equals function).\n\nIf this comparison fails, the client should terminate its attempt to fetch the configuration and notify the administrator managing the site running the client.\n\nOnce the client has established that the challenge came from the API server, it can proceed with calculating the response to server challenge 1, again using the site secret and the formula above.\n\nThen the client should make a second HTTP GET request, this time to https://api.getnitropack.com/config/get/:site_id where :site_id matches the :site_id from the first request. This request should include two additional headers: X-Challenge-ID: The challenge ID from the JSON response of the previous request X-Challenge-Response: The challenge response calculated from Server challenge 1\n\nThe response to this request will always be JSON formatted. If the challenge response was correct, then the response will have an HTTP status 200 and the body will contain the configuration for the given :site_id. If something went wrong, then the response will have an HTTP status 403 and the body will be `{\"error\":\"Invalid request\"}` Note that by design the API will return the same error with no specific explanation for all issues, including wrong a site_id, wrong or expired challenge id, or incorrect challenge response.\n\nChallenges expire 30 seconds after they are created, after which even a correct challenge response will not be accepted.\n",
        "operationId": "GetChallenge",
        "parameters": [
          {
            "name": "siteId",
            "in": "path",
            "description": "Site ID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success response",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "cid": {
                      "description": "Challenge ID (64 character string)",
                      "type": "string"
                    },
                    "sc0": {
                      "description": "Server challenge 0 (256 character string)",
                      "type": "string"
                    },
                    "sc1": {
                      "description": "Server challenge 1 (256 character string)",
                      "type": "string"
                    },
                    "resp": {
                      "description": "Response to server challenge 0 (128 character string)",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "cid": "...",
                  "sc0": "...",
                  "sc1": "...",
                  "resp": "..."
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "error": "Invalid request"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable"
          }
        },
        "security": []
      }
    },
    "/config/get/{siteId}": {
      "get": {
        "tags": [
          "Config"
        ],
        "summary": "Get Config",
        "description": "Returns the config, for the site identified by siteId, as a JSON encoded string",
        "operationId": "GetConfig",
        "parameters": [
          {
            "name": "siteId",
            "in": "path",
            "description": "Site ID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Challenge-Id",
            "in": "header",
            "description": "The challenge ID that was provided to you by /config/getchallenge",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Challenge-Response",
            "in": "header",
            "description": "The challenge response calculated from Server Challenge 1 provided to you by /config/getchallenge",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success response",
            "content": {
              "application/json": {
                "schema": {
                  "description": "Config object",
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "error": "Invalid request"
                }
              }
            }
          },
          "500": {
            "description": "Runtime Error",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "error": "Runtime Error"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable"
          }
        },
        "security": []
      }
    },
    "/excludedurls/enable/{siteId}": {
      "post": {
        "tags": [
          "ExcludedUrls"
        ],
        "summary": "Enable",
        "description": "Enable excluded urls for the given website",
        "operationId": "EnableExcludedUrls",
        "parameters": [
          {
            "name": "siteId",
            "in": "path",
            "description": "Site ID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success response",
            "headers": {
              "X-Nitro-Signature": {
                "description": "The request signature that you have calculated (128 character string)",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "error": "Invalid request"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "error": "Service Unavailable"
                }
              }
            }
          }
        },
        "security": [
          {
            "X-Nitro-Signature": []
          }
        ]
      }
    },
    "/excludedurls/disable/{siteId}": {
      "post": {
        "tags": [
          "ExcludedUrls"
        ],
        "summary": "Disable",
        "description": "Disable excluded urls for the given website",
        "operationId": "DisableExcludedUrls",
        "parameters": [
          {
            "name": "siteId",
            "in": "path",
            "description": "Site ID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success response",
            "headers": {
              "X-Nitro-Signature": {
                "description": "The request signature that you have calculated (128 character string)",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "error": "Invalid request"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "error": "Service Unavailable"
                }
              }
            }
          }
        },
        "security": [
          {
            "X-Nitro-Signature": []
          }
        ]
      }
    },
    "/excludedurls/add/{siteId}": {
      "post": {
        "tags": [
          "ExcludedUrls"
        ],
        "summary": "Add",
        "description": "Add excluded url for the given website",
        "operationId": "AddExcludedUrl",
        "parameters": [
          {
            "name": "siteId",
            "in": "path",
            "description": "Site ID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "url_pattern": {
                    "type": "string",
                    "example": "*excluded-pattern*"
                  }
                },
                "type": "object"
              },
              "example": {
                "url_pattern": "*excluded-pattern*"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success response",
            "headers": {
              "X-Nitro-Signature": {
                "description": "The request signature that you have calculated (128 character string)",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "error": "Invalid request"
                }
              }
            }
          },
          "500": {
            "description": "Runtime Error",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "error": "Runtime Error"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "error": "Service Unavailable"
                }
              }
            }
          }
        },
        "security": [
          {
            "X-Nitro-Signature": []
          }
        ]
      }
    },
    "/excludedurls/remove/{siteId}": {
      "post": {
        "tags": [
          "ExcludedUrls"
        ],
        "summary": "Remove",
        "description": "Remove excluded url for the given website",
        "operationId": "RemoveExcludedUrl",
        "parameters": [
          {
            "name": "siteId",
            "in": "path",
            "description": "Site ID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "url_pattern": {
                    "type": "string",
                    "example": "*excluded-pattern*"
                  }
                },
                "type": "object"
              },
              "example": {
                "url_pattern": "*excluded-pattern*"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success response",
            "headers": {
              "X-Nitro-Signature": {
                "description": "The request signature that you have calculated (128 character string)",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "error": "Invalid request"
                }
              }
            }
          },
          "500": {
            "description": "Runtime Error",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "error": "Runtime Error"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "error": "Service Unavailable"
                }
              }
            }
          }
        },
        "security": [
          {
            "X-Nitro-Signature": []
          }
        ]
      }
    },
    "/excludes/enable/{siteId}": {
      "post": {
        "tags": [
          "Excludes"
        ],
        "summary": "Enable",
        "description": "Enable excludes for the given website",
        "operationId": "EnableExcludes",
        "parameters": [
          {
            "name": "siteId",
            "in": "path",
            "description": "Site ID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success response",
            "headers": {
              "X-Nitro-Signature": {
                "description": "The request signature that you have calculated (128 character string)",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "error": "Invalid request"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "error": "Service Unavailable"
                }
              }
            }
          }
        },
        "security": [
          {
            "X-Nitro-Signature": []
          }
        ]
      }
    },
    "/excludes/disable/{siteId}": {
      "post": {
        "tags": [
          "Excludes"
        ],
        "summary": "Disable",
        "description": "Disaboe excludes for the given website",
        "operationId": "DisableExcludes",
        "parameters": [
          {
            "name": "siteId",
            "in": "path",
            "description": "Site ID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success response",
            "headers": {
              "X-Nitro-Signature": {
                "description": "The request signature that you have calculated (128 character string)",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "error": "Invalid request"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "error": "Service Unavailable"
                }
              }
            }
          }
        },
        "security": [
          {
            "X-Nitro-Signature": []
          }
        ]
      }
    },
    "/excludes/get/{siteId}": {
      "get": {
        "tags": [
          "Excludes"
        ],
        "summary": "Get",
        "description": "Get excludes for the given website",
        "operationId": "GetExcludes",
        "parameters": [
          {
            "name": "siteId",
            "in": "path",
            "description": "Site ID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success response",
            "headers": {
              "X-Nitro-Signature": {
                "description": "The request signature that you have calculated (128 character string)",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "error": "Invalid request"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "error": "Service Unavailable"
                }
              }
            }
          }
        },
        "security": [
          {
            "X-Nitro-Signature": []
          }
        ]
      }
    },
    "/excludes/set/{siteId}": {
      "post": {
        "tags": [
          "Excludes"
        ],
        "summary": "Set",
        "description": "Set excludes for the given website",
        "operationId": "SetExcludes",
        "parameters": [
          {
            "name": "siteId",
            "in": "path",
            "description": "Site ID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "properties": {
                  "excludes": {
                    "description": "Excludes",
                    "type": "array",
                    "items": {
                      "properties": {
                        "string": {
                          "description": "String",
                          "type": "string"
                        },
                        "resourceType": {
                          "description": "Resource type",
                          "type": "string",
                          "enum": [
                            "css",
                            "js",
                            "font",
                            "image"
                          ]
                        },
                        "resourceRelation": {
                          "description": "Resource relation",
                          "type": "string",
                          "enum": [
                            "external",
                            "inline"
                          ]
                        },
                        "device": {
                          "description": "Device",
                          "type": "string",
                          "enum": [
                            "mobile",
                            "tablet",
                            "desktop"
                          ]
                        },
                        "operation": {
                          "description": "Operation",
                          "properties": {
                            "all": {
                              "description": "All",
                              "type": "boolean"
                            },
                            "optimize": {
                              "description": "Optimize",
                              "type": "boolean"
                            },
                            "minify": {
                              "description": "Minify",
                              "type": "boolean"
                            },
                            "combine": {
                              "description": "Combine",
                              "type": "boolean"
                            },
                            "renderblocking": {
                              "description": "Render blocking",
                              "type": "boolean"
                            },
                            "resize": {
                              "description": "Resize",
                              "type": "boolean"
                            },
                            "removeUnusedCss": {
                              "description": "Remove unused CSS",
                              "type": "boolean"
                            },
                            "pagePrefetch": {
                              "description": "Page prefetch",
                              "type": "boolean"
                            }
                          },
                          "type": "object"
                        }
                      },
                      "type": "object"
                    }
                  }
                },
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success response",
            "headers": {
              "X-Nitro-Signature": {
                "description": "The request signature that you have calculated (128 character string)",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "error": "Invalid request"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "error": "Service Unavailable"
                }
              }
            }
          }
        },
        "security": [
          {
            "X-Nitro-Signature": []
          }
        ]
      }
    },
    "/fontsubset/get/{siteId}": {
      "get": {
        "tags": [
          "FontSubsetting"
        ],
        "summary": "Get",
        "description": "Get a subsetted version of fonts for a given URL",
        "operationId": "FontSubsettingGet",
        "parameters": [
          {
            "name": "siteId",
            "in": "path",
            "description": "Site ID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Nitro-Url",
            "in": "header",
            "description": "The URL that you want fonts subsetted for",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Nitro-Device",
            "in": "header",
            "description": "The device type to use when loading the URL. Should be one of the following: desktop, mobile, tablet",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success response",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "fonts": {
                      "properties": {
                        "font_source_url": {
                          "type": "string"
                        },
                        "font_optimized_url": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "glyphs": {
                      "description": "A list extracted glyphs used for subsetting",
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "fonts": {
                    "font_source_url": "font_optimized_url"
                  },
                  "glyphs": [
                    "glyph1",
                    "glyph2",
                    "glyph3"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "examples": {
                  "InvalidRequest1": {
                    "summary": "Invalid request - missing site ID",
                    "value": {
                      "error": "Invalid request - missing site ID"
                    }
                  },
                  "InvalidRequest2": {
                    "summary": "Invalid request - missing URL",
                    "value": {
                      "error": "Invalid request - missing URL"
                    }
                  },
                  "InvalidRequest3": {
                    "summary": "Invalid request - multiple URLs requested, but only one per request is allowed",
                    "value": {
                      "error": "Invalid request - multiple URLs requested, but only one per request is allowed"
                    }
                  },
                  "InvalidRequest4": {
                    "summary": "Invalid request - URL value is not valid",
                    "value": {
                      "error": "Invalid request - URL value is not valid"
                    }
                  },
                  "InvalidRequest5": {
                    "summary": "Invalid request - missing device type for subsetting (desktop, mobile or tablet)",
                    "value": {
                      "error": "Invalid request - missing device type for subsetting (desktop, mobile or tablet)"
                    }
                  },
                  "InvalidRequest6": {
                    "summary": "Invalid request - multiple device types requested, but only one per request is allowed",
                    "value": {
                      "error": "Invalid request - multiple device types requested, but only one per request is allowed"
                    }
                  },
                  "InvalidRequest7": {
                    "summary": "Invalid request - device type should have a value one of desktop, mobile or tablet",
                    "value": {
                      "error": "Invalid request - device type should have a value one of desktop, mobile or tablet"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "message": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "message": "The service is temporarily unavailable."
                }
              }
            }
          }
        },
        "security": []
      }
    },
    "/health/status/{siteId}": {
      "get": {
        "tags": [
          "Health"
        ],
        "summary": "Status",
        "description": "Check the server status for a given Site ID",
        "operationId": "HealthStatus",
        "parameters": [
          {
            "name": "siteId",
            "in": "path",
            "description": "Site ID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success response"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "error": "Invalid request"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "message": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "examples": {
                  "ServiceUnavailable1": {
                    "summary": "Service unavailable #1",
                    "value": {
                      "message": "The service is temporarily unavailable."
                    }
                  },
                  "ServiceUnavailable2": {
                    "summary": "Service unavailable #2",
                    "value": {
                      "message": "An unexpected error has occurred while checking the status."
                    }
                  }
                }
              }
            }
          }
        },
        "security": []
      }
    },
    "/safemode/status/{siteId}": {
      "get": {
        "tags": [
          "SafeMode"
        ],
        "summary": "Status",
        "description": "Gives the status of safe mode for a given Site ID",
        "operationId": "SafemodeStatus",
        "parameters": [
          {
            "name": "siteId",
            "in": "path",
            "description": "Site ID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success response",
            "headers": {
              "X-Nitro-Signature": {
                "description": "The request signature that you have calculated (128 character string)",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "isEnabled": {
                      "type": "integer",
                      "example": "1"
                    }
                  },
                  "type": "object"
                },
                "examples": {
                  "SuccessResponseEnabled": {
                    "summary": "Success response - Enabled",
                    "value": {
                      "isEnabled": 1
                    }
                  },
                  "SuccessEesponseDisabled": {
                    "summary": "Success response - Disabled",
                    "value": {
                      "isEnabled": 0
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "error": "Invalid request"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "examples": {
                  "ServiceUnavailable1": {
                    "summary": "Service unavailable #1",
                    "value": {
                      "error": "The service is temporarily unavailable."
                    }
                  },
                  "ServiceUnavailable2": {
                    "summary": "Service unavailable #2",
                    "value": {
                      "error": "An unexpected error has occurred while checking the status of safe mode."
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "X-Nitro-Signature": []
          }
        ]
      }
    },
    "/safemode/enable/{siteId}": {
      "post": {
        "tags": [
          "SafeMode"
        ],
        "summary": "Enable",
        "description": "Enables safe mode for a given Site ID",
        "operationId": "SafemodeEnable",
        "parameters": [
          {
            "name": "siteId",
            "in": "path",
            "description": "Site ID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success response",
            "headers": {
              "X-Nitro-Signature": {
                "description": "The request signature that you have calculated (128 character string)",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "error": "Invalid request"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "examples": {
                  "ServiceUnavailable1": {
                    "summary": "Service unavailable #1",
                    "value": {
                      "error": "The service is temporarily unavailable."
                    }
                  },
                  "ServiceUnavailable2": {
                    "summary": "Service unavailable #2",
                    "value": {
                      "error": "An unexpected error has occurred while enabling safe mode."
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "X-Nitro-Signature": []
          }
        ]
      }
    },
    "/safemode/disable/{siteId}": {
      "post": {
        "tags": [
          "SafeMode"
        ],
        "summary": "Disable",
        "description": "Disables safe mode for a given Site ID",
        "operationId": "SafemodeDisable",
        "parameters": [
          {
            "name": "siteId",
            "in": "path",
            "description": "Site ID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success response",
            "headers": {
              "X-Nitro-Signature": {
                "description": "The request signature that you have calculated (128 character string)",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "error": "Invalid request"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "examples": {
                  "ServiceUnavailable1": {
                    "summary": "Service unavailable #1",
                    "value": {
                      "error": "The service is temporarily unavailable."
                    }
                  },
                  "ServiceUnavailable2": {
                    "summary": "Service unavailable #2",
                    "value": {
                      "error": "An unexpected error has occurred while disabling safe mode."
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "X-Nitro-Signature": []
          }
        ]
      }
    },
    "/stats/savings/{siteId}": {
      "get": {
        "tags": [
          "Stats"
        ],
        "summary": "Savings",
        "description": "Returns an array with the Html, CSS, JS and Image savings in bytes along with a total.",
        "operationId": "StatsSavings",
        "parameters": [
          {
            "name": "siteId",
            "in": "path",
            "description": "Site ID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success response",
            "headers": {
              "X-Nitro-Signature": {
                "description": "The request signature that you have calculated (128 character string)",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "html": {
                      "description": "It is very unlikely that this value will be greater than 0, because the minification process is not enough to compensate for the inlined criticalCSS",
                      "type": "integer",
                      "example": "0"
                    },
                    "css": {
                      "type": "integer",
                      "example": "11245243"
                    },
                    "js": {
                      "type": "integer",
                      "example": "88234014"
                    },
                    "image": {
                      "type": "integer",
                      "example": "234702347"
                    },
                    "total": {
                      "type": "integer",
                      "example": "334181604"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "html": 0,
                  "css": 11245243,
                  "js": 88234014,
                  "image": 234702347,
                  "total": 334181604
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "error": "Invalid request"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable"
          }
        },
        "security": [
          {
            "X-Nitro-Signature": []
          }
        ]
      }
    },
    "/stats/reset/{siteId}": {
      "get": {
        "tags": [
          "Stats"
        ],
        "summary": "Reset",
        "description": "Resets the Html, CSS, JS and Image savings stats.",
        "operationId": "StatsReset",
        "parameters": [
          {
            "name": "siteId",
            "in": "path",
            "description": "Site ID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success response",
            "headers": {
              "X-Nitro-Signature": {
                "description": "The request signature that you have calculated (128 character string)",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "error": "Invalid request"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable"
          }
        },
        "security": [
          {
            "X-Nitro-Signature": []
          }
        ]
      }
    },
    "/stats/diskusage/{siteId}": {
      "get": {
        "tags": [
          "Stats"
        ],
        "summary": "Disk Usage",
        "description": "Returns the disk usage on our storage servers in bytes",
        "operationId": "StatsDiskUsage",
        "parameters": [
          {
            "name": "siteId",
            "in": "path",
            "description": "Site ID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success response",
            "headers": {
              "X-Nitro-Signature": {
                "description": "The request signature that you have calculated (128 character string)",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "diskUsage": {
                      "type": "integer",
                      "example": "334181604"
                    },
                    "freeSpace": {
                      "type": "integer",
                      "example": "983240"
                    },
                    "diskUsageHtml": {
                      "type": "integer",
                      "example": "4181604"
                    },
                    "diskUsageCss": {
                      "type": "integer",
                      "example": "34181604"
                    },
                    "diskUsageJs": {
                      "type": "integer",
                      "example": "181604"
                    },
                    "diskUsageFont": {
                      "type": "integer",
                      "example": "81604"
                    },
                    "diskUsageImage": {
                      "type": "integer",
                      "example": "330181604"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "diskUsage": 334181604,
                  "freeSpace": 983240,
                  "diskUsageHtml": 4181604,
                  "diskUsageCss": 34181604,
                  "diskUsageJs": 181604,
                  "diskUsageFont": 81604,
                  "diskUsageImage": 330181604
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "error": "Invalid request"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable"
          }
        },
        "security": [
          {
            "X-Nitro-Signature": []
          }
        ]
      }
    },
    "/stats/requestusage/{siteId}": {
      "get": {
        "tags": [
          "Stats"
        ],
        "summary": "Request Usage",
        "description": "Returns the number of optimization requests that have been made and the maximum number of requests included in your billing plan.",
        "operationId": "RequestUsageStats",
        "parameters": [
          {
            "name": "siteId",
            "in": "path",
            "description": "Site ID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success response",
            "headers": {
              "X-Nitro-Signature": {
                "description": "The request signature that you have calculated (128 character string)",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "count": {
                      "type": "integer",
                      "example": "250"
                    },
                    "maxCount": {
                      "type": "integer",
                      "example": "5000"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "count": 250,
                  "maxCount": 5000
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "error": "Invalid request"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable"
          }
        },
        "security": [
          {
            "X-Nitro-Signature": []
          }
        ]
      }
    },
    "/tags/add/{siteId}": {
      "post": {
        "tags": [
          "Tags"
        ],
        "summary": "Add",
        "description": "Assigns the provided tags to the provided URL. You can later use tags to performs operations like purging the cache for all URLs tagged by a certain tag name.",
        "operationId": "AddTag",
        "parameters": [
          {
            "name": "siteId",
            "in": "path",
            "description": "Site ID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "required": [
                  "url",
                  "tag"
                ],
                "properties": {
                  "url": {
                    "description": "A URL that you would like to tag",
                    "type": "string",
                    "example": "https://example.com/products/iphone"
                  },
                  "tag": {
                    "description": "A tag name that you wish to assign to the URL. Multiple tag names can be separated with a comma(,). Tag names must match the following pattern: /^[a-zA-Z0-9:]+$/ and be no longer than 128 chars",
                    "type": "string",
                    "example": "apple,iphone"
                  }
                },
                "type": "object"
              },
              "example": {
                "url": "https://example.com/products/iphone",
                "tag": "apple,iphone"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success response",
            "headers": {
              "X-Nitro-Signature": {
                "description": "The request signature that you have calculated (128 character string)",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": "false"
                    },
                    "error": {
                      "type": "string",
                      "example": "URL is not allowed due to enabled/disabled rules."
                    }
                  },
                  "type": "object"
                },
                "examples": {
                  "SuccessExample": {
                    "summary": "Success Example",
                    "value": {
                      "success": true
                    }
                  },
                  "ErrorExample": {
                    "summary": "Error Example",
                    "value": {
                      "success": false,
                      "error": "URL is not allowed due to enabled/disabled rules."
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "error": "Invalid request"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable"
          }
        },
        "security": [
          {
            "X-Nitro-Signature": []
          }
        ]
      }
    },
    "/tags/remove/{siteId}": {
      "post": {
        "tags": [
          "Tags"
        ],
        "summary": "Remove",
        "description": "Unassigned the provided tags from the provided URL",
        "operationId": "RemoveTag",
        "parameters": [
          {
            "name": "siteId",
            "in": "path",
            "description": "Site ID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "required": [
                  "tag"
                ],
                "properties": {
                  "url": {
                    "description": "A URL that you would like to remove a tag from. If not provided the tag will be removed from all URLs",
                    "type": "string",
                    "example": "https://example.com/products/iphone"
                  },
                  "tag": {
                    "description": "A tag name that you wish to unassigned from the URL. You can use wildcards (\\*) to remove more than one tags in one go.",
                    "type": "string",
                    "example": "apple,iphone"
                  }
                },
                "type": "object"
              },
              "example": {
                "url": "https://example.com/products/iphone",
                "tag": "apple,iphone"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success response",
            "headers": {
              "X-Nitro-Signature": {
                "description": "The request signature that you have calculated (128 character string)",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "removed": {
                      "description": "The number of tags removed",
                      "type": "integer",
                      "example": "3"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "removed": 3
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "error": "Invalid request"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable"
          }
        },
        "security": [
          {
            "X-Nitro-Signature": []
          }
        ]
      }
    },
    "/tags/geturls/{siteId}/{tagName}/{page}/{limit}": {
      "get": {
        "tags": [
          "Tags"
        ],
        "summary": "Get URLs",
        "description": "Returns a list of URLs that have been tagged with the provided tag name. The responses are paginated including up to 250 results per page. The response code will be 404 if no matches have been found.\n# Status codes definition\n * **5000**: Unknown error\n * **5001**: Connecting to the server timed out\n * **5002**: Reading response timed out\n * **5003**: Optimization is skipped because the service is disabled for this site\n * **5004**: URL does not match any of the rules for enabled/disabled optimized_urls\n * **5005**: Generating critical CSS can fail if there is invalid CSS on the page\n * **5006**: Cloudflare's Rocket Loader was detected. This option conflicts with NitroPack. Please disable it.\n * **5007**: Optimization skipped because 'X-Nitro-Expires' header pointing to a moment in the past has been detected\n * **5008**: Imunify360 was detected. NitroPack's IPs must be whitelisted in order to avoid this error\n * **5009**: Not an HTML page\n * **5010**: Optimization skipped because removing the unused CSS did not succeed. Purge this cache to try again.\n * **5011**: The page source file is too big\n * **5012**: The page TTL is too low (<5min)\n * **3001**: Optimization skipped because a redirect via \"Location\" header has been detected\n * **2000**: Optimization skipped because \"X-Nitro-Disabled\" header has been detected\n * **2001**: Optimization skipped because \"X-Nitro-Cache:Hit\" header has been detected\n * **2002**: Optimization skipped because the response was empty\n * **2003**: Optimization skipped because an 'Old Browser' screen has been detected\n * **2004**: Optimization skipped because the page was detected as AMP document\n * **2005**: Optimization skipped because the page is already optimized by NitroPack\n * **2006**: Optimization skipped because a third party caching system has been detected\n     ",
        "operationId": "GetUrlsTags",
        "parameters": [
          {
            "name": "siteId",
            "in": "path",
            "description": "Site ID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "tagName",
            "in": "path",
            "description": "A tag name that you wish to get URLs for. You can use wildcards (\\*) to match multiple tags. For example \"apple:\\*\" will match both \"apple:iphone\" and \"apple:macbook\".",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "path",
            "description": "The page number that you need results for. The first page number is 1.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "path",
            "description": "Change the default limit of 250 to a custom value. Max value is still 250 though.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success response",
            "headers": {
              "X-Nitro-Signature": {
                "description": "The request signature that you have calculated (128 character string)",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "properties": {
                      "url": {
                        "type": "string",
                        "example": "https://example.com/products/iphone"
                      },
                      "tags": {
                        "description": "array with 1 element - only the tag that you are searching by",
                        "type": "array",
                        "items": {
                          "type": "string"
                        },
                        "example": "[\"apple\"]"
                      },
                      "deviceType": {
                        "description": "NULL if this URL has never been optimized",
                        "type": "string",
                        "example": "desktop"
                      },
                      "lastOptimizedDate": {
                        "description": "NULL if this URL has never been optimized",
                        "type": "string",
                        "example": "2018-09-05 04:51:13"
                      },
                      "statusCode": {
                        "description": "NULL if this URL has never been optimized, if status code is below 1000 this is the HTTP status code received when fetching the URL, everything above 1000 means something prevented the optimization.",
                        "type": "integer",
                        "example": "200"
                      }
                    },
                    "type": "object"
                  }
                },
                "example": [
                  {
                    "url": "https://example.com/products/iphone",
                    "tags": [
                      "apple"
                    ],
                    "deviceType": "desktop",
                    "lastOptimizedDate": "2018-09-0504:51:13",
                    "statusCode": 200
                  }
                ]
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "error": "Invalid request"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable"
          }
        },
        "security": [
          {
            "X-Nitro-Signature": []
          }
        ]
      }
    },
    "/tags/geturlscount/{siteId}/{tagName}": {
      "get": {
        "tags": [
          "Tags"
        ],
        "summary": "Get URLs Count",
        "description": "Returns a count of URLs that have been tagged with the provided tag name.",
        "operationId": "GetUrlsCount",
        "parameters": [
          {
            "name": "siteId",
            "in": "path",
            "description": "Site ID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "tagName",
            "in": "path",
            "description": "A tag name that you wish to get URLs for. You can use wildcards (\\*) to match multiple tags. For example \"apple:\\*\" will match both \"apple:iphone\" and \"apple:macbook\".",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success response",
            "headers": {
              "X-Nitro-Signature": {
                "description": "The request signature that you have calculated (128 character string)",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "count": {
                      "type": "integer",
                      "example": "12"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "count": 12
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "error": "Invalid request"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "error": "Service Unavailable"
                }
              }
            }
          }
        },
        "security": [
          {
            "X-Nitro-Signature": []
          }
        ]
      }
    },
    "/tags/get/{siteId}/{page}/{limit}": {
      "get": {
        "tags": [
          "Tags"
        ],
        "summary": "Get",
        "description": "Returns a list of all tags assigned to the queried url.",
        "operationId": "GetTag",
        "parameters": [
          {
            "name": "siteId",
            "in": "path",
            "description": "Site ID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "path",
            "description": "The page number that you need results for. The first page number is 1.",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "limit",
            "in": "path",
            "description": "Change the default limit of 250 to a custom value. Max value is still 250 though.",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "url",
            "in": "query",
            "description": "The url for which you wish to get tags for. This parameter should be encoded as url.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success response",
            "headers": {
              "X-Nitro-Signature": {
                "description": "The request signature that you have calculated (128 character string)",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {},
                "example": "[\"apple\"]"
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "error": "Invalid request"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "error": "Service Unavailable"
                }
              }
            }
          }
        },
        "security": [
          {
            "X-Nitro-Signature": []
          }
        ]
      }
    },
    "/urls/get/{siteId}/{page}/{limit}": {
      "get": {
        "tags": [
          "Urls"
        ],
        "summary": "Get",
        "description": "Returns a paginated list of urls assigned to the site. Each page can contain up to 250 result entries |\n# Status codes definition\n* **5000**: Unknown error\n* **5001**: Connecting to the server timed out\n* **5002**: Reading response timed out\n* **5003**: Optimization is skipped because the service is disabled for this site\n* **5004**: URL does not match any of the rules for enabled/disabled optimized_urls\n* **5005**: Generating critical CSS can fail if there is invalid CSS on the page\n* **5006**: Cloudflare's Rocket Loader was detected. This option conflicts with NitroPack. Please disable it.\n* **5007**: Optimization skipped because 'X-Nitro-Expires' header pointing to a moment in the past has been detected\n* **5008**: Imunify360 was detected. NitroPack's IPs must be whitelisted in order to avoid this error\n* **5009**: Not an HTML page\n* **5010**: Optimization skipped because removing the unused CSS did not succeed. Purge this cache to try again.\n* **5011**: The page source file is too big\n* **5012**: The page TTL is too low (<5min)\n* **3001**: Optimization skipped because a redirect via \"Location\" header has been detected\n* **2000**: Optimization skipped because \"X-Nitro-Disabled\" header has been detected\n* **2001**: Optimization skipped because \"X-Nitro-Cache:Hit\" header has been detected\n* **2002**: Optimization skipped because the response was empty\n* **2003**: Optimization skipped because an 'Old Browser' screen has been detected\n* **2004**: Optimization skipped because the page was detected as AMP document\n* **2005**: Optimization skipped because the page is already optimized by NitroPack\n* **2006**: Optimization skipped because a third party caching system has been detected\n    ",
        "operationId": "GetUrls",
        "parameters": [
          {
            "name": "siteId",
            "in": "path",
            "description": "Site ID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "path",
            "description": "The page number that you need results for. The first page number is 1.",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "limit",
            "in": "path",
            "description": "The page number that you need results for. The first page number is 1.",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "search",
            "in": "query",
            "description": "Use this to filter URLs matching a pattern. Wildcards (\\*) are allowed.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "deviceType",
            "in": "query",
            "description": "Use this to filter URLs by device type. Accepted values are \"desktop\", \"tablet\", \"mobile\" and \"none\". If \"none\" is used, the results will include URLs that have only been tagged, but not optimized.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "description": "Use this to filter URLs by status. Accepted values are all statuses described at the end of this document. To get URLs which are still pending for optimization use status -1.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success response",
            "headers": {
              "X-Nitro-Signature": {
                "description": "The request signature that you have calculated (128 character string)",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "properties": {
                      "url": {
                        "type": "string",
                        "example": "https://example.com/products/iphone"
                      },
                      "tags": {
                        "description": "list of all tags assigned to this URL",
                        "type": "array",
                        "items": {
                          "type": "string"
                        },
                        "example": "[\"apple\",\"phone\"]"
                      },
                      "deviceType": {
                        "description": "NULL if this URL has never been optimized",
                        "type": "string",
                        "example": "desktop"
                      },
                      "lastOptimizedDate": {
                        "description": "NULL if this URL has never been optimized",
                        "type": "string",
                        "example": "2018-09-05 04:51:13"
                      },
                      "statusCode": {
                        "description": "NULL if this URL has never been optimized, if status code is below 1000 this is the HTTP status code received when fetching the URL, everything above 1000 means something prevented the optimization.",
                        "type": "integer",
                        "example": "20"
                      }
                    },
                    "type": "object"
                  }
                },
                "example": [
                  {
                    "url": "https://example.com/products/iphone",
                    "tags": [
                      "apple",
                      "phone"
                    ],
                    "deviceType": "desktop",
                    "lastOptimizedDate": "2018-09-0504:51:13",
                    "statusCode": 200
                  }
                ]
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "error": "Invalid request"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable"
          }
        },
        "security": [
          {
            "X-Nitro-Signature": []
          }
        ]
      }
    },
    "/urls/count/{siteId}": {
      "get": {
        "tags": [
          "Urls"
        ],
        "summary": "Count",
        "description": "Returns the number of optimized URLs. Does not take cache expiration into account, it simply returns the number of unique URLs that we have logged due to optimization requests or tagging.",
        "operationId": "CountUrls",
        "parameters": [
          {
            "name": "siteId",
            "in": "path",
            "description": "Site ID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "search",
            "in": "query",
            "description": "Use this to filter URLs matching a pattern. Wildcards (\\*) are allowed.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "deviceType",
            "in": "query",
            "description": "Use this to filter URLs by device type. Accepted values are \"desktop\", \"tablet\", \"mobile\" and \"none\". If \"none\" is used, the results will include URLs that have only been tagged, but not optimized.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "description": "Use this to filter URLs by status. Accepted values are all statuses described at the end of this document. To get URLs which are still pending for optimization use status -1.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success response",
            "headers": {
              "X-Nitro-Signature": {
                "description": "The request signature that you have calculated (128 character string)",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "count": {
                      "type": "integer",
                      "example": "256"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "count": 256
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "error": "Invalid request"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable"
          }
        },
        "security": [
          {
            "X-Nitro-Signature": []
          }
        ]
      }
    },
    "/urls/getpending/{siteId}/{page}/{limit}": {
      "get": {
        "tags": [
          "Urls"
        ],
        "summary": "Get Pending URLs",
        "description": "Returns a paginated list of urls waiting to be optimized. Each page can contain up to 250 result entries.",
        "operationId": "GetPendingUrls",
        "parameters": [
          {
            "name": "siteId",
            "in": "path",
            "description": "Site ID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "path",
            "description": "The page number that you need results for. The first page number is 1.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "path",
            "description": "Change the default limit of 250 to a custom value. Max value is still 250 though.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "priority",
            "in": "query",
            "description": "If present, information about the specified priority queue will be used. Possible values are: \"low\"",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success response",
            "headers": {
              "X-Nitro-Signature": {
                "description": "The request signature that you have calculated (128 character string)",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "properties": {
                      "url": {
                        "type": "string",
                        "example": "https://example.com/products/iphone"
                      },
                      "deviceType": {
                        "type": "string",
                        "example": "desktop"
                      }
                    },
                    "type": "object"
                  }
                },
                "example": [
                  {
                    "url": "https://example.com/products/iphone",
                    "deviceType": "desktop"
                  }
                ]
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "error": "Invalid request"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "error": "Invalid request"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable"
          }
        },
        "security": [
          {
            "X-Nitro-Signature": []
          }
        ]
      }
    },
    "/urls/pendingcount/{siteId}": {
      "get": {
        "tags": [
          "Urls"
        ],
        "summary": "Get Pending Count URLs",
        "description": "Returns the number of cache variations that are pending (can be more than the number of URLs).",
        "operationId": "PendingCountUrls",
        "parameters": [
          {
            "name": "siteId",
            "in": "path",
            "description": "Site ID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "priority",
            "in": "query",
            "description": "If present, information about the specified priority queue will be used. Possible values are: \"low\"",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success response",
            "headers": {
              "X-Nitro-Signature": {
                "description": "The request signature that you have calculated (128 character string)",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "count": {
                      "type": "integer",
                      "example": "256"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "count": 256
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "error": "Invalid request"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable"
          }
        },
        "security": [
          {
            "X-Nitro-Signature": []
          }
        ]
      }
    },
    "/variationcookie/get/{siteId}": {
      "get": {
        "tags": [
          "VariationCookie"
        ],
        "summary": "Get",
        "description": "Get a list of all variation cookies",
        "operationId": "GetVariationCookie",
        "parameters": [
          {
            "name": "siteId",
            "in": "path",
            "description": "Site ID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success response",
            "headers": {
              "X-Nitro-Signature": {
                "description": "The request signature that you have calculated (128 character string)",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "properties": {
                      "name": {
                        "type": "string"
                      },
                      "values": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "group": {
                        "type": "integer",
                        "nullable": true
                      }
                    },
                    "type": "object"
                  }
                },
                "example": [
                  {
                    "name": "language",
                    "values": [],
                    "group": 1
                  },
                  {
                    "name": "currency",
                    "values": [
                      "USD",
                      "GBP"
                    ],
                    "group": null
                  }
                ]
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "error": "Invalid request"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable"
          }
        },
        "security": [
          {
            "X-Nitro-Signature": []
          }
        ]
      }
    },
    "/variationcookie/delete/{siteId}": {
      "post": {
        "tags": [
          "VariationCookie"
        ],
        "summary": "Delete",
        "description": "Unset a variation cookie by providing its name.",
        "operationId": "DeleteVariationCookie",
        "parameters": [
          {
            "name": "siteId",
            "in": "path",
            "description": "Site ID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "name": {
                    "description": "The name of the variation cookie.",
                    "type": "string",
                    "example": "notification_popup"
                  }
                },
                "type": "object"
              },
              "example": {
                "name": "notification_popup"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success response",
            "headers": {
              "X-Nitro-Signature": {
                "description": "The request signature that you have calculated (128 character string)",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "error": "Invalid request"
                }
              }
            }
          },
          "500": {
            "description": "Runtime Error",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "error": "The type could not be handled."
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable"
          }
        },
        "security": [
          {
            "X-Nitro-Signature": []
          }
        ]
      }
    },
    "/variationcookie/set/{siteId}": {
      "post": {
        "tags": [
          "VariationCookie"
        ],
        "summary": "Set",
        "description": "Set a variation cookie by providing its name and, optionally, appropriate values. Variation cookies are used for generating unique cached pages for a different combination of cookies. The optional values are used by the Cache Warmup service.",
        "operationId": "SetVariationCookie",
        "parameters": [
          {
            "name": "siteId",
            "in": "path",
            "description": "Site ID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "name": {
                    "description": "The name of the variation cookie.",
                    "type": "string"
                  },
                  "value": {
                    "description": "Optional possible values for this cookie (comma-separated).",
                    "type": "string",
                    "example": "en,de,es"
                  },
                  "group": {
                    "description": "Optional group of this cookie. Must be a positive integer. This attribute is used to group different cookies for the purposes of Cache Warmup. If group is not provided, the cookie will be accepted, and will not belong to any group.",
                    "type": "integer",
                    "example": "1"
                  }
                },
                "type": "object"
              },
              "example": {
                "name": "language",
                "value": "en,de,es"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success response",
            "headers": {
              "X-Nitro-Signature": {
                "description": "The request signature that you have calculated (128 character string)",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "error": "Invalid request"
                }
              }
            }
          },
          "500": {
            "description": "Runtime Error",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "error": "The type could not be handled."
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable"
          }
        },
        "security": [
          {
            "X-Nitro-Signature": []
          }
        ]
      }
    },
    "/varnish/enable/{siteId}": {
      "post": {
        "tags": [
          "Varnish"
        ],
        "summary": "Enable",
        "operationId": "VarnishEnable",
        "parameters": [
          {
            "name": "siteId",
            "in": "path",
            "description": "Site ID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success response",
            "headers": {
              "X-Nitro-Signature": {
                "description": "The request signature that you have calculated (128 character string)",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "error": "Invalid request"
                }
              }
            }
          },
          "500": {
            "description": "Runtime Error",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "error": "An unexpected error has occurred while enabling Varnish."
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "message": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "message": "The service is temporarily unavailable."
                }
              }
            }
          }
        },
        "security": [
          {
            "X-Nitro-Signature": []
          }
        ]
      }
    },
    "/varnish/disable/{siteId}": {
      "post": {
        "tags": [
          "Varnish"
        ],
        "summary": "Disable",
        "operationId": "VarnishDisable",
        "parameters": [
          {
            "name": "siteId",
            "in": "path",
            "description": "Site ID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success response",
            "headers": {
              "X-Nitro-Signature": {
                "description": "The request signature that you have calculated (128 character string)",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "error": "Invalid request"
                }
              }
            }
          },
          "500": {
            "description": "Runtime Error",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "error": "An unexpected error has occurred while enabling Varnish."
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "message": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "message": "The service is temporarily unavailable."
                }
              }
            }
          }
        },
        "security": [
          {
            "X-Nitro-Signature": []
          }
        ]
      }
    },
    "/varnish/configure/{siteId}": {
      "post": {
        "tags": [
          "Varnish"
        ],
        "summary": "Configure",
        "operationId": "VarnishConfigure",
        "parameters": [
          {
            "name": "siteId",
            "in": "path",
            "description": "Site ID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success response",
            "headers": {
              "X-Nitro-Signature": {
                "description": "The request signature that you have calculated (128 character string)",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "error": "Invalid request"
                }
              }
            }
          },
          "500": {
            "description": "Runtime Error",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "error": "An unexpected error has occurred while configuring Varnish."
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "message": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "message": "The service is temporarily unavailable."
                }
              }
            }
          }
        },
        "security": [
          {
            "X-Nitro-Signature": []
          }
        ]
      }
    },
    "/varnish/get/{siteId}": {
      "get": {
        "tags": [
          "Varnish"
        ],
        "summary": "Get",
        "operationId": "VarnishGet",
        "parameters": [
          {
            "name": "siteId",
            "in": "path",
            "description": "Site ID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success response",
            "headers": {
              "X-Nitro-Signature": {
                "description": "The request signature that you have calculated (128 character string)",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "error": "Invalid request"
                }
              }
            }
          },
          "500": {
            "description": "Runtime Error",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "error": "An unexpected error has occurred while getting Varnish config."
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "message": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "message": "The service is temporarily unavailable."
                }
              }
            }
          }
        },
        "security": [
          {
            "X-Nitro-Signature": []
          }
        ]
      }
    },
    "/varnish/set/{siteId}": {
      "post": {
        "tags": [
          "Varnish"
        ],
        "summary": "Set",
        "operationId": "VarnishSet",
        "parameters": [
          {
            "name": "siteId",
            "in": "path",
            "description": "Site ID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "properties": {
                  "configSet": {
                    "description": "Purge Configs Set",
                    "type": "array",
                    "items": {
                      "properties": {
                        "purgeAllUrl": {
                          "description": "String",
                          "type": "string"
                        },
                        "PurgeAllMethod": {
                          "description": "Purge all request method",
                          "type": "string",
                          "enum": [
                            "PURGE",
                            "GET",
                            "POST",
                            "PUT",
                            "DELETE"
                          ]
                        },
                        "PurgeSingleTemplate": {
                          "description": "Template for purging single URL. Example:http://server-2{{targetPath}}",
                          "type": "string",
                          "enum": [
                            "{{targetUrl}}",
                            "{{targetProtocol}}",
                            "{{targetHost}}",
                            "{{targetPath}}",
                            "{{targetQuery}}"
                          ]
                        },
                        "PurgeSingleMethod": {
                          "description": "Purge single request method",
                          "type": "string",
                          "enum": [
                            "PURGE",
                            "GET",
                            "POST",
                            "PUT",
                            "DELETE"
                          ]
                        },
                        "PurgeSingleHeadersTemplates": {
                          "description": "If headers for purging are used. Header name and header value pair",
                          "type": "array",
                          "items": {
                            "properties": {
                              "HeaderName": {
                                "description": "Header name",
                                "type": "string"
                              },
                              "HeaderTemplate": {
                                "description": "Header template for purging single URL. Example:http://server-2{{targetPath}}",
                                "type": "string",
                                "enum": [
                                  "{{targetUrl}}",
                                  "{{targetProtocol}}",
                                  "{{targetHost}}",
                                  "{{targetPath}}",
                                  "{{targetQuery}}"
                                ]
                              }
                            },
                            "type": "object"
                          }
                        }
                      },
                      "type": "object"
                    }
                  }
                },
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success response",
            "headers": {
              "X-Nitro-Signature": {
                "description": "The request signature that you have calculated (128 character string)",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "error": "Invalid request"
                }
              }
            }
          },
          "500": {
            "description": "Runtime Error",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "error": "An unexpected error has occurred while setting Varnish config."
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "message": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "message": "The service is temporarily unavailable."
                }
              }
            }
          }
        },
        "security": [
          {
            "X-Nitro-Signature": []
          }
        ]
      }
    },
    "/warmup/enable/{siteId}": {
      "get": {
        "tags": [
          "Warmup"
        ],
        "summary": "Enable",
        "description": "Enable cache warmup for the given website",
        "operationId": "EnableWarmup",
        "parameters": [
          {
            "name": "siteId",
            "in": "path",
            "description": "Site ID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success response",
            "headers": {
              "X-Nitro-Signature": {
                "description": "The request signature that you have calculated (128 character string)",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "error": "Invalid request"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable"
          }
        },
        "security": [
          {
            "X-Nitro-Signature": []
          }
        ]
      }
    },
    "/warmup/disable/{siteId}": {
      "get": {
        "tags": [
          "Warmup"
        ],
        "summary": "Disable",
        "description": "Disable cache warmup for the given website",
        "operationId": "DisableWarmup",
        "parameters": [
          {
            "name": "siteId",
            "in": "path",
            "description": "Site ID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success response",
            "headers": {
              "X-Nitro-Signature": {
                "description": "The request signature that you have calculated (128 character string)",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "error": "Invalid request"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable"
          }
        },
        "security": [
          {
            "X-Nitro-Signature": []
          }
        ]
      }
    },
    "/warmup/reset/{siteId}": {
      "get": {
        "tags": [
          "Warmup"
        ],
        "summary": "Reset",
        "description": "Reset the cache warmup queue and stats for the given website.",
        "operationId": "ResetWarmup",
        "parameters": [
          {
            "name": "siteId",
            "in": "path",
            "description": "Site ID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success response",
            "headers": {
              "X-Nitro-Signature": {
                "description": "The request signature that you have calculated (128 character string)",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "error": "Invalid request"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable"
          }
        },
        "security": [
          {
            "X-Nitro-Signature": []
          }
        ]
      }
    },
    "/warmup/stats/{siteId}": {
      "get": {
        "tags": [
          "Warmup"
        ],
        "summary": "Get Stats",
        "description": "Get cache warmup stats for the given website.",
        "operationId": "StatsWarmup",
        "parameters": [
          {
            "name": "siteId",
            "in": "path",
            "description": "Site ID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success response",
            "headers": {
              "X-Nitro-Signature": {
                "description": "The request signature that you have calculated (128 character string)",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "status": {
                      "description": "1 if the service is enabled, 0 otherwise",
                      "type": "integer"
                    },
                    "sitemap": {
                      "description": "The sitemap URL (if configured)",
                      "type": "string"
                    },
                    "homepage": {
                      "description": "The homepage URL (if configured)",
                      "type": "string"
                    },
                    "pending": {
                      "description": "The number of requests waiting in the queue",
                      "type": "integer"
                    },
                    "request_count": {
                      "description": "Total number of requests made by the cache warmup service",
                      "type": "integer"
                    },
                    "avg_ttfb": {
                      "description": "Average TTFB in milliseconds",
                      "type": "integer"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "status": 1,
                  "sitemap": "https:///example.com/sitemap.xml",
                  "homepage": "https:///example.com/",
                  "pending": 256,
                  "request_count": 18926,
                  "avg_ttfb": 180
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "error": "Invalid request"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable"
          }
        },
        "security": [
          {
            "X-Nitro-Signature": []
          }
        ]
      }
    },
    "/warmup/sethomepageurl/{siteId}": {
      "post": {
        "tags": [
          "Warmup"
        ],
        "summary": "Set Homepage",
        "description": "Set a home page URL for the given webite. The links found in the home page will be crawled on events like cache purge. (If SiteMap XML is configured it takes precedence over this setting)",
        "operationId": "SetHomepage",
        "parameters": [
          {
            "name": "siteId",
            "in": "path",
            "description": "Site ID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "url": {
                    "description": "Your home page URL. If this parameter is not present in the request, the call to this endpoint works as unset.",
                    "type": "string",
                    "example": "https://example.com/"
                  }
                },
                "type": "object"
              },
              "example": {
                "url": "https://example.com/"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success response",
            "headers": {
              "X-Nitro-Signature": {
                "description": "The request signature that you have calculated (128 character string)",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "error": "Invalid request"
                }
              }
            }
          },
          "500": {
            "description": "Runtime Error",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "error": "Some error message, related to an internal error."
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable"
          }
        },
        "security": [
          {
            "X-Nitro-Signature": []
          }
        ]
      }
    },
    "/warmup/setsitemap/{siteId}": {
      "post": {
        "tags": [
          "Warmup"
        ],
        "summary": "Set Sitemap",
        "description": "Set a sitemap URL for the given website. The sitemap URL must be publicly accessible and formatted in the SiteMap XML format. The links found in this sitemap will be crawled on events like cache purge.",
        "operationId": "SetSitemap",
        "parameters": [
          {
            "name": "siteId",
            "in": "path",
            "description": "Site ID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "url": {
                    "description": "Your publicly accessible sitemap URL. If not present the call to this endpoint works as unset.",
                    "type": "string",
                    "example": "https://example.com/"
                  }
                },
                "type": "object"
              },
              "example": {
                "url": "https://example.com/"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success response",
            "headers": {
              "X-Nitro-Signature": {
                "description": "The request signature that you have calculated (128 character string)",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "error": "Invalid request"
                }
              }
            }
          },
          "500": {
            "description": "Runtime Error",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "error": "Some error message, related to an internal error."
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable"
          }
        },
        "security": [
          {
            "X-Nitro-Signature": []
          }
        ]
      }
    },
    "/warmup/estimate/{siteId}/{id}": {
      "post": {
        "tags": [
          "Warmup"
        ],
        "summary": "Estimate",
        "description": "Estimate how many optimizations will be used for cache warmup using the current settings.",
        "operationId": "Estimate",
        "parameters": [
          {
            "name": "siteId",
            "in": "path",
            "description": "Site ID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "description": "Leaving this parameter empty will start a new estimation process. Passing an ID will return the result of the estimation. If NitroPack is still estimating the returned number will be -1. Estimation results expire in 1h.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "urls": {
                    "description": "A list of URLs to be warmed up. If empty or not set the home page links or the entire sitemap list (if configured) will be warmed up.",
                    "type": "string"
                  }
                },
                "type": "object"
              },
              "example": {
                "urls": "https://example.com/"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success response",
            "headers": {
              "X-Nitro-Signature": {
                "description": "The request signature that you have calculated (128 character string)",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "count": {
                      "type": "integer"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "count": 1432
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "error": "Invalid request"
                }
              }
            }
          },
          "500": {
            "description": "Runtime Error",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "error": "Some error message, related to an internal error."
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable"
          }
        },
        "security": [
          {
            "X-Nitro-Signature": []
          }
        ]
      }
    },
    "/warmup/run/{siteId}": {
      "post": {
        "tags": [
          "Warmup"
        ],
        "summary": "Run",
        "description": "Run cache warmup for the given website.",
        "operationId": "Run",
        "parameters": [
          {
            "name": "siteId",
            "in": "path",
            "description": "Site ID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "urls": {
                    "description": "A list of URLs to be warmed up. If empty or not set the home page links or the entire sitemap list (if configured) will be warmed up.",
                    "type": "string"
                  }
                },
                "type": "object"
              },
              "example": {
                "urls": "https://example.com/iphone"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success response",
            "headers": {
              "X-Nitro-Signature": {
                "description": "The request signature that you have calculated (128 character string)",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "error": "Invalid request"
                }
              }
            }
          },
          "500": {
            "description": "Runtime Error",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "error": "Some error message, related to an internal error."
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable"
          }
        },
        "security": [
          {
            "X-Nitro-Signature": []
          }
        ]
      }
    },
    "/webhook/set/{siteId}": {
      "post": {
        "tags": [
          "Webhook"
        ],
        "summary": "Set",
        "description": "Set a webhook URL for the given website. The webhook URL must be publically accessible, as the API will call it on specific events:\n- config : Whenever you edit your store settings from the NitroPack.io Dashboard.\n- cache_clear : Whenever you purge your cache or clear the cache for a specific page.\n- cache_ready : Whenever an optimized page version is ready, NitroPack will call this webhook providing the URL to the optimized page. (Information that defines a page variation like cookies, user-agent, etc. is provided within the request)\n- sitemap : An endpoint of your Sitemap XML, used by the NitroPack Cache Warmup service to re-generate cache for your pages.\n           ",
        "operationId": "SetWebhooks",
        "parameters": [
          {
            "name": "siteId",
            "in": "path",
            "description": "Site ID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "required": [
                  "type"
                ],
                "properties": {
                  "type": {
                    "description": "The type of the webhook. Allowed values: \"config\", \"cache_clear\", \"cache_ready\", \"sitemap\"",
                    "type": "string",
                    "example": "config"
                  },
                  "url": {
                    "description": "Your publically accessible webhook URL.",
                    "type": "string",
                    "example": "https://example.com/webhook-endpoint"
                  }
                },
                "type": "object"
              },
              "examples": {
                "SetExample": {
                  "summary": "Set Example",
                  "value": {
                    "type": "config",
                    "url": "https://example.com/webhook-endpoint"
                  }
                },
                "UnsetExample": {
                  "summary": "Unset Example",
                  "value": {
                    "type": "config"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success response",
            "headers": {
              "X-Nitro-Signature": {
                "description": "The request signature that you have calculated (128 character string)",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "error": "Invalid request"
                }
              }
            }
          },
          "500": {
            "description": "Runtime Error",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "error": "Some error message, related to an internal error."
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "error": "The type could not be handled."
                }
              }
            }
          }
        },
        "security": [
          {
            "X-Nitro-Signature": []
          }
        ]
      }
    },
    "/webhook/get/{siteId}/{type}": {
      "get": {
        "tags": [
          "Webhook"
        ],
        "summary": "Get",
        "description": "Get a webhook URL for the given webite.",
        "operationId": "GetWebhooks",
        "parameters": [
          {
            "name": "siteId",
            "in": "path",
            "description": "Site ID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "type",
            "in": "path",
            "description": "The type of the webhook. Allowed values: \"config\", \"cache_clear\", \"cache_ready\", \"sitemap\"",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success response",
            "headers": {
              "X-Nitro-Signature": {
                "description": "The request signature that you have calculated (128 character string)",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "error": "Invalid request"
                }
              }
            }
          },
          "500": {
            "description": "Runtime Error",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "error": "Some error message, related to an internal error."
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "description": "Error message",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "example": {
                  "error": "The type could not be handled."
                }
              }
            }
          }
        },
        "security": [
          {
            "X-Nitro-Signature": []
          }
        ]
      }
    }
  },
  "components": {
    "securitySchemes": {
      "X-Nitro-Signature": {
        "type": "apiKey",
        "description": "The request signature calculated on your end. We will compare this to the signature that we will calculate for the request on our end and only allow the operation to go through if both signatures match. This is how we verify that you are authorized to perform this operation.\n\n# Signing requests and verifying server responses:\nAPI requests which deal with non-public data have to be signed by clients with the site secret. Additionally, for those requests it is strongly recommended for the client to verify the signature that the server returns along with the response to ensure the data is coming from **api.getnitropack.com**\n\nBoth request and response signatures are keyed-hash message authentication codes (HMAC) generated using SHA512 as the underlying hashing algorithm.\n\nFor requests, the signed data includes:\n\n1. API endpoint path. Required.\n2. NitroPack headers(if present). In the form X-Nitro-[value]. Could be blank.\n3. Query parameters. Could be blank.\n4. POST data parameters. Could be blank.The API endpoint path does not include the hostname nor any of the query parameters, and has to start with a \"/\", for example: For a request to `https://api.getnitropack.com/tags/get/:site_id?url=https://example.com/` which is retrieving the tags for the `https://example.com/` URL, the path would be `/tags/get/:site_id`\nFor example if siteID is `hKExPwq2RgVKjierq`, then the path would be `/tags/get/hKExPwq2RgVKjierq`\n\nHeaders are included in the signed data as a comma separated list of header:value entries, where the header name and its value are separated by a single colon (:) character, without any spaces. The header names are included in lower case, with any \"-\" characters converted to \"_\". The signature header(`X-Nitro-Signature`) should not (and realistically cannot) be included in this list. The headers need to be sorted alphabetically by header name.\nFor example - for a request with the following two headers: `X-Nitro-Visitor-Addr: 1.2.3.4`, `X-Nitro-Url: https://example.com/` the header section of the signed data will look as follows: `x_nitro_url:https://example.com/,x_nitro_visitor_addr:1.2.3.4`\nQuery parameters and POST data parameters are treated the same way. If there is a POST parameter that has the same key name as a query parameter it is ignored in favor of the query parameter. The format of this section of the signed data is the same as the one for headers - key:value pairs (with the key and value separated by a colon) in a comma separated list, sorted alphabetically by the parameter name. Note that the parameter values used when building the data for signing must not be URL encoded. For example - for a **POST** request to `https://api.getnitropack.com/some/endpoint?queryparam1=queryvalue1&queryparam2=queryvalue2` with a **POST** body `postdata1=postvalue1&postdata2=postvalue2` the parameters section of the signed data will look as follows: `postdata1:postvalue1,postdata2:postvalue2,queryparam1:queryvalue1,queryparam2:queryvalue2`\n\nAltogether the signed data comprises of the url path, headers and parameters sections separated by the pipe (`|`) character.\nPutting the above three examples together, the entire data for signing looks as follows:\nLet **:site_id** be `hKExPwq2RgVKjierq`, API path `/tags/get/`, headers in alphabetical order and converted to lower case `x_nitro_url:https://example.com/,x_nitro_visitor_addr:1.2.3.4`, POST and query data `postdata1:postvalue1,postdata2:postvalue2,queryparam1:queryvalue1,queryparam2:queryvalue2`.\n\n*Result*:\n`/tags/get/hKExPwq2RgVKjierq|x_nitro_url:https://example.com/,x_nitro_visitor_addr:1.2.3.4|postdata1:postvalue1,postdata2:postvalue2,queryparam1:queryvalue1,queryparam2:queryvalue2`\n\nIf nitro headers are not present then we still have to include the divider (|).\nExample:\n`/tags/get/hKExPwq2RgVKjierq||postdata1:postvalue1,postdata2:postvalue2,queryparam1:queryvalue1,queryparam2:queryvalue2`\n\nIf there are no nitro headers and post/query parameters:\n`/tags/get/hKExPwq2RgVKjierq||`\n\nGenerating the signature involves calculating the HMAC of the above data string using SHA512 as the hashing algorithm and the site secret as the shared secret key. An example in PHP (if site ID is hKExPwq2RgVKjierq and site secret is hKExPwq2RgVKjierqhKExPwq2RgVKjierq):\n```$signature = hash_hmac('SHA512', '/tags/get/hKExPwq2RgVKjierq|x_nitro_url:https://example.com/,x_nitro_visitor_addr:1.2.3.4|postdata1:postvalue1,postdata2:postvalue2,queryparam1:queryvalue1,queryparam2:queryvalue2', 'hKExPwq2RgVKjierqhKExPwq2RgVKjierq');```\n\nThe resulting signature should be placed in the `X-Nitro-Signature` header of the HTTP request.\n\nUpon receiving a response with HTTP status **200**, the API client needs to verify its signature. Non-200 responses indicate an error and are not signed. The API server will return a signature in the `X-Nitro-Signature` header of the response. To verify it, calculate the HMAC of the entire response body (and only the body, do not include the headers) using again SHA512 as the hashing algorithm and the site secret as the shared secret key. If the signature the client computes and the one provided by the server do not match, the client should discard the response and alert the administrator managing the site running the client.\n\n# PHP and curl examples:\nValues of **$siteID** and **$siteSecret** can be obtained via Nitropack.com->Dashboard->Connect Your Website.\nValues used in the examples below are fictional and just for illustration purposes.\n```\n$siteID = 'hKExPwq2RgVKjierq';\n$siteSecret = 'hKExPwq2RgVKjierqhKExPwq2RgVKjierq';\n\n// Purge URL cache\n$signature = hash_hmac('SHA512', \"/cache/purge/$siteID||url:https://example.com/page/\", $siteSecret);\nCalculated signature is: 9113876a4742c214b686af4e4f1f46c097fa31b2739fff40b8d9c3bd6d0b6661f598efacb860ab76435ef0cfb2cc0ef041f76c7c3077be88b04f6a63e4517ac6\nCurl request with the above calculated signature(as per documentation /cache/purge is a POST request):\ncurl -H \"X-Nitro-Signature: 9113876a4742c214b686af4e4f1f46c097fa31b2739fff40b8d9c3bd6d0b6661f598efacb860ab76435ef0cfb2cc0ef041f76c7c3077be88b04f6a63e4517ac6\" -d \"url=https://example.com/page/\" -X POST https://api.getnitropack.com/cache/purge/hKExPwq2RgVKjierq\nOn success and if purge by tag was performed, a list of purged URLs in JSON format will be returned.\n\n// Count processed URLs(regardless of state)\n$signature = hash_hmac('SHA512', \"/urls/count/$siteID||\", $siteSecret);\nCalculated signature is: 1f54f22730cd8b363e9eaa1df79152e2159ee0a8bbcfd193f618fe340f091170701fae894c098798993136dfd5fa735280cb6da3e02048c9231ca9b2def3d91e\nCurl request with the above calculated signature(as per documentation /urls/count is a GET request, but POST request can also be used):\ncurl -H \"X-Nitro-Signature: 1f54f22730cd8b363e9eaa1df79152e2159ee0a8bbcfd193f618fe340f091170701fae894c098798993136dfd5fa735280cb6da3e02048c9231ca9b2def3d91e\" https://api.getnitropack.com/urls/count/hKExPwq2RgVKjierq\nOn success URL count in JSON format will be returned.\n\n// Retrieve tags for a given url\n$signature = hash_hmac('SHA512', \"/tags/get/$siteID||url:https://example.com/page/\", $siteSecret);\nCalculated signature is: e6867e8b0fef9c48afed65f03a9de9ce93e3faf51ff053264ca435c89db36f81bfaecd2a679fe0f94356095c6b91d43a4bae879b380c00dd459bd93cc0e55455\nCurl request with the above calculated signature(as per documentation /tags/get is a GET request):\ncurl -H \"X-Nitro-Signature: e6867e8b0fef9c48afed65f03a9de9ce93e3faf51ff053264ca435c89db36f81bfaecd2a679fe0f94356095c6b91d43a4bae879b380c00dd459bd93cc0e55455\" https://api.getnitropack.com/tags/get/hKExPwq2RgVKjierq?url=https://example.com/page/\nOn success tags names and values in JSON format will be returned.\n\n// Run cache warmup for two URLs\n$urls = ['https://example.com/page01/', 'https://example.com/page02/'];\n$signatureString = sprintf(\"/warmup/run/%s||urls:%s\", $siteID, json_encode($urls));\n$signature = hash_hmac('SHA512', $signatureString, $siteSecret);\nCalculated signature is: e2cc2fac7d2d11f79cd0f3d0631a5fdd1390295760f36bf043e39a9195d656d50761f83d3dcd828be53fb4c4b75000c14bb41f3d8f8c39307023509d4119ef8b\nCurl request with the above calculated signature(as per documentation /warmup/run is a POST request):\ncurl -H \"X-Nitro-Signature: e2cc2fac7d2d11f79cd0f3d0631a5fdd1390295760f36bf043e39a9195d656d50761f83d3dcd828be53fb4c4b75000c14bb41f3d8f8c39307023509d4119ef8b\" -d \"urls=https://example.com/page01/&urls[]=https://example.com/page02/\" https://api.getnitropack.com/warmup/run/hKExPwq2RgVKjierq\nOn success HTTP status code 200 is returned.\n```",
        "name": "X-Nitro-Signature",
        "in": "header"
      }
    }
  }
}
