# Client portal

> Host the client portal on your own subdomain or build your own on the portal API, preview it, and invite customers once it's ready.

- URL: https://docs.usecontour.ai/admin/client-portal/
- Section: Organization setup
- Audience: admin
- Applies to: all

The client portal is where customers see shared work, answer your questions and upload materials. It updates from the
project in real time. This page covers setup. For day-to-day sharing, see
[Customer collaboration](https://docs.usecontour.ai/platform/customer-collaboration/).

## Two ways to deliver it

- **Contour's portal**, on Contour's domain or your own subdomain. Nothing to build.
- **Your own portal**, built on the portal API, for teams that already give customers a dashboard.

The portal can't be embedded in an iframe. Branding is your organization's logo in the portal header, set by the Contour
team (email team@usecontour.ai). Colors and themes can't be changed.

## Custom domain

Serve the portal from a subdomain you own, such as `portal.yourfirm.com`. Root domains won't work.

1. In **Settings › Domains**, click **Add domain** and enter the subdomain.
2. Ask your IT team to publish the two records Contour shows:
   - A **CNAME** from your subdomain to `customers.contour.ac`.
   - A **TXT** record at `_contour-verify.<your subdomain>`, holding the token shown.
3. Verify the domain once DNS propagates. Contour then issues the certificate.

![Settings, Domains page with the four custom domain steps, Add domain, and the portal preview controls](https://docs.usecontour.ai/images/app/domains.webp)

_Settings › Domains: add a custom domain at the top, preview any project's portal below._

Keep both records in place. Removing them takes the portal offline for every customer on that domain.

## Build on the portal API

Call `/portal/v1` from your own server with an owner's or admin's API key, and send the customer's email in the
`X-Contour-Client-Email` header so each request returns only what that customer can see. The API covers projects, home,
members, files, tasks, task questions and task comments. Living documents, search and asking questions are only in
Contour's own portal. Never call it from the customer's browser.

## Before you invite customers

1. **Share the right work.** Only shared items appear. See [Customer collaboration](https://docs.usecontour.ai/platform/customer-collaboration/).
2. **Check owners and wording.** Customer action items should be owned by the right person, with titles written for the
   customer.
3. **Clean up.** Close tasks that are done or no longer relevant.
4. **Preview.** In **Settings › Domains**, under **Preview**, pick a project and who to **View as**, then click
   **Preview portal**. Nothing can be changed while you preview.

## Invite customers

Customers are external members. Use **Invite external member** in a project's **Members** settings, or **Invite people**
in **Settings › People**. Enter their email, company and projects. Invite the people who own action items and the
sponsor who wants status.
