Skip to content
AI-powered appsNewChat, vision, voice, generationBookings & schedulingAppointments that book themselvesShops & sellingA storefront in every pocketClient & businessRun the operation from one placeCommunities & clubsA home that is not a group chat
Health & wellnessHabits, tracking and calmGames2D, 3D and multiplayerPersonal & toolsThe tool you wish existedInternal toolsThe tool ops never had time for
See all use cases
ArcadeNewPricingSecurity
EngineThe game engine and World EditorHow it worksFrom one sentence to a live productDocsGuides for building and publishingBlogStories, guides and newsChangelogWhat shipped latelyStatusUptime of every serviceSupportGet help from the team
AI-powered appsBookings & schedulingShops & sellingClient & businessCommunities & clubsHealth & wellnessGamesPersonal & toolsInternal tools
See all use cases
ArcadeNewPricingSecurity
EngineHow it worksDocsBlogChangelogStatusSupport
Language
Blog
GuidesNovember 22, 20266 min read

How to Build a Client Portal

A client portal replaces the email thread with one private room per client. The hard part is not the screens, it is making sure no client ever sees another one's files.

Startbase Team
Editorial ink illustration of a mail slot in a wooden door with a sealed envelope and a hanging key, the wax seal in ember orange

Key takeaways

  • Every row and every file belongs to a client account. Access is decided by membership in that account, enforced in the database and storage rules.
  • Keep files in private storage and hand out short-lived signed links. A public file URL is a leak waiting for a forwarded email.
  • Approvals are records with a version, a decision and a timestamp. That record is what settles "you approved this" disputes later.

To build a client portal, give each client their own account in your app, attach everything (files, messages, approval requests, invoices) to that account, and let people in only through membership. Clients sign in and see their room; your team sees all rooms. Store files in a private bucket and serve them through links that expire. Get that access model right and a simple portal with four screens will replace a lot of email.

What a portal replaces

Agencies, accountants, architects, coaches, lawyers and consultants all end up with the same mess: the latest logo file is in a thread from three weeks ago, the client approved the draft "on a call", and nobody can find the signed contract. A portal fixes three specific problems:

  • One place for files, with versions, so "the final final v3" stops existing.
  • A written record of decisions: what was approved, which version, by whom, when.
  • Status without asking: the client can see where their project stands without emailing you.

If your portal does not clearly beat email at these three, clients will keep emailing. Everything else is extra.

The data model

  • client_accounts: the company or person you serve. Name, logo, status (active, archived).
  • memberships: user, client account, role. Your staff can be members of many accounts; client users usually belong to one.
  • projects: client account, name, stage (for example kickoff, in progress, review, delivered), due date.
  • files: project, folder, storage path, uploaded by, version number, and a link to the file it replaces.
  • messages: project, author, body, created at, and a read marker per person.
  • approval_requests: project, the exact file version being approved, requested by, due date, decision (pending, approved, changes requested), decided by, decided at, comment.

Notice that every table leads back to a client account. That single path is what makes the security rule simple: "you can see this row if you are a member of its client account". Any table that does not connect to an account is a table you will forget to protect.

Roles that match how firms work

  1. 01Firm admin: sees every client, manages staff and settings.
  2. 02Firm staff: sees the clients they are assigned to. A junior designer does not need the law firm client's contracts.
  3. 03Client admin: the main contact. Can invite colleagues from their own company and approve work.
  4. 04Client member: can view, upload and message, but not approve. Useful when the marketing intern uploads assets but only the director signs off.

Start with these four and resist inventing more. In Startbase Cloud, user roles can be stored per user (the Auth docs describe the Member and Admin role kept in a user's metadata), but the per-client roles above belong in your own memberships table, because one person can be an admin for one client and a plain member for another.

Files done right

Files are the heart of most portals and the place leaks happen. The safe pattern has three parts:

  • A private bucket. In Startbase Cloud storage, new buckets are always private, and making one public asks you to confirm. Leave it private.
  • Paths by client. Store files under the client account id, for example client-id/project-id/filename. Storage rules can then check membership from the path.
  • Signed links. When someone clicks Download, the app checks they belong to the account and creates a signed URL. In Startbase Cloud those links are valid for one hour, so a forwarded link stops working the same afternoon.

Versions matter more than folders. When a client uploads a new logo, keep the old one and link them. The approval request points at a specific version, so approving v2 never silently approves v3. The Storage docs cover buckets, folders and signed URLs, including the 15 MB limit for uploads made from the Backend tab itself.

Tip

Before you invite a real client, create two test client accounts, upload a file to each, sign in as a user of the first and paste the second account's project link and file link. Both should fail. Then try it again after the signed link has expired.

Approvals as evidence

An approval button is easy to build and easy to build badly. A good one records the decision against one file version, captures who clicked it and when, requires a comment for "changes requested", and cannot be edited afterwards (a new decision is a new row). Email the requester when a decision lands. When a client later says they never approved the blue version, you have a dated record instead of a memory.

Getting clients through the door

The best portal fails if clients never sign in. Most of them will visit a few times a month, so passwords are a poor fit: they forget them, reset them, and email you the file instead. Magic link sign-in (an emailed link, no password) suits portals well, and it is on by default in Startbase Cloud alongside email and password.

  • Invite, do not open signups. Your staff create the client account and invite the main contact by email. Turn on invite-only mode so strangers cannot register at all.
  • Land them somewhere useful. The first screen after sign-in should be their project with the newest file or the pending approval at the top, not an empty dashboard.
  • Brand the emails. Invitations and sign-in links that come from your own domain get opened; a generic sender looks like phishing. The Emails section lets you connect a sending domain and edit the invite and magic link templates.
  • Deep links in every notification. "New file in Spring campaign" should open that file after sign-in, not the home page.

Paste this brief

Build a client portal web app for a small branding agency. Each client has a client account; users join accounts through memberships with roles firm admin, firm staff, client admin and client member. Firm staff see only accounts they are assigned to. Each account has projects with a stage and due date, a file area with folders and versioned files stored in a private bucket under the account id, a message thread per project with unread markers, and approval requests tied to one exact file version with approved or changes requested (comment required), decided by and decided at, never editable after the decision. Downloads use signed links. Client admins can invite colleagues. Send an email when an approval is requested or decided. Enforce every rule with row level security and storage policies.

After the first build, run the two-account test above, then ask the agent to run a security scan. The Backend tab's Security section checks for tables without row level security and other common gaps, and each finding can go straight to the agent to fix.

What to skip in version one

  • E-signatures. Legally binding signatures have rules of their own. Link to a dedicated signing service and upload the signed copy.
  • Live chat. A message thread with email alerts is enough. Clients do not expect instant replies from a portal.
  • White-label domains for each client. One portal on your own domain (custom domains are on paid plans) is plenty.
  • Built-in invoicing. Show invoices as files or links from your accounting tool until volume justifies more.

If you are building this for your own firm, it sits in the same family as the tools in our internal tools guide: small, specific, and worth more than a generic platform because it fits exactly how you work. Hiring a developer vs an AI app builder compares the cost of building it either way.

Frequently asked questions

What should a client portal include?

At minimum: secure sign-in, one space per client, file sharing with versions, a message thread and approval requests. Project status and invoices are common next steps.

How do I keep clients from seeing each other's files?

Tie every record and file to a client account, store files in a private bucket under that account's folder, and enforce membership checks in database and storage policies. Serve downloads through signed links that expire.

Is a client portal different from a project management app?

Yes. A project management app is built for your team's internal work. A portal is built for the client: fewer features, stricter access and a clear record of files and decisions they can see.

Can clients upload large files?

Plan for it and test it. On Startbase Cloud, the documented 15 MB cap is for files uploaded by hand in the Backend tab; for bigger files the docs suggest asking the agent. Try the largest file your clients typically send (often video or print-ready PDFs) before launch, and show progress while it uploads.

On this page

  • What a portal replaces
  • The data model
  • Roles that match how firms work
  • Files done right
  • Approvals as evidence
  • Getting clients through the door
  • Paste this brief
  • What to skip in version one

Keep reading

More in Guides
Editorial ink illustration of a kitchen scale with an apple on its pan beside a notepad and a spoon, the apple in ember orange
GuidesNovember 22, 2026

How to Build a Calorie Tracker App

Calorie tracking fails when logging is slow or the numbers are wrong. Get reliable food data, make repeat meals one tap, and be honest that every number is an estimate.

6 min read
Editorial ink illustration of two tin-can telephones joined by a string across a garden fence, the knot in the string in ember orange
GuidesNovember 22, 2026

How to Build a Chat App

Chat looks simple and hides four hard problems: delivering messages live, knowing who is online, tracking who has read what, and keeping strangers from abusing it.

6 min read

Read less. Ship more.

Everything in this post is one prompt away. Describe your app and watch it build.

Start building

Apps, games, backends and publishing from one conversation.

Product

  • Features
  • Use cases
  • Pricing
  • Changelog

Resources

  • Blog
  • Docs
  • Support
  • Status
  • Security

Contact

  • w@startbase.ai
  • X / Twitter
  • LinkedIn
  • Instagram

Legal

  • Terms
  • Privacy

© 2026 Startbase. All rights reserved.