Subcontractors
Subcontractors are the businesses you track for compliance. This section is the hub of the API: create and manage subcontractor records, enroll them in compliance profiles, and read their compliance and communication history. Adding a subcontractor invites it automatically when TradeGuard collects documents for you.
Typical flow: create a subcontractor → attach a compliance profile → upload documents → run compliance checks. Attaching or detaching a profile controls which requirements the subcontractor is evaluated against.
A subcontractor record is shared across every organization it is enrolled with (creating one with an email or phone TradeGuard already knows links the existing record to your organization); the enrollment — status, condition flags, portal invite — is yours alone.
Endpoints:
- Create a subcontractor
- List subcontractors
- Get a subcontractor
- Update a subcontractor
- Activate or deactivate a subcontractor
- Get enrollment status history
- Invite a subcontractor
- List communications sent to a subcontractor
- Create an upload link
- Turn off upload links
- Attach a compliance profile
- Detach a compliance profile
- Get compliance profile attach/detach history
- Get compliance records for a subcontractor
- Get what’s needed from a subcontractor
- List compliance runs for a subcontractor
- Get a subcontractor’s activity timeline
- Get the audit trail of every policy for a subcontractor
- List broker contacts and broker groups
- Get a policy’s broker contact
- Correct a policy’s broker contact
- Reset a policy’s broker contact to the COI
