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
)
waap_custom_page_preview = client.waap.custom_page_sets.preview(
    page_type="block.html",
)
print(waap_custom_page_preview.html)
{
  "html": "<string>"
}

Authorizations

Authorization
string
header
required

API key for authentication. Make sure to include the word apikey, followed by a single space and then your token. Example: apikey 1234$abcdef

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.