Skip to content
Start here

Custom Pages

List custom pages
client.ZeroTrust.Access.CustomPages.List(ctx, params) (*V4PagePaginationArray[CustomPageWithoutHTML], error)
GET/accounts/{account_id}/access/custom_pages
Get a custom page
client.ZeroTrust.Access.CustomPages.Get(ctx, customPageID, query) (*CustomPage, error)
GET/accounts/{account_id}/access/custom_pages/{custom_page_id}
Create a custom page
client.ZeroTrust.Access.CustomPages.New(ctx, params) (*CustomPageWithoutHTML, error)
POST/accounts/{account_id}/access/custom_pages
Update a custom page
client.ZeroTrust.Access.CustomPages.Update(ctx, customPageID, params) (*CustomPageWithoutHTML, error)
PUT/accounts/{account_id}/access/custom_pages/{custom_page_id}
Delete a custom page
client.ZeroTrust.Access.CustomPages.Delete(ctx, customPageID, body) (*AccessCustomPageDeleteResponse, error)
DELETE/accounts/{account_id}/access/custom_pages/{custom_page_id}
ModelsExpand Collapse
type CustomPage struct{…}
CustomHTML string

Custom page HTML.

Name string

Custom page name.

Type CustomPageType

Custom page type.

One of the following:
const CustomPageTypeIdentityDenied CustomPageType = "identity_denied"
const CustomPageTypeForbidden CustomPageType = "forbidden"
const CustomPageTypeLogin CustomPageType = "login"
const CustomPageTypeInterstitial CustomPageType = "interstitial"
ContractVersion int64Optional

Contract version of the page’s Liquid template. Present (>= 1) marks a sanitized template; absent or 0 marks a legacy page served verbatim.

UID stringOptional

UUID.

maxLength36
type CustomPageWithoutHTML struct{…}
Name string

Custom page name.

Type CustomPageWithoutHTMLType

Custom page type.

One of the following:
const CustomPageWithoutHTMLTypeIdentityDenied CustomPageWithoutHTMLType = "identity_denied"
const CustomPageWithoutHTMLTypeForbidden CustomPageWithoutHTMLType = "forbidden"
const CustomPageWithoutHTMLTypeLogin CustomPageWithoutHTMLType = "login"
const CustomPageWithoutHTMLTypeInterstitial CustomPageWithoutHTMLType = "interstitial"
ContractVersion int64Optional

Contract version of the page’s Liquid template. Present (>= 1) marks a sanitized template; absent or 0 marks a legacy page served verbatim.

UID stringOptional

UUID.

maxLength36
Warnings []CustomPageWithoutHTMLWarningOptional

Advisory validation findings returned when creating or updating a template. Omitted when empty.

Message string

Human-readable description of the finding.

Tier string

The validation tier that produced the finding (e.g. html, liquid).

Ref stringOptional

Optional pointer to the part of the template the finding refers to.