## Create a custom page **post** `/accounts/{account_id}/access/custom_pages` Create a custom page ### Path Parameters - `account_id: string` Identifier. ### Body Parameters - `custom_html: string` Custom page HTML. - `name: string` Custom page name. - `type: "identity_denied" or "forbidden"` Custom page type. - `"identity_denied"` - `"forbidden"` ### Returns - `errors: array of object { code, message, documentation_url, source }` - `code: number` - `message: string` - `documentation_url: optional string` - `source: optional object { pointer }` - `pointer: optional string` - `messages: array of object { code, message, documentation_url, source }` - `code: number` - `message: string` - `documentation_url: optional string` - `source: optional object { pointer }` - `pointer: optional string` - `success: true` Whether the API call was successful. - `true` - `result: optional CustomPageWithoutHTML` - `name: string` Custom page name. - `type: "identity_denied" or "forbidden"` Custom page type. - `"identity_denied"` - `"forbidden"` - `uid: optional string` UUID. ### Example ```http curl https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/access/custom_pages \ -H 'Content-Type: application/json' \ -H "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \ -d '{ "custom_html": "

Access Denied

", "name": "name", "type": "identity_denied" }' ``` #### 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" } } ```