> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.tradeguardins.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.tradeguardins.com/_mcp/server.

# Upload Links

> Give a subcontractor a link to upload their documents to you, without an account and without TradeGuard emailing them.

# Upload links

An **upload link** is a link to the TradeGuard sub portal that you send to your subcontractor yourself. The sub opens it, sees what **your organization** still needs from them, and uploads. No account, no password.

It is built for organizations where **you collect documents yourself** (see [Who collects documents](/getting-started/who-collects-documents)): TradeGuard never emails, texts or calls anyone about an upload link. Upload links are only available in "You collect" mode: if TradeGuard collects for you, the request returns `409` and TradeGuard sends the sub its own portal link instead.

## Create one

```bash
curl -X POST https://api.tradeguardins.com/v1/subcontractors/$SUB_ID/upload-link \
  -H "Authorization: Bearer $TRADEGUARD_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"expiresInDays": 30}'
```

```json
{
  "data": {
    "id": "6f1c…",
    "url": "https://app.tradeguardins.com/portal/open?token=tgpl_live_…",
    "kind": "upload",
    "subcontractorId": "…",
    "organizationId": "…",
    "expiresAt": "2026-11-26T17:00:00.000Z",
    "revokedPrevious": 0
  }
}
```

Send `url` to the sub by email, text or inside your own app. Needs the `subcontractors:write` scope.

* **The URL is shown once.** TradeGuard keeps only a hash of it. If you lose it, create another.
* **It works until `expiresAt`** (default 30 days; `expiresInDays` from 1 to 90), on any number of devices. Each device stays signed in for 30 days.
* **It shows only your organization.** If the sub also works for other TradeGuard customers, they don't see those customers here, and the upload goes to you only.
* **Turn links off** with `revokePrevious: true` when you create a new one, or `DELETE /v1/subcontractors/{subcontractorId}/upload-link` to turn them all off and sign out every device that opened one.

In the web app, the subcontractor's page has a **Copy upload link** button that does the same.

## What the sub sees

* Your organization's name and a status: **All set**, **Items needed** or **Under review**.
* One line per open issue, with the same `whatsWrong` and `whatToAskFor` text you get from `GET /v1/issues`.
* An upload button. The sub can choose the document type (certificate of insurance by default).
* The contact you have for them, which they can correct.
* English or Spanish.

Because you collect documents yourself, there is **no Messages tab** and no **Have my broker send it** button for your organization: TradeGuard doesn't write to your subs.

## What happens on upload

An upload through the link is the same as you uploading the file with `POST /v1/subcontractors/{subcontractorId}/documents`: same size and file-type limits, same reading and checks, same `document.*`, `compliance.*` and `issue.*` webhooks. The document records that the sub sent it through the portal (`submittedByRole: sub`, `submittedVia: portal`).

## When a link has expired

The sub sees "This upload link has expired. Ask the company that sent it for a new one." TradeGuard can't email them a fresh one for you. Create a new link and send it.