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.
Security
The preferred authorization scheme for interacting with the Cloudflare API. Create a token.
Example: Authorization: Bearer Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY
Accepted Permissions (at least one required)
Zero Trust: PII Read Account Custom Pages Write Account Custom Pages Read Account Settings Write Account Settings Read
path Parameters
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
result: Array<unknown>
success: true
Whether the API call was successful
result_info: { count, page, per_page, 1 more... }
Optional
Request example
200Example
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.