Skip to navigation

Other Documents (W-9, OSHA, First Aid…)

Other documents: W-9, OSHA cards, First Aid and more

Preview, not ready for production use. AI checks on documents other than the certificate of insurance are still being finished, and results and fields may change. Build on certificate of insurance checks today, and talk to TradeGuard before relying on these in production.

Besides the certificate of insurance, TradeGuard reads and checks these documents with AI:

DocumentdocumentCategorydocumentType
W-9tax_formw9 (default)
Workers’ comp exemption letterworkers_compensation_exemptionwc_exemption (default)
OSHA 10 / 30 cardtraining_certosha_card
First Aid / CPR cardtraining_certfirst_aid_cpr
Lift safety (aerial lift, forklift)training_certlift_safety
Safety policysafety_policysafety_policy (default)
Signed agreementagreementagreement (default)

Licenses aren’t on this list: TradeGuard checks them against state licensing records (a license report requirement), like the Secretary of State check. You can still upload a license file with documentCategory: license; it’s stored, not read.

Background checks and Level II screenings aren’t on this list either: they’ll run directly through the background check API, not from an uploaded file. You can still upload one with documentCategory: background_check (no documentType needed); it’s stored for your records, never read by AI, and a requirement can’t ask for it.

documentType is required for training_cert, which holds more than one kind of document. Each kind is its own slot: uploading a First Aid card doesn’t replace the subcontractor’s OSHA card.

Uploading

Use any of the three upload paths with documentCategory and documentType. For example, with multipart:

curl -X POST https://api.tradeguardins.com/v1/subcontractors/$SUB_ID/documents \
-H "Authorization: Bearer $TRADEGUARD_API_KEY" \
-F file=@osha30.jpg \
-F documentCategory=training_cert \
-F documentType=osha_card

PDFs and photos (JPEG, PNG, HEIC and so on) are accepted. Word and Excel files aren’t yet: save them as PDF first.

What TradeGuard reads

The AI reads the document once, when it’s uploaded. It checks that it really is the kind of document it was uploaded as, then reads who it’s issued to, the issue and expiration dates, and the fields that matter for that kind (for a W-9: the name, tax classification, whether a TIN is shown, the signature and date; for an OSHA card: whether it’s OSHA 10 or 30). A W-9’s TIN is kept as its last 4 digits only.

A document goes to TradeGuard review (see Documents Held for Review) instead of counting when:

  • it doesn’t look like the kind it was uploaded as (a First Aid card uploaded as an OSHA card),
  • the AI isn’t confident in what it read (a blurry photo, or dates that disagree with each other), or
  • a check can’t be settled from the document, for example an OSHA course completion certificate from a training provider instead of the official card.

Requiring one on a profile

Create a requirement with the document’s category and criteria.documentType. All criteria fields are optional except documentType where noted above.

{
"title": "OSHA 30 Card",
"documentCategory": "training_cert",
"scopeLevel": "entity",
"criteria": { "documentType": "osha_card", "minOshaLevel": 30 }
}
FieldMeaning
documentTypeWhich kind of document.
minOshaLevelOSHA cards only: 10 or 30. An OSHA 30 card meets a 10 requirement.
refreshEveryMonthsFor a document with no printed expiration date: ask for a new one this many months after it was issued (or uploaded, when it shows no date). Leave it out and such a document stays valid.

In the dashboard, pick Other document when you add a requirement.

How it’s checked

Each requirement shows one row per check, like the certificate checks (Reading Compliance Results):

Row (field)Passes when
Right kind of document (document_type)The AI agrees it’s the kind of document required. Otherwise it’s held for review.
Readable (overall_confidence)Shown only when the AI couldn’t read the document with confidence. It’s held for review.
Dates readable (dates_unclear)Shown only when the AI flags a key date it can’t read with certainty, like a worn digit or unclear handwriting. It’s held for review.
One row per rule for that kind (rules.<key>, for example rules.w9_signed)The document meets that rule. A rule the AI couldn’t settle goes to review.
Issued to the sub (issued_to.name)For business documents (W-9, exemption letter, safety policy, agreement): the name matches the subcontractor’s legal name, DBA or owner. A mismatch goes to review.
OSHA level (fields.osha_level)The card’s level is at least minOshaLevel.
Not expired (expiration_date) or Up to date (issue_date)The printed expiration hasn’t passed, or the document is newer than refreshEveryMonths.

With nothing uploaded the requirement shows Awaiting document.

Expiration alerts

Not every document has an expiration date. When one is printed (some workers’ comp exemption letters, First Aid cards, lift certifications), or the document states how long it’s valid (“good for one year from the date notarized”, counted from that date), TradeGuard tracks it:

  • compliance.expiring_soon fires 30, 14, 7 and 1 days before, while the requirement is met.
  • compliance.expired fires the day after, and the requirement turns expired so a new document can be collected.

These events carry complianceRecordId, requirementId, requirementTitle, subcontractorId, organizationId, documentCategory, documentType, documentId and expirationDate (and daysUntilExpiration for expiring_soon). Insurance expirations send the same event types keyed by coverageId instead.