Sub Portal
Sub portal
The sub portal is where a subcontractor sees what each of their general contractors still needs, uploads documents and writes back. It is part of the TradeGuard web app at /portal, separate from your team’s sign-in: subs never get a TradeGuard account.
How a sub gets in
There are no passwords. A sub opens the portal from a link:
- Opening a link signs that device in for 30 days. The link first shows an Open button, so an email security scanner that checks the link doesn’t use it up.
- An emailed link (sub or broker) opens one device. If it is opened again, for example because it was forwarded or the sub switched to their phone, the portal asks for the email address on file and sends a fresh link to that inbox. An answer is shown either way, so the page can’t be used to check which addresses are on file.
- An emailed link expires after 14 days if it’s never opened.
- A portal session can only read and change that sub’s own data. It can’t call the TradeGuard API: every
/v1endpoint answers401to it.
What the sub sees
One card per general contractor the sub actively works with:
- Status: All set, Items needed, or Under review (TradeGuard is reviewing something and there’s nothing to send yet). While a document is being read or checked, the card shows Checking your document instead.
- Your documents: the sub’s five most recent documents for that GC from the last 30 days, however they came in (portal, email, or added by you), each with a three-step bar (Received, Reading, Checked) and what happened: checked, held for a person to review (within 1 business day), couldn’t be read, not accepted, or replaced by a newer document. The page updates itself every few seconds while anything is in progress, so the sub never has to reload.
- What’s needed: one line per requirement on that GC’s compliance profile: what the certificate must show and the other documents to send (see What’s needed checklist). Before anything is received it’s the full list. After that, each line is marked met, still needed (with the specific problem, such as an expired policy), or being checked.
- What’s left: one line per open issue, using the issue’s
whatsWrongandwhatToAskFortext. - Upload: one file can go to several GCs at once, because a broker often issues one certificate per holder. The sub picks the document type; a certificate of insurance is the default.
- Have my broker send it: the sub types their broker’s email, and TradeGuard emails that address a link for this one GC. If the address is already on file as the broker on one of the sub’s policies, it gets a broker link: a certificate uploaded through it counts as the broker sending it, which is a verification of those policies (the same as the broker emailing it). Any other address gets an ordinary sub link limited to that GC, and TradeGuard’s review team decides whether the sender really is the broker.
- Contact details can be changed only from the sub’s own link, not from a broker link or an upload link.
- Contact: the name, email and phone that GC has for the sub. The sub can correct it; the change applies to that GC only.
- Messages: the whole conversation with TradeGuard for that GC: every email sent and received, and every portal message. A message typed here is treated like an email reply, and TradeGuard’s answer appears both by email and in the portal.
- English / Español: the sub’s choice is remembered and used for TradeGuard’s emails too.
- Sample documents (sandbox only): download a sample certificate made out to that GC, to try an upload.
If your organization collects documents itself, your card has no Messages tab and no broker button: TradeGuard never writes to your subs.
What happens on upload
Right after the upload, the portal shows Got it! We received your document and follows it through reading and checking. When the check is done, the banner shows the result: all set, what’s still needed, held for review, or couldn’t be read.
While a document for a GC is still being read or checked, the sub can’t upload another one to that GC (other GCs are unaffected). The upload button says Checking your document, and POST /portal/uploads answers 409 conflict if it’s called anyway. This usually lasts 1 to 3 minutes. If a check is still running after 15 minutes, the document shows as delayed and uploads open again.
If a document couldn’t be read, the sub can upload the same file again: TradeGuard reads it again instead of calling it a duplicate.
A portal upload goes through exactly the same steps as any other upload (size and type limits, malware scan, reading, checks, webhooks). The document records who sent it and how: submittedByRole is sub or broker, and submittedVia is portal. If TradeGuard collects for you, the sub then gets one email in the same thread: a thank-you plus anything still missing, or a closing email when everything is in.
In the sandbox
Sandbox subs use the same portal. Nothing is emailed: TradeGuard’s emails appear in the Messages tab marked as simulated, and the portal’s own emails (a fresh link, a broker link) are returned as previewUrl so you can open them while testing.
Portal endpoints (web app use)
The web app calls these on the sub’s behalf. They are not part of the customer API, and your API keys can’t call them.
