Custom Pages

custom_pages

Methods

Get A Custom Page -> Envelope<unknown | string>
get/{accounts_or_zones}/{account_or_zone_id}/custom_pages/{identifier}

Fetches the details of a custom page.

List Custom Pages -> SinglePage<unknown>
get/{accounts_or_zones}/{account_or_zone_id}/custom_pages

Fetches all the custom pages.

Update A Custom Page -> Envelope<unknown | string>
put/{accounts_or_zones}/{account_or_zone_id}/custom_pages/{identifier}

Updates the configuration of an existing custom page.

Security

The preferred authorization scheme for interacting with the Cloudflare API. Create a token.

Example: Authorization: Bearer Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY

Accepted Permissions (at least one required)

Account Custom Pages Write Account Settings Write

path Parameters
identifier: string
(maxLength: 32)

Identifier

account_id: string
Optional

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

zone_id: string
Optional

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

Response fields
errors: Array<>
messages: Array<>
result: unknown | string
success: true

Whether the API call was successful

Request example
200Example