ChannelsHelp Center & Portal

Portal custom pages

Publish your own pages on the portal, such as a contact form or a returns page.

Custom pages let you publish your own web pages on your customer portal, at your portal address or your own domain, without hosting anything yourself. Use them for a contact form, a returns or warranty page, a support landing page, or your own article interface. Each page is a complete HTML document with inline CSS and JavaScript, with no Octocom navigation or footer added, so it looks exactly the way you design it.

You don't need to write the HTML yourself. Copilot or any MCP client can write, preview and publish a page from a description. See Portal MCP tools. The customer portal must be enabled; the built-in help center is optional.

Ask Copilot or your AI agent

Build a warranty claim page at /warranty with a form for name, email, order number and a photo of the problem. Show me a preview, then publish it.

Draft, preview and published versions

In Customer portal -> Custom pages, create a page with a title, URL path and HTML. The title identifies the page in management; set the browser title inside your HTML's <title> element.

ActionEffect
Save draftPersists the draft HTML and asset references. The previously published version stays live.
PreviewCreates a temporary link to the latest saved draft without publishing it. Save your edits first.
PublishCopies the saved draft HTML and asset references to the published version together.
UnpublishRemoves the published version but keeps the draft.
DeletePermanently removes both versions. Uploaded assets are not deleted.

Draft and published content are stored separately. There is no full revision history or automatic rollback to older publications. Save your current published HTML separately if you will need to restore it later.

Preview links last 30 minutes and include a __portal_preview bearer token. Anyone with the link can view the draft. Creating a new link revokes the previous one; publishing, unpublishing or deleting also revokes it. A valid link shows the latest saved draft rather than a frozen revision. Preview can show a custom draft even when the built-in help center takes precedence at its public path.

Publishing takes effect immediately; there is nothing to deploy.

Paths and precedence

Pages match exact paths such as /, /returns or /custom/contact. A path is unique within a business. Query strings do not select a different page; trailing slashes are normalized and paths are case-sensitive.

Use ASCII letters, numbers, hyphens and underscores, with dots within path segments. Paths are limited to 512 characters. Encoded paths, dot segments and duplicate slashes are rejected. The first segments /api, /assets, /_portal, /chat, /index.html and /favicon.ico are reserved, including their descendants. /chat is the built-in hosted chat page, which works even when the portal is disabled.

Public document routing follows this order:

  1. A disabled or unknown portal returns 404.
  2. When Help center is enabled, its paths use the built-in pages: /, /articles/<slug>, /categories/<slug>, /search, /sitemap.xml, /robots.txt, /llms.txt, the older /article/<id> and /category/<id> links, and everything under an additional language's code (such as /fr/). A conflicting custom page remains stored but is shadowed.
  3. Otherwise, a published custom page at the exact path is served.
  4. An unmatched path returns 404.

Unpublishing does not redirect visitors. The path returns to its built-in behavior if applicable, otherwise 404. There are no wildcard routes, dynamic templates or redirects in custom-page management. To change an existing page's path, save a page at the new path and unpublish or delete the old one.

Code and integrations

HTML is limited to 512 KiB of UTF-8. Keep CSS and JavaScript inline; upload images, fonts and PDF downloads as portal assets. For a custom article UI, use the public article APIs. For form submissions, see the Contact form API. Server-side integration logic can use custom HTTP endpoints. For a page that records a supplier's or warehouse's decision, follow the external decisions playbook.

Custom HTML executes only in the visitor's browser. Pages cannot be embedded in iframes, and service workers are unavailable. Pages run with their address's real origin, so scripts can use local storage, session storage and IndexedDB, and can ask the visitor for the microphone, camera or location (for example for voice search). Storage and permissions belong to that one address, so other businesses' portals cannot read them.

Do not use cookies. Keep state in local storage. If a page signs visitors in, keep a short-lived token (for example a JWT) in memory or local storage and send it in an Authorization header, not in a cookie. Octocom's APIs do not use cookies, and calls to public article APIs should use credentials: "omit". If you call third-party APIs from a page, prefer ones that authenticate with a header or token rather than a cookie.

AddressCookiesOrigin
Built-in address (<business-slug>.octocom.page)Cleared on every page loadhttps://<business-slug>.octocom.page
Connected custom domainAvailable, but not recommendedYour domain, for example help.example.com

On the built-in address, every business shares the octocom.page domain, and browsers can send a cookie set by one portal to every other portal. Each time a custom page loads there, it is served with Clear-Site-Data: "cookies", which clears all octocom.page cookies, so cookies are not a reliable way to keep anything. Pages on a custom domain run with your domain's origin. Their scripts can set cookies for your other subdomains, so publish only code you trust there.

To show your web chat on a custom page, include the script from Settings -> Web Chat -> Deployment -> Copy script. It carries id="octocom-script" and your data-organization-id; a script without them does not load a chat on portal pages. Add the page's address (for example <business-slug>.octocom.page) as a deployment of the chat it should show. See Launch the chat widget.

Published HTML and its referenced assets are public. Keep credentials and private data out of them; perform authenticated integration work on the server. Published pages can be indexed by search engines; previews of unpublished changes are not. Uploaded assets are not indexed on their own.

On this page