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.

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
- 01Firm admin: sees every client, manages staff and settings.
- 02Firm staff: sees the clients they are assigned to. A junior designer does not need the law firm client's contracts.
- 03Client admin: the main contact. Can invite colleagues from their own company and approve work.
- 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.
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.
