## Create a custom page `zero_trust.access.custom_pages.create(CustomPageCreateParams**kwargs) -> CustomPageWithoutHTML` **post** `/accounts/{account_id}/access/custom_pages` Create a custom page ### Parameters - `account_id: str` Identifier. - `custom_html: str` Custom page HTML. - `name: str` Custom page name. - `type: Literal["identity_denied", "forbidden"]` Custom page type. - `"identity_denied"` - `"forbidden"` ### Returns - `class CustomPageWithoutHTML: …` - `name: str` Custom page name. - `type: Literal["identity_denied", "forbidden"]` Custom page type. - `"identity_denied"` - `"forbidden"` - `uid: Optional[str]` UUID. ### Example ```python import os from cloudflare import Cloudflare client = Cloudflare( api_token=os.environ.get("CLOUDFLARE_API_TOKEN"), # This is the default and can be omitted ) custom_page_without_html = client.zero_trust.access.custom_pages.create( account_id="023e105f4ecef8ad9ca31a8372d0c353", custom_html="

Access Denied

", name="name", type="identity_denied", ) print(custom_page_without_html.uid) ``` #### Response ```json { "errors": [ { "code": 1000, "message": "message", "documentation_url": "documentation_url", "source": { "pointer": "pointer" } } ], "messages": [ { "code": 1000, "message": "message", "documentation_url": "documentation_url", "source": { "pointer": "pointer" } } ], "success": true, "result": { "name": "name", "type": "identity_denied", "app_count": 0, "created_at": "2014-01-01T05:20:00.12345Z", "uid": "f174e90a-fafe-4643-bbbc-4a0ed4fc8415", "updated_at": "2014-01-01T05:20:00.12345Z" } } ```