Custom Pages

CustomPages

Methods

list(, ): <>
get/{accounts_or_zones}/{account_or_zone_id}/custom_pages

Fetches all the custom pages.

Security
API Email + API Key

The previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.

Example: X-Auth-Email: user@example.com

The previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.

Example: X-Auth-Key: 144c9defac04969c7bfad8efaa8ea194

Accepted Permissions (at least one required)

Zero Trust: PII Read Account Custom Pages Write Account Custom Pages Read Account Settings Write Account Settings Read

Parameters
account_id?: string

The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.

zone_id?: string

The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.

Returns
CustomPageListResponse{
id?: string
created_on?: string
(format: date-time)
description?: string
modified_on?: string
(format: date-time)
preview_target?: string
required_tokens?: Array<string>
state?: "default" | "customized"

The custom page state.

url?: string
(format: uri)

The URL associated with the custom page.

Request example
200Example
get(, , ):
get/{accounts_or_zones}/{account_or_zone_id}/custom_pages/{identifier}

Fetches the details of a custom page.

update(, , ):
put/{accounts_or_zones}/{account_or_zone_id}/custom_pages/{identifier}

Updates the configuration of an existing custom page.