POST
/
waap
/
v1
/
preview-custom-page
import os
from gcore import Gcore

client = Gcore(
    api_key=os.environ.get("GCORE_API_KEY"),  # This is the default and can be omitted
)
preview_custom_page = client.waap.custom_page_sets.preview(
    page_type="block.html",
)
print(preview_custom_page.html)
{
  "html": "<string>"
}

Authorizations

APIKey
string
header
required

API key for authentication.

Query Parameters

page_type
enum<string>
required

The type of the custom page

Available options:
block.html,
block_csrf.html,
captcha.html,
cookieDisabled.html,
handshake.html,
javascriptDisabled.html

Body

application/json

Response

200
application/json

Successful Response

The response is of type object.