Skip to navigation

Invite a subcontractor

Starts TradeGuard’s conversation with the subcontractor for your organization. Its first email is the invite: Jake from TradeGuard tells the subcontractor what your organization needs, lists everything still missing, and links to the subcontractor’s own portal, where they can upload documents and see what’s left (no password). If they don’t respond, Jake follows up with up to three reminders, two business days apart, in the same email thread.

You don’t usually need this call: creating a subcontractor invites it automatically (see invite in that response). Use it to invite a subcontractor whose automatic invite was skipped, or to send the invite again.

  • First call: the conversation starts and the invite goes out in the next sending window (business days, 8 AM to 6 PM US Central). status is started.
  • Before the first email has gone out: nothing new is sent. status is in_progress.
  • After the first email: the invite is sent again in the same thread, at most once a day. status is resent; a second call the same day sends nothing and returns already_resent_today. The reminder schedule is unchanged.

The email goes to your organization’s contactEmail for the subcontractor, in the subcontractor’s languagePreference (English or Spanish).

Who collects documents. Invites run only when TradeGuard collects documents for your organization (Who collects documents). If your organization collects them itself, this returns 409 and nothing is sent; create an upload link (POST /v1/subcontractors/{subcontractorId}/upload-link) and send it to the subcontractor yourself.

Sandbox: no email is ever sent. The emails are written to the conversation as simulated, so you can follow the whole flow; a re-send returns status: simulated.

Side effects: the enrollment’s invitedBy and metadata.subInvite (requestedAt, requestedBy, conversationId, recipientEmail) are updated, and a subcontractor.invited audit event is written. The emails appear in the communications list once sent.

The request body is optional and ignored; a missing or non-JSON body is treated as {}. appUrl from the earlier invite flow is still accepted for compatibility but has no effect.

Requires scope subcontractors:write.

Authentication

AuthorizationBearer

Session JWT or API key (ak_...)

Path parameters

subcontractorIdstringRequiredformat: "uuid"

Request

This endpoint expects an object.
appUrlstringOptionalformat: "uri"Deprecated

No longer used; the link in the email is the subcontractor’s own portal link.

Response

The invite started, was already on its way, or was sent again
dataobjectOptional

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
429
Too Many Requests Error
500
Internal Server Error