> 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.

# Get a compliance record with check logs

GET https://api.tradeguardins.com/v1/compliance/{complianceRecordId}

Returns the record with its requirement, the subcontractor, its
compliance profile enrollment (including the profile) and its 20 most
recent check-log entries. Requires scopes `subcontractors:read` and
`compliance:read`.


Reference: https://docs.tradeguardins.com/api-reference/compliance/get-compliance-record

## Authentication

- `Authorization` header (bearer token, required) — Session JWT or API key (`ak_...`)

## Request

### Path parameters

- `complianceRecordId` (string, required)

## Response

### 200

Compliance record with logs

- `data` (V1ComplianceComplianceRecordIdGetResponsesContentApplicationJsonSchemaData, optional)

## Errors

### 400 Bad Request Error

Malformed request (`bad_request`, `invalid_identifier`)

- `error` (string, required) — Human-readable message. Wording may change; do not parse it.
- `code` (enum, required) — Stable, machine-readable error code. Status-level codes: `bad_request` (400), `unauthenticated` (401), `forbidden` (403), `not_found` (404), `method_not_allowed` (405, with an `Allow` header), `conflict` (409), `gone` (410), `payload_too_large` (413), `unprocessable` (422), `rate_limited` (429), `internal_error` (500), `bad_gateway` (502), `service_unavailable` (503). Specific codes: `validation_failed` and `invalid_identifier` (400); `reextraction_limit_reached` and `llm_budget_exhausted` (429, document re-extraction only); `sandbox_unavailable` (503, a sandbox key used where the sandbox is not provisioned); `assignment_exists` (409, a live assignment for this subcontractor and project already exists — its id is in `details`), `project_not_ready` (409, the project's setup is not Ready), `project_document` (409, a baseline-only action on a project certificate) and `subcontractor_match` (409, a new subcontractor's email or phone matches one already on TradeGuard — its id is in `details`); `portal_link_expired` and `portal_link_used` (410, sub portal links only).
  - Allowed values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `conflict`, `gone`, `payload_too_large`, `unprocessable`, `rate_limited`, `internal_error`, `bad_gateway`, `service_unavailable`, `validation_failed`, `invalid_identifier`, `reextraction_limit_reached`, `llm_budget_exhausted`, `sandbox_unavailable`, `assignment_exists`, `project_not_ready`, `project_document`, `subcontractor_match`, `portal_link_expired`, `portal_link_used`
- `requestId` (string, optional) — Same value as the `x-request-id` response header.
- `details` (list of ErrorDetailsItems, optional) — Present when `code` is `validation_failed`.

### 401 Unauthorized Error

Missing, malformed, expired or revoked credential (`unauthenticated`)

- `error` (string, required) — Human-readable message. Wording may change; do not parse it.
- `code` (enum, required) — Stable, machine-readable error code. Status-level codes: `bad_request` (400), `unauthenticated` (401), `forbidden` (403), `not_found` (404), `method_not_allowed` (405, with an `Allow` header), `conflict` (409), `gone` (410), `payload_too_large` (413), `unprocessable` (422), `rate_limited` (429), `internal_error` (500), `bad_gateway` (502), `service_unavailable` (503). Specific codes: `validation_failed` and `invalid_identifier` (400); `reextraction_limit_reached` and `llm_budget_exhausted` (429, document re-extraction only); `sandbox_unavailable` (503, a sandbox key used where the sandbox is not provisioned); `assignment_exists` (409, a live assignment for this subcontractor and project already exists — its id is in `details`), `project_not_ready` (409, the project's setup is not Ready), `project_document` (409, a baseline-only action on a project certificate) and `subcontractor_match` (409, a new subcontractor's email or phone matches one already on TradeGuard — its id is in `details`); `portal_link_expired` and `portal_link_used` (410, sub portal links only).
  - Allowed values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `conflict`, `gone`, `payload_too_large`, `unprocessable`, `rate_limited`, `internal_error`, `bad_gateway`, `service_unavailable`, `validation_failed`, `invalid_identifier`, `reextraction_limit_reached`, `llm_budget_exhausted`, `sandbox_unavailable`, `assignment_exists`, `project_not_ready`, `project_document`, `subcontractor_match`, `portal_link_expired`, `portal_link_used`
- `requestId` (string, optional) — Same value as the `x-request-id` response header.
- `details` (list of ErrorDetailsItems, optional) — Present when `code` is `validation_failed`.

### 403 Forbidden Error

The credential lacks the scope or role for this action (`forbidden`)

- `error` (string, required) — Human-readable message. Wording may change; do not parse it.
- `code` (enum, required) — Stable, machine-readable error code. Status-level codes: `bad_request` (400), `unauthenticated` (401), `forbidden` (403), `not_found` (404), `method_not_allowed` (405, with an `Allow` header), `conflict` (409), `gone` (410), `payload_too_large` (413), `unprocessable` (422), `rate_limited` (429), `internal_error` (500), `bad_gateway` (502), `service_unavailable` (503). Specific codes: `validation_failed` and `invalid_identifier` (400); `reextraction_limit_reached` and `llm_budget_exhausted` (429, document re-extraction only); `sandbox_unavailable` (503, a sandbox key used where the sandbox is not provisioned); `assignment_exists` (409, a live assignment for this subcontractor and project already exists — its id is in `details`), `project_not_ready` (409, the project's setup is not Ready), `project_document` (409, a baseline-only action on a project certificate) and `subcontractor_match` (409, a new subcontractor's email or phone matches one already on TradeGuard — its id is in `details`); `portal_link_expired` and `portal_link_used` (410, sub portal links only).
  - Allowed values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `conflict`, `gone`, `payload_too_large`, `unprocessable`, `rate_limited`, `internal_error`, `bad_gateway`, `service_unavailable`, `validation_failed`, `invalid_identifier`, `reextraction_limit_reached`, `llm_budget_exhausted`, `sandbox_unavailable`, `assignment_exists`, `project_not_ready`, `project_document`, `subcontractor_match`, `portal_link_expired`, `portal_link_used`
- `requestId` (string, optional) — Same value as the `x-request-id` response header.
- `details` (list of ErrorDetailsItems, optional) — Present when `code` is `validation_failed`.

### 404 Not Found Error

Resource not found, or not visible to the caller's organization (`not_found`)

- `error` (string, required) — Human-readable message. Wording may change; do not parse it.
- `code` (enum, required) — Stable, machine-readable error code. Status-level codes: `bad_request` (400), `unauthenticated` (401), `forbidden` (403), `not_found` (404), `method_not_allowed` (405, with an `Allow` header), `conflict` (409), `gone` (410), `payload_too_large` (413), `unprocessable` (422), `rate_limited` (429), `internal_error` (500), `bad_gateway` (502), `service_unavailable` (503). Specific codes: `validation_failed` and `invalid_identifier` (400); `reextraction_limit_reached` and `llm_budget_exhausted` (429, document re-extraction only); `sandbox_unavailable` (503, a sandbox key used where the sandbox is not provisioned); `assignment_exists` (409, a live assignment for this subcontractor and project already exists — its id is in `details`), `project_not_ready` (409, the project's setup is not Ready), `project_document` (409, a baseline-only action on a project certificate) and `subcontractor_match` (409, a new subcontractor's email or phone matches one already on TradeGuard — its id is in `details`); `portal_link_expired` and `portal_link_used` (410, sub portal links only).
  - Allowed values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `conflict`, `gone`, `payload_too_large`, `unprocessable`, `rate_limited`, `internal_error`, `bad_gateway`, `service_unavailable`, `validation_failed`, `invalid_identifier`, `reextraction_limit_reached`, `llm_budget_exhausted`, `sandbox_unavailable`, `assignment_exists`, `project_not_ready`, `project_document`, `subcontractor_match`, `portal_link_expired`, `portal_link_used`
- `requestId` (string, optional) — Same value as the `x-request-id` response header.
- `details` (list of ErrorDetailsItems, optional) — Present when `code` is `validation_failed`.

### 429 Too Many Requests Error

Rate limit exceeded (`rate_limited`); retry after `Retry-After` seconds

- `error` (string, required) — Human-readable message. Wording may change; do not parse it.
- `code` (enum, required) — Stable, machine-readable error code. Status-level codes: `bad_request` (400), `unauthenticated` (401), `forbidden` (403), `not_found` (404), `method_not_allowed` (405, with an `Allow` header), `conflict` (409), `gone` (410), `payload_too_large` (413), `unprocessable` (422), `rate_limited` (429), `internal_error` (500), `bad_gateway` (502), `service_unavailable` (503). Specific codes: `validation_failed` and `invalid_identifier` (400); `reextraction_limit_reached` and `llm_budget_exhausted` (429, document re-extraction only); `sandbox_unavailable` (503, a sandbox key used where the sandbox is not provisioned); `assignment_exists` (409, a live assignment for this subcontractor and project already exists — its id is in `details`), `project_not_ready` (409, the project's setup is not Ready), `project_document` (409, a baseline-only action on a project certificate) and `subcontractor_match` (409, a new subcontractor's email or phone matches one already on TradeGuard — its id is in `details`); `portal_link_expired` and `portal_link_used` (410, sub portal links only).
  - Allowed values: `bad_request`, `unauthenticated`, `forbidden`, `not_found`, `method_not_allowed`, `conflict`, `gone`, `payload_too_large`, `unprocessable`, `rate_limited`, `internal_error`, `bad_gateway`, `service_unavailable`, `validation_failed`, `invalid_identifier`, `reextraction_limit_reached`, `llm_budget_exhausted`, `sandbox_unavailable`, `assignment_exists`, `project_not_ready`, `project_document`, `subcontractor_match`, `portal_link_expired`, `portal_link_used`
- `requestId` (string, optional) — Same value as the `x-request-id` response header.
- `details` (list of ErrorDetailsItems, optional) — Present when `code` is `validation_failed`.

## Types

### V1ComplianceComplianceRecordIdGetResponsesContentApplicationJsonSchemaData

- `id` (string, optional)
- `subcontractorId` (string, optional)
- `requirementId` (string, optional)
- `complianceProfileEnrollmentId` (string, optional)
- `status` (enum, optional)
  - Allowed values: `pending`, `compliant`, `compliant_pending_verification`, `non_compliant`, `expired`, `under_review`, `not_applicable`
- `met` (boolean, optional) — Whether the requirement is actually met. A track-only requirement (`enforcementLevel: preferred`) never blocks, so one the subcontractor doesn't meet still reads `status: compliant`; `met` is `false` for it. `met` is `true` for `compliant` and `compliant_pending_verification` otherwise (including a manual override to compliant), and `false` for every other status.
- `statusReason` (string, optional, nullable)
- `lastCheckedAt` (datetime, optional, nullable)
- `nextCheckAt` (datetime, optional, nullable)
- `expiresAt` (datetime, optional, nullable)
- `checkResult` (CheckResultDetails, optional) — The evaluation behind a compliance record's status. Extra properties may appear.
- `overrideStatus` (enum, optional, nullable) — Set while a manual override is in force (compliant or non_compliant).
  - Allowed values: `pending`, `compliant`, `compliant_pending_verification`, `non_compliant`, `expired`, `under_review`, `not_applicable`
- `overrideReason` (string, optional, nullable)
- `overrideBy` (string, optional, nullable) — Operator identity (Clerk user id or API key subject).
- `overrideByType` (enum, optional, nullable)
  - Allowed values: `user`, `api_key`
- `overrideAt` (datetime, optional, nullable)
- `overrideFingerprint` (string, optional, nullable) — Internal evidence hash; do not rely on its format.
- `metadata` (V1ComplianceComplianceRecordIdGetResponsesContentApplicationJsonSchemaDataMetadata, optional)
- `createdAt` (datetime, optional)
- `updatedAt` (datetime, optional)
- `checkLogs` (list of ComplianceCheckLog, optional) — Newest first, at most 20.
- `requirement` (Requirement, optional)
- `subcontractor` (Subcontractor, optional) — Shared company details plus your organization's own contact, `externalId` and `metadata` (never another organization's).
- `complianceProfileEnrollment` (V1ComplianceComplianceRecordIdGetResponsesContentApplicationJsonSchemaDataComplianceProfileEnrollment, optional) — A subcontractor's attachment to a compliance profile (GC-level when `projectId` is null).

### ErrorDetailsItems

- `path` (string, optional)
- `message` (string, optional)

### CheckResultDetails

The evaluation behind a compliance record's status. Extra properties may appear.

- `documentCategory` (string, optional)
- `policyType` (string, optional, nullable)
- `criteria` (CheckResultDetailsCriteria, optional) — The requirement criteria evaluated.
- `checkedAt` (datetime, optional)
- `criteriaResults` (list of CriterionResult, optional)
- `passRate` (CheckResultDetailsPassRate, optional)
- `warnings` (list of string, optional)
- `informationNeeded` (list of ReportInformationNeeded, optional) — A Secretary of State or license check that can't run yet ("Waiting on information"), and what to add to the subcontractor.
- `licenseDetermination` (CheckResultDetailsLicenseDetermination, optional) — For a license check on a subcontractor with no license number, TradeGuard's research on whether this trade needs a license where they work, with its sources.
- `enforcement` (CheckResultDetailsEnforcement, optional) — How the requirement's enforcement level shaped this verdict.
- `changesSinceLastCheck` (list of string, optional) — What changed since the previous Secretary of State or license check, e.g. an entity that is no longer active or a registered name that changed.

### V1ComplianceComplianceRecordIdGetResponsesContentApplicationJsonSchemaDataMetadata

### ComplianceCheckLog

- `id` (string, optional)
- `complianceRecordId` (string, optional)
- `complianceRunId` (string, optional, nullable)
- `triggeredBy` (enum, optional)
  - Allowed values: `scheduled`, `manual`, `webhook`, `onboarding`
- `previousStatus` (enum, optional, nullable)
  - Allowed values: `pending`, `compliant`, `compliant_pending_verification`, `non_compliant`, `expired`, `under_review`, `not_applicable`
- `newStatus` (enum, optional)
  - Allowed values: `pending`, `compliant`, `compliant_pending_verification`, `non_compliant`, `expired`, `under_review`, `not_applicable`
- `checkResult` (CheckResultDetails, optional) — The evaluation behind a compliance record's status. Extra properties may appear.
- `notes` (string, optional, nullable)
- `actorType` (enum, optional, nullable) — Set for manual overrides and clears only.
  - Allowed values: `user`, `api_key`
- `actorId` (string, optional, nullable)
- `criteriaHash` (string, optional, nullable)
- `criteriaSnapshot` (ComplianceCheckLogCriteriaSnapshot, optional, nullable)
- `requirementVersion` (integer, optional, nullable) — The requirement `version` this decision was evaluated against.
- `performedAt` (datetime, optional)

### Requirement

- `id` (string, optional)
- `complianceProfileId` (string, optional)
- `title` (string, optional)
- `reportSource` (enum, optional, nullable) — Set when this requirement is scored from a report source; null for document requirements
  - Allowed values: `cobalt_sos`, `tradesapi_license`, `jdp_background`, `web_research`
- `reportDimension` (string, optional, nullable) — The findings dimension the scoring rules read (license_valid, business_standing, background_clear, …)
- `description` (string, optional, nullable)
- `aiContext` (string, optional, nullable)
- `documentCategory` (enum, optional) — Category of a document or of the evidence a requirement asks for. The three upload paths accept every value except `business_registration` (used by report requirements), `notice_of_cancellation` and `certificate` (the profile's "Certificate checks" requirement, which reads the insurance certificate).
  - Allowed values: `insurance`, `business_registration`, `license`, `background_check`, `training_cert`, `tax_form`, `agreement`, `endorsement`, `notice_of_cancellation`, `workers_compensation_exemption`, `certificate`, `safety_policy`
- `policyType` (enum, optional, nullable) — The policy a requirement asks for or a coverage holds. The first four are the ACORD 25's own sections. The rest are the policies a broker types into the certificate's blank rows (professional liability, pollution, builder's risk, crime, inland marine, ...): TradeGuard reads each blank row, recognizes its type and stores it as coverage of that type. Excess liability typed into a blank row counts as `umbrella`; a blank row whose type isn't in this list is still checked by "every policy active" but can't be required. See [Other policy types](/getting-started/other-policy-types).
  - Allowed values: `general_liability`, `workers_comp`, `automobile_liability`, `umbrella`, `professional_liability`, `medical_malpractice`, `directors_and_officers`, `employment_practices_liability`, `fiduciary_liability`, `cyber`, `technology_errors_omissions`, `media_liability`, `pollution_liability`, `liquor_liability`, `products_liability`, `owners_contractors_protective`, `railroad_protective`, `abuse_and_molestation`, `employee_benefits_liability`, `stop_gap_liability`, `foreign_liability`, `garage_liability`, `garagekeepers`, `riggers_liability`, `crime`, `fidelity_bond`, `surety_bond`, `commercial_property`, `builders_risk`, `installation_floater`, `equipment_floater`, `leased_rented_equipment`, `inland_marine`, `ocean_marine`, `motor_truck_cargo`, `cargo`, `warehouse_legal_liability`, `bailees_coverage`, `business_interruption`, `equipment_breakdown`, `flood`, `earthquake`, `physical_damage`, `trailer_interchange`, `non_trucking_liability`, `contingent_liability`, `occupational_accident`, `aviation`, `watercraft`, `uslh`, `maritime_employers_liability`, `disability`, `accident_health`
- `scopeLevel` (enum, optional)
  - Allowed values: `entity`, `individual`
- `enforcementLevel` (enum, optional) — `required` (default) must be met. `preferred` is **Track only (don't require)**: it never affects compliance, and when the subcontractor meets it the subcontractor gets a tag (the requirement's title, e.g. "Has auto" or "OSHA 30") shown in `tags` and filterable with `GET /v1/subcontractors?tag=`; an expired item drops its tag. `conditional` applies only when the requirement's `conditionKey` is set as a condition flag on the subcontractor's enrollment or project (otherwise the record is `not_applicable`). On input, `track_only` is accepted as `preferred`, and `baseline` (the retired name of `required`) as `required`; responses always use `required`, `preferred` or `conditional`.
  - Allowed values: `required`, `preferred`, `conditional`
- `conditionKey` (string, optional, nullable)
- `requireNameMatch` (boolean, optional)
- `requireGcNameMatch` (boolean, optional)
- `trackExpiration` (boolean, optional)
- `collectFullPolicy` (boolean, optional)
- `collectSignature` (boolean, optional)
- `verificationCadence` (enum, optional)
  - Allowed values: `monthly`, `quarterly`, `on_change`, `on_expiration`, `one_time`
- `verificationMethod` (enum, optional, nullable)
  - Allowed values: `call_producer`, `collect_receipt`
- `criteria` (RequirementCriteria, optional) — The rule this requirement checks. Its shape depends on `documentCategory`. For `certificate` (the profile's "Certificate checks" requirement) it is `CertificateChecksCriteria`. Every new compliance profile gets one automatically, and a profile has at most one. Switch a check off with [Update a requirement](https://docs.tradeguardins.com/api-reference/requirements/update-requirement) (or in the dashboard), or delete the requirement to drop all four. For insurance requirements: `limits` (minimums per limit key), `expiration`, `accept_exemption` (workers comp) and `policyRules` (rules beyond the limits; see [Policy rules](/getting-started/policy-rules)). For a policy type beyond GL, auto, workers comp and umbrella, the limit keys are `each_claim_or_occurrence` (the per-claim limit, else per occurrence, else the row's single limit), `aggregate`, `each_claim` and `each_occurrence`, e.g. `{"limits": {"each_claim_or_occurrence": {"min": 1000000}}}`; see [Other policy types](/getting-started/other-policy-types). For an `endorsement` requirement it holds one `endorsement` object, see `EndorsementCriteria`. Every shape is listed under `RequirementCriteria`.
- `version` (integer, optional) — Incremented whenever decision-relevant fields such as `criteria` change; compliance check logs record the version they were evaluated against.
- `isActive` (boolean, optional)
- `sortOrder` (integer, optional)
- `createdAt` (datetime, optional)
- `updatedAt` (datetime, optional)
- `deletedAt` (datetime, optional, nullable)

### Subcontractor

Shared company details plus your organization's own contact, `externalId` and `metadata` (never another organization's).

- `id` (string, optional)
- `externalId` (string, optional, nullable) — Your organization's own ID for the subcontractor.
- `contactName` (string, optional, nullable) — Your organization's contact person for the subcontractor.
- `entityType` (enum, optional)
  - Allowed values: `sole_proprietor`, `llc`, `s_corp`, `c_corp`, `partnership`, `other`
- `companyName` (string, optional, nullable)
- `dba` (string, optional, nullable) — The subcontractor's "doing business as" name. A certificate whose insured is the DBA matches the subcontractor. Shared across organizations.
- `firstName` (string, optional, nullable)
- `lastName` (string, optional, nullable)
- `contactEmail` (string, optional) — Your organization's contact email for the subcontractor (invites and notices go here).
- `contactPhone` (string, optional) — Your organization's contact phone, E.164 format
- `communicationPreference` (enum, optional)
  - Allowed values: `email`, `sms`, `both`
- `languagePreference` (enum, optional)
  - Allowed values: `en`, `es`
- `tradeCategory` (enum, optional, nullable) — Optional trade/discipline of the subcontractor. Optional for API clients; the general-contractor web UI requires it when creating a subcontractor.
  - Allowed values: `electrical`, `plumbing`, `hvac`, `concrete`, `masonry`, `framing`, `roofing`, `drywall`, `painting`, `flooring`, `excavation`, `steel`, `landscaping`, `general`, `other`
- `ein` (string, optional, nullable) — Employer Identification Number, normalized to `NN-NNNNNNN`
- `website` (string, optional, nullable)
- `businessAddress` (BusinessAddress, optional, nullable) — Establishes the licensing jurisdiction for license verification
- `ownerName` (string, optional, nullable)
- `ownerEmail` (string, optional, nullable)
- `ownerPhone` (string, optional, nullable) — E.164 format
- `metadata` (SubcontractorMetadata, optional)
- `createdAt` (datetime, optional)
- `updatedAt` (datetime, optional)
- `environment` (enum, optional) — Sandbox subcontractors are a separate set from production ones; a sandbox organization can never see or enroll a production subcontractor.
  - Allowed values: `production`, `sandbox`

### V1ComplianceComplianceRecordIdGetResponsesContentApplicationJsonSchemaDataComplianceProfileEnrollment

A subcontractor's attachment to a compliance profile (GC-level when `projectId` is null).

- `id` (string, optional)
- `subcontractorId` (string, optional)
- `complianceProfileId` (string, optional)
- `projectId` (string, optional, nullable)
- `attachedAt` (datetime, optional)
- `detachedAt` (datetime, optional, nullable)
- `complianceProfile` (ComplianceProfile, optional)

### CheckResultDetailsCriteria

The requirement criteria evaluated.

### CriterionResult

One check on a compliance record: what was required, what the certificate shows, and the outcome. `passed` is true exactly when `outcome` is `pass` or `waived`. Rows written before TG-1307 have only `key`, `passed`, `expected`, `actual` and `message`.

- `key` (string, required) — Stable id of the check, e.g. `limit:each_occurrence`, `endorsement:additional_insured`, `expiration_date`.
- `passed` (boolean, required)
- `expected` (any, required) — The requirement's value (any JSON type).
- `actual` (any, required) — The value found, or `null` when it is not on the certificate (any JSON type).
- `message` (string, required) — Plain-English line built from the values (never AI-written).
- `field` (string, optional) — Certificate field the value came from, e.g. `general_liability.each_occurrence`.
- `label` (string, optional) — Plain-English name of the check, e.g. `Each Occurrence`.
- `rule` (string, optional) — Comparison used, e.g. `gte` (at least), `lte` (at most), `equals`, `one_of`, `present`, `includes`, `name_match`, `not_expired`. New values may be added.
- `outcome` (enum, optional) — The outcome of one check (TG-1307). `pass` / `fail`: the certificate clearly does or doesn't meet the requirement. `not_on_certificate`: the field is blank on the certificate (never read as 0 or "no"); not passing. `needs_review`: the system couldn't tell what the certificate says (read with under 70% confidence, or ambiguous); a TradeGuard operator decides, and the record reads `under_review` meanwhile. `waived`: the check is waived for this policy; counts as passing. `waiting_on_sub`: waiting on an answer from the subcontractor; not passing. `waiting_on_information`: a Secretary of State or license check can't run until information is added to the subcontractor (see `checkResult.informationNeeded`); not passing, and the record reads `pending`. New values may be added; treat an unknown value as not passing.
  - Allowed values: `pass`, `fail`, `not_on_certificate`, `needs_review`, `waived`, `waiting_on_sub`, `waiting_on_information`
- `policyType` (string, optional, nullable)
- `evidence` (CriterionResultEvidence, optional, nullable) — Where on the certificate the value was read, when known.
- `confidence` (double, optional, nullable) — How sure the certificate reader was of this value (0 to 1), when known. Under 0.70 the outcome is `needs_review`.
- `deferral` (CriterionResultDeferral, optional) — Set when a check is **due at renewal**: it waits, reads `outcome: waived` (counts as met) and its `message` starts with the reason and date. * An endorsement check (the enrollment's `enforceEndorsementsAtRenewal`): "Endorsement due at renewal (\<date>)", no `kind`. * A missing policy the GC deferred (the enrollment's `missingPoliciesAtRenewal`), and the endorsement checks on that policy: "Policy due at renewal (\<date>)", `kind: missing_policy`.

### CheckResultDetailsPassRate

- `passed` (integer, optional)
- `total` (integer, optional)

### ReportInformationNeeded

- `field` (enum, required) — The subcontractor field to fill in. New values may be added.
  - Allowed values: `companyName`, `businessAddress.state`, `tradeCategory`, `licenses[].state`
- `label` (string, required) — What to add, in plain English.

### CheckResultDetailsLicenseDetermination

For a license check on a subcontractor with no license number, TradeGuard's research on whether this trade needs a license where they work, with its sources.

- `required` (boolean, optional, nullable) — `true` a license is required, `false` none is required, `null` couldn't be determined.
- `trade` (string, optional, nullable)
- `jurisdiction` (CheckResultDetailsLicenseDeterminationJurisdiction, optional, nullable)
- `licenseType` (string, optional, nullable)
- `licensingAuthority` (string, optional, nullable)
- `reasoning` (string, optional, nullable)
- `sources` (list of CheckResultDetailsLicenseDeterminationSourcesItems, optional)

### CheckResultDetailsEnforcement

How the requirement's enforcement level shaped this verdict.

- `level` (enum, optional)
  - Allowed values: `required`, `preferred`, `conditional`
- `met` (boolean, optional) — Whether the evidence met the requirement, before enforcement. `false` on a track-only (`preferred`) requirement that reads `compliant`.
- `rawStatus` (string, optional) — The status before enforcement, for a track-only requirement or one waiting on the sub's answer.
- `conditionKey` (string, optional, nullable)
- `conditionMet` (boolean, optional, nullable) — `null` while the sub hasn't answered the condition's question.

### ComplianceCheckLogCriteriaSnapshot

### RequirementCriteria

The rule a requirement checks. Its shape depends on the requirement: insurance, endorsement, notice of cancellation, certificate checks, an AI-verified document, or a report requirement. Unknown fields are a `400` naming the field.

- Insurance: InsuranceCriteria
- Endorsement: EndorsementRequirementCriteria
- Notice of cancellation: NoticeOfCancellationRequirementCriteria
- CertificateChecksCriteria: CertificateChecksCriteria
- Verified document: VerifiedDocumentCriteria
- Report requirement: ReportCriteria

### BusinessAddress

- `line1` (string, required)
- `city` (string, required)
- `state` (string, required) — Two-letter USPS state / territory code
- `postalCode` (string, required) — 5-digit ZIP or ZIP+4
- `line2` (string, optional, nullable)
- `country` (enum, optional, default: US)
  - Allowed values: `US`

### SubcontractorMetadata

### ComplianceProfile

- `id` (string, optional)
- `organizationId` (string, optional)
- `name` (string, optional)
- `description` (string, optional, nullable)
- `isDefault` (boolean, optional)
- `insuranceVerificationCadence` (enum, optional, nullable) — Profile-level insurance re-verification heartbeat for enrolled subcontractors; null = verify once when a certificate arrives, no scheduled monitoring; `none` = never verify with the broker.
  - Allowed values: `monthly`, `quarterly`, `on_change`, `on_expiration`, `one_time`, `none`
- `requiredAdditionalInsuredName` (string, optional, nullable) — The additional-insured / certificate-holder name a COI must list (checked when a requirement sets `requireGcNameMatch`); null = not checked. A new profile's "Certificate checks" requirement starts with this as its certificate holder name.
- `reportCadenceDefault` (enum, optional, nullable) — The report cadence every source inherits unless overridden; null = no report monitoring.
  - Allowed values: `monthly`, `quarterly`, `semiannual`, `annual`, `none`
- `reportCadences` (ReportCadenceOverrides, optional) — Only returned by Get a compliance profile.
- `verificationChannelPolicy` (enum, optional, nullable) — Null inherits the organization default.
  - Allowed values: `call_first`, `email_first`, `email_only`
- `emailEscalationAttempts` (integer, optional, nullable)
- `emailEscalationBusinessDays` (integer, optional, nullable)
- `metadata` (ComplianceProfileMetadata, optional)
- `createdAt` (datetime, optional)
- `updatedAt` (datetime, optional)
- `deletedAt` (datetime, optional, nullable)

### CriterionResultEvidence

Where on the certificate the value was read, when known.

- `documentId` (string, optional)
- `page` (integer, optional)
- `text` (string, optional)

### CriterionResultDeferral

Set when a check is **due at renewal**: it waits, reads `outcome: waived` (counts as met) and its `message` starts with the reason and date. * An endorsement check (the enrollment's `enforceEndorsementsAtRenewal`): "Endorsement due at renewal (\<date>)", no `kind`. * A missing policy the GC deferred (the enrollment's `missingPoliciesAtRenewal`), and the endorsement checks on that policy: "Policy due at renewal (\<date>)", `kind: missing_policy`.

- `until` (date, optional) — The date the check applies again. For an endorsement, the policy's expiration date (sooner if the renewal certificate arrives). For a missing policy, the sub's next renewal: the earliest expiration date among its policies on file (sooner if a renewed policy arrives).
- `originalOutcome` (enum, optional) — The outcome of one check (TG-1307). `pass` / `fail`: the certificate clearly does or doesn't meet the requirement. `not_on_certificate`: the field is blank on the certificate (never read as 0 or "no"); not passing. `needs_review`: the system couldn't tell what the certificate says (read with under 70% confidence, or ambiguous); a TradeGuard operator decides, and the record reads `under_review` meanwhile. `waived`: the check is waived for this policy; counts as passing. `waiting_on_sub`: waiting on an answer from the subcontractor; not passing. `waiting_on_information`: a Secretary of State or license check can't run until information is added to the subcontractor (see `checkResult.informationNeeded`); not passing, and the record reads `pending`. New values may be added; treat an unknown value as not passing.
  - Allowed values: `pass`, `fail`, `not_on_certificate`, `needs_review`, `waived`, `waiting_on_sub`, `waiting_on_information`
- `kind` (enum, optional) — `missing_policy` for a missing policy due at renewal; absent for an endorsement.
  - Allowed values: `missing_policy`

### CheckResultDetailsLicenseDeterminationJurisdiction

- `state` (string, optional)
- `city` (string, optional, nullable)

### CheckResultDetailsLicenseDeterminationSourcesItems

- `url` (string, optional)
- `title` (string, optional, nullable)

### InsuranceCriteria

Criteria of an `insurance` requirement.

- `limits` (map from string to LimitRule, optional) — Minimum (and optional maximum) amounts, keyed by limit name. The names each policy type accepts: - `general_liability`: `each_occurrence`, `general_aggregate`, `products_completed_ops_aggregate`, `personal_advertising_injury`, `damage_to_rented_premises`, `medical_expense` - `automobile_liability`: `combined_single_limit`, `bodily_injury_per_person`, `bodily_injury_per_accident`, `property_damage` - `workers_comp` (employer's liability): `each_accident`, `disease_each_employee`, `disease_policy_limit` - `umbrella`: `each_occurrence`, `aggregate` A limit blank on the certificate reads "Not on the certificate" and fails.
- `expiration` (InsuranceCriteriaExpiration, optional)
- `endorsements` (InsuranceCriteriaEndorsements, optional) — The policy's own endorsement boxes on the certificate. For named parties, forms or operations rules use an `endorsement` requirement instead.
- `accept_exemption` (boolean, optional) — Workers comp only: a workers comp exemption on file stands in for coverage. Default `true`.
- `policyRules` (PolicyRules, optional) — Rules an insurance requirement checks beyond the minimum limits (`criteria.policyRules`). A rule that is absent, `false` or `either` is not checked and adds no result row. Each rule applies only to the policy types it names. Requirements created in the dashboard start with `claimsBasis: occurrence` (general liability), `coveredAutos.accepted` (any auto; owned + hired + non-owned; scheduled + hired + non-owned) + `noOwnedVehiclesException` (auto) and `statutory` (workers comp). Results add one row per rule, keyed `policy_rule:<rule>` (e.g. `policy_rule:claims_basis`). A field that is blank on the certificate reads "Not on the certificate" and fails; when the certificate can't be read clearly the requirement goes to TradeGuard review (`under_review`) instead of failing; an auto requirement waiting for the subcontractor to confirm it owns no vehicles is `pending`.

### EndorsementRequirementCriteria

- `endorsement` (EndorsementCriteria, required) — An endorsement requirement (`documentCategory: endorsement`). The COI must show the endorsement on every policy in `appliesTo`. The other fields are rules on top of that; a rule left out (or null) is not checked and adds no row to the results. When a requirement is created without `coverageBasis` (additional insured on general liability) or `namedParties`, the API fills the defaults shown; send `null` to turn one off. Results add one row per rule, with keys `endorsement:<token>:general_liability:basis`, `endorsement:<token>:named:certificate_holder`, `endorsement:<token>:named:<n>`, `endorsement:<token>:form:<FORM>` and `endorsement:<token>:proof`. A row the code can't call either way (a low-confidence read, a name that may or may not be the same company) has outcome `needs_review` and puts the requirement `under_review` for a TradeGuard reviewer instead of failing it. Endorsement pages uploaded as a separate `endorsement` document count together with the certificate; a page that prints a policy number counts only for that policy.

### NoticeOfCancellationRequirementCriteria

- `noticeOfCancellation` (NoticeOfCancellationRequirementCriteriaNoticeOfCancellation, optional)

### CertificateChecksCriteria

Criteria of a `certificate` requirement: the checks that apply to the insurance certificate (COI) as a whole. Each check is off unless `enabled` is true; a check that is off is not run and does not appear in results. New profiles start with `insuredName`, `signature` and `allPoliciesActive` on, and `certificateHolder` on when the profile has a `requiredAdditionalInsuredName`. Switching a check off in the dashboard sets its `enabled` to false; the other checks keep running. Results: each check is one row in the compliance record's `checkResult.criteriaResults`, with `outcome` `pass`, `fail`, `not_on_certificate` (the field is blank on the COI) or `needs_review` (the reader couldn't tell, or read it with under 70% confidence; a TradeGuard reviewer decides). When every failing row is `needs_review` the record is `under_review` rather than `non_compliant`.

- `certificateChecks` (CertificateChecksSettings, required) — The four checks of a Certificate checks requirement. Each check is off unless `enabled` is true.

### VerifiedDocumentCriteria

Criteria of a requirement for a document read by AI (W-9, OSHA card, First Aid, lift safety, safety policy, workers comp exemption, agreement). The check passes when the subcontractor's latest document of that kind is the right kind of document, readable, meets every rule for its kind (a W-9 is signed and dated, shows a TIN, and so on), is issued to the subcontractor's legal name or DBA where it names a business, and isn't expired. A wrong kind of document, a name that doesn't match, or a low-confidence reading goes to TradeGuard review (`under_review`), never an automatic pass. Expiration: a printed expiration date is always enforced, and `compliance.expiring_soon` / `compliance.expired` fire for it (30, 14, 7 and 1 days before, and the day after). A document with no printed expiration stays valid unless you set `refreshEveryMonths`.

- `documentType` (enum, optional) — Which kind of document. Required for `training_cert`; filled in for the other categories.
  - Allowed values: `w9`, `wc_exemption`, `osha_card`, `first_aid_cpr`, `lift_safety`, `safety_policy`, `agreement`
- `minOshaLevel` (enum, optional) — `osha_card` only: the lowest OSHA card that passes. OSHA 30 meets a 10 requirement.
  - Allowed values: `10`, `30`
- `refreshEveryMonths` (integer, optional, nullable) — When the document shows no expiration date, ask for a new one this many months after it was issued (or uploaded, when it shows no date). Left out or `null` = it stays valid.

### ReportCriteria

Criteria of a report requirement (`reportSource` set). Every field is optional.

- `requireNameMatch` (boolean, optional, default: true) — The licensee or entity name must match the subcontractor.
- `requireEinMatch` (boolean, optional, default: true) — The EIN must match when both sides have one.
- `requireAddressMatch` (boolean, optional, default: false) — The Secretary of State address must match the business address.
- `disciplinaryActions` (enum, optional, default: warn)
  - Allowed values: `fail`, `warn`
- `flaggedFindings` (enum, optional, default: fail)
  - Allowed values: `fail`, `warn`
- `minDaysToExpiry` (integer, optional, default: 0) — The license must stay valid at least this many days.
- `requireCompetencyLicense` (boolean, optional, default: false) — A bare registration doesn't count as a license.
- `nextCheckIntervalDays` (integer, optional, default: 90)

### ReportCadenceOverrides

Per-source overrides of `reportCadenceDefault`. Send `null` for a source to remove its override.

- `cobalt_sos` (enum, optional) — How often a report source is re-run for subcontractors enrolled in a profile. `none` switches a source off even when the profile default is set.
  - Allowed values: `monthly`, `quarterly`, `semiannual`, `annual`, `none`
- `tradesapi_license` (enum, optional) — How often a report source is re-run for subcontractors enrolled in a profile. `none` switches a source off even when the profile default is set.
  - Allowed values: `monthly`, `quarterly`, `semiannual`, `annual`, `none`
- `jdp_background` (enum, optional) — How often a report source is re-run for subcontractors enrolled in a profile. `none` switches a source off even when the profile default is set.
  - Allowed values: `monthly`, `quarterly`, `semiannual`, `annual`, `none`
- `web_research` (enum, optional) — How often a report source is re-run for subcontractors enrolled in a profile. `none` switches a source off even when the profile default is set.
  - Allowed values: `monthly`, `quarterly`, `semiannual`, `annual`, `none`

### ComplianceProfileMetadata

### LimitRule

Give a `min`, a `max`, or both, in dollars.

- `min` (double, optional)
- `max` (double, optional)

### InsuranceCriteriaExpiration

- `must_be_active` (boolean, optional) — `true` (the default when left out): the policy must be in force.
- `warn_within_days` (integer, optional) — How many days before it expires a passing policy gets the warning "Policy expiring in N days" (in `checkResult.warnings`). The policy stays compliant until it actually expires. Default `60`.

### InsuranceCriteriaEndorsements

The policy's own endorsement boxes on the certificate. For named parties, forms or operations rules use an `endorsement` requirement instead.

- `required` (list of enum, optional)
  - Allowed values: `additional_insured`, `waiver_of_subrogation`, `primary_noncontributory`

### PolicyRules

Rules an insurance requirement checks beyond the minimum limits (`criteria.policyRules`). A rule that is absent, `false` or `either` is not checked and adds no result row. Each rule applies only to the policy types it names. Requirements created in the dashboard start with `claimsBasis: occurrence` (general liability), `coveredAutos.accepted` (any auto; owned + hired + non-owned; scheduled + hired + non-owned) + `noOwnedVehiclesException` (auto) and `statutory` (workers comp). Results add one row per rule, keyed `policy_rule:<rule>` (e.g. `policy_rule:claims_basis`). A field that is blank on the certificate reads "Not on the certificate" and fails; when the certificate can't be read clearly the requirement goes to TradeGuard review (`under_review`) instead of failing; an auto requirement waiting for the subcontractor to confirm it owns no vehicles is `pending`.

- `claimsBasis` (enum, optional) — General liability, umbrella and every other type beyond the core four: `occurrence` = the policy must be written on an occurrence basis. For the other types it is read from the row's own wording (e.g. "Pollution Liability - Occurrence"); a row that doesn't say reads "Not on the certificate".
  - Allowed values: `occurrence`, `either`
- `aggregatePerProject` (boolean, optional) — General liability: the aggregate must apply per project. Met by the PROJECT box, an attached per-project aggregate endorsement (CG 25 03), or description-of-operations wording.
- `umbrellaOnTop` (boolean, optional) — General liability, auto, workers comp: the policy's limit plus a live umbrella may meet a minimum, but only when the certificate shows the umbrella follows form over this policy (a generic "follows form" counts). Applies to GL each occurrence and aggregates, auto combined single limit, and employer's liability limits. Off = the policy must meet the limits on its own.
- `coveredAutos` (PolicyRulesCoveredAutos, optional) — Auto: which combinations of covered-auto boxes are accepted. A certificate passes when **every** box of **any one** accepted combination is ticked; extra boxes don't matter. Boxes: `any` (symbol 1), `owned`, `scheduled`, `hired`, `non_owned`. New auto requirements default to `{"accepted": [["any"], ["owned","hired","non_owned"], ["scheduled","hired","non_owned"]]}`. Legacy `true` (requirements saved before 2026-10-15) means `[["any"], ["owned","hired","non_owned"]]`. The failing row's message names what the certificate shows and what is accepted.
- `noOwnedVehiclesException` (boolean, optional) — Auto, with `coveredAutos`: the "no company vehicles" line. Hired + non-owned autos alone (no owned or scheduled box) pass once the subcontractor confirms it owns no company vehicles (condition flag `no_owned_vehicles` on your enrollment, set with [Activate or deactivate a subcontractor](https://docs.tradeguardins.com/api-reference/subcontractors/update-subcontractor-enrollment)). Until then the row is `waiting_on_sub` and the requirement `pending`. Default `true`. `accepted: []` with this `false` is rejected (400), since nothing could pass.
- `physicalDamage` (boolean, optional) — Auto: comprehensive or collision coverage must be shown.
- `maxComprehensiveDeductible` (double, optional) — Auto: the highest comprehensive deductible shown may be at most this.
- `maxCollisionDeductible` (double, optional) — Auto: the highest collision deductible shown may be at most this.
- `requireCombinedSingleLimit` (boolean, optional) — Auto: only a combined single limit meets a `combined_single_limit` minimum. Off (default): split limits also meet it when every split limit (BI per person, BI per accident, PD) is at least the minimum.
- `statutory` (boolean, optional) — Workers comp: PER STATUTE must be ticked.
- `ownerNotExcluded` (boolean, optional) — Workers comp: owners/officers must not be excluded. A blank exclusion box counts as not excluded.
- `umbrellaOrExcess` (enum, optional) — Umbrella: which kind of policy is accepted.
  - Allowed values: `umbrella`, `excess`, `either`
- `maxRetention` (double, optional) — Umbrella: the deductible or self-insured retention may be at most this.
- `maxDeductible` (double, optional) — Every type beyond GL, auto, workers comp and umbrella (professional, pollution, builder's risk, ...): the deductible shown on the policy's row may be at most this. No deductible shown passes.
- `followForm` (PolicyRulesFollowForm, optional) — Umbrella: the policy must follow form. `over` empty = any follows-form wording; otherwise it must follow form over each listed policy. An unclear certificate goes to TradeGuard review.

### EndorsementCriteria

An endorsement requirement (`documentCategory: endorsement`). The COI must show the endorsement on every policy in `appliesTo`. The other fields are rules on top of that; a rule left out (or null) is not checked and adds no row to the results. When a requirement is created without `coverageBasis` (additional insured on general liability) or `namedParties`, the API fills the defaults shown; send `null` to turn one off. Results add one row per rule, with keys `endorsement:<token>:general_liability:basis`, `endorsement:<token>:named:certificate_holder`, `endorsement:<token>:named:<n>`, `endorsement:<token>:form:<FORM>` and `endorsement:<token>:proof`. A row the code can't call either way (a low-confidence read, a name that may or may not be the same company) has outcome `needs_review` and puts the requirement `under_review` for a TradeGuard reviewer instead of failing it. Endorsement pages uploaded as a separate `endorsement` document count together with the certificate; a page that prints a policy number counts only for that policy.

- `token` (enum, required)
  - Allowed values: `additional_insured`, `waiver_of_subrogation`, `primary_noncontributory`, `loss_payee`
- `appliesTo` (list of enum, required)
  - Allowed values: `general_liability`, `workers_comp`, `automobile_liability`, `umbrella`, `professional_liability`, `medical_malpractice`, `directors_and_officers`, `employment_practices_liability`, `fiduciary_liability`, `cyber`, `technology_errors_omissions`, `media_liability`, `pollution_liability`, `liquor_liability`, `products_liability`, `owners_contractors_protective`, `railroad_protective`, `abuse_and_molestation`, `employee_benefits_liability`, `stop_gap_liability`, `foreign_liability`, `garage_liability`, `garagekeepers`, `riggers_liability`, `crime`, `fidelity_bond`, `surety_bond`, `commercial_property`, `builders_risk`, `installation_floater`, `equipment_floater`, `leased_rented_equipment`, `inland_marine`, `ocean_marine`, `motor_truck_cargo`, `cargo`, `warehouse_legal_liability`, `bailees_coverage`, `business_interruption`, `equipment_breakdown`, `flood`, `earthquake`, `physical_damage`, `trailer_interchange`, `non_trucking_liability`, `contingent_liability`, `occupational_accident`, `aviation`, `watercraft`, `uslh`, `maritime_employers_liability`, `disability`, `accident_health`
- `coverageBasis` (enum, optional, nullable) — Additional insured only, judged on general liability. Default `ongoing_and_completed`. A COI that shows additional insured without saying which operations passes `ongoing` but fails `completed` and `ongoing_and_completed`: completed operations needs CG 20 37 or wording that says so (blanket CG 20 33 / CG 20 38 are ongoing only).
  - Allowed values: `ongoing`, `completed`, `ongoing_and_completed`
- `namedParties` (EndorsementCriteriaNamedParties, optional, nullable) — Who the endorsement must name. Default: the certificate holder. The certificate holder counts as named when the endorsement lists it, says "certificate holder", uses blanket wording ("where required by written contract"), or is shown with no other party listed (the ACORD box convention). Extra names must appear by name; a near-miss (LLC vs no LLC) passes, a maybe-same name goes to review.
- `requiredForms` (list of string, optional, nullable) — Form numbers that must appear on the certificate (ACORD 25, ACORD 101 or an attached page). Spaces, punctuation and edition dates are ignored: "CG2010" matches "CG 20 10 04 13".
- `minimumProof` (enum, optional, nullable) — The weakest proof accepted, weakest first. Default (or `checkbox`): the ACORD checkbox alone is enough. `endorsement_page` requires an attached endorsement page.
  - Allowed values: `checkbox`, `acord_101`, `description_of_operations`, `endorsement_page`

### NoticeOfCancellationRequirementCriteriaNoticeOfCancellation

- `minimumDaysNotice` (integer, optional, default: 30)
- `appliesTo` (list of enum, optional) — The policies the notice must cover, each judged on its own. Left out or empty = one check for the whole certificate.
  - Allowed values: `general_liability`, `automobile_liability`, `workers_comp`, `umbrella`

### CertificateChecksSettings

The four checks of a Certificate checks requirement. Each check is off unless `enabled` is true.

- `certificateHolder` (CertificateChecksSettingsCertificateHolder, optional) — The certificate holder must be your company. A near miss (LLC vs no LLC, Ste vs Suite, St vs Street) passes, and the row shows the difference.
- `insuredName` (CertificateChecksSettingsInsuredName, optional) — The insured on the COI must be the subcontractor's legal name or its `dba`. A clear mismatch fails; a name that may or may not be the same company goes to review.
- `signature` (CertificateChecksSettingsSignature, optional) — An authorized representative signed the certificate.
- `allPoliciesActive` (CertificateChecksSettingsAllPoliciesActive, optional) — Every policy listed on the certificate is in force, including policy types this profile doesn't require. One row per policy. A policy type that another always-enforced requirement in the profile already checks for being in force (e.g. a General Liability requirement) is left to that requirement, so an expired policy opens one issue, not two.

### PolicyRulesCoveredAutos

Auto: which combinations of covered-auto boxes are accepted. A certificate passes when **every** box of **any one** accepted combination is ticked; extra boxes don't matter. Boxes: `any` (symbol 1), `owned`, `scheduled`, `hired`, `non_owned`. New auto requirements default to `{"accepted": [["any"], ["owned","hired","non_owned"], ["scheduled","hired","non_owned"]]}`. Legacy `true` (requirements saved before 2026-10-15) means `[["any"], ["owned","hired","non_owned"]]`. The failing row's message names what the certificate shows and what is accepted.

- boolean
- PolicyRulesCoveredAutos1

### PolicyRulesFollowForm

Umbrella: the policy must follow form. `over` empty = any follows-form wording; otherwise it must follow form over each listed policy. An unclear certificate goes to TradeGuard review.

- `over` (list of enum, optional)
  - Allowed values: `general_liability`, `automobile_liability`, `workers_comp`

### EndorsementCriteriaNamedParties

Who the endorsement must name. Default: the certificate holder. The certificate holder counts as named when the endorsement lists it, says "certificate holder", uses blanket wording ("where required by written contract"), or is shown with no other party listed (the ACORD box convention). Extra names must appear by name; a near-miss (LLC vs no LLC) passes, a maybe-same name goes to review.

- `includeCertificateHolder` (boolean, required)
- `names` (list of string, optional)

### CertificateChecksSettingsCertificateHolder

The certificate holder must be your company. A near miss (LLC vs no LLC, Ste vs Suite, St vs Street) passes, and the row shows the difference.

- `enabled` (boolean, required)
- `name` (string, optional, nullable) — Required when `enabled` is true.
- `address` (string, optional, nullable) — Optional. When set, the holder address is checked too (same street line and ZIP).

### CertificateChecksSettingsInsuredName

The insured on the COI must be the subcontractor's legal name or its `dba`. A clear mismatch fails; a name that may or may not be the same company goes to review.

- `enabled` (boolean, required)

### CertificateChecksSettingsSignature

An authorized representative signed the certificate.

- `enabled` (boolean, required)

### CertificateChecksSettingsAllPoliciesActive

Every policy listed on the certificate is in force, including policy types this profile doesn't require. One row per policy. A policy type that another always-enforced requirement in the profile already checks for being in force (e.g. a General Liability requirement) is left to that requirement, so an expired policy opens one issue, not two.

- `enabled` (boolean, required)

### PolicyRulesCoveredAutos1

- `accepted` (list of list of enum, required)
  - Allowed values: `any`, `owned`, `scheduled`, `hired`, `non_owned`

## Examples

**Response**

```json
{
  "data": {
    "id": "string",
    "subcontractorId": "string",
    "requirementId": "string",
    "complianceProfileEnrollmentId": "string",
    "status": "pending",
    "met": true,
    "statusReason": "string",
    "lastCheckedAt": "2024-01-15T09:30:00Z",
    "nextCheckAt": "2024-01-15T09:30:00Z",
    "expiresAt": "2024-01-15T09:30:00Z",
    "checkResult": {
      "documentCategory": "string",
      "policyType": "string",
      "criteria": {},
      "checkedAt": "2024-01-15T09:30:00Z",
      "criteriaResults": [
        {
          "key": "string",
          "passed": true,
          "expected": null,
          "actual": null,
          "message": "string",
          "field": "string",
          "label": "string",
          "rule": "string",
          "outcome": "pass",
          "policyType": "string",
          "evidence": {
            "documentId": "string",
            "page": 1,
            "text": "string"
          },
          "confidence": 0.5,
          "deferral": {
            "until": "2023-01-15",
            "originalOutcome": "pass",
            "kind": "missing_policy"
          }
        }
      ],
      "passRate": {
        "passed": 1,
        "total": 1
      },
      "warnings": [
        "string"
      ],
      "informationNeeded": [
        {
          "field": "companyName",
          "label": "string"
        }
      ],
      "licenseDetermination": {
        "required": true,
        "trade": "string",
        "jurisdiction": {
          "state": "string",
          "city": "string"
        },
        "licenseType": "string",
        "licensingAuthority": "string",
        "reasoning": "string",
        "sources": [
          {
            "url": "string",
            "title": "string"
          }
        ]
      },
      "enforcement": {
        "level": "required",
        "met": true,
        "rawStatus": "string",
        "conditionKey": "string",
        "conditionMet": true
      },
      "changesSinceLastCheck": [
        "string"
      ]
    },
    "overrideStatus": "pending",
    "overrideReason": "string",
    "overrideBy": "string",
    "overrideByType": "user",
    "overrideAt": "2024-01-15T09:30:00Z",
    "overrideFingerprint": "string",
    "metadata": {},
    "createdAt": "2024-01-15T09:30:00Z",
    "updatedAt": "2024-01-15T09:30:00Z",
    "checkLogs": [
      {
        "id": "string",
        "complianceRecordId": "string",
        "complianceRunId": "string",
        "triggeredBy": "scheduled",
        "previousStatus": "pending",
        "newStatus": "pending",
        "checkResult": {
          "documentCategory": "string",
          "policyType": "string",
          "criteria": {},
          "checkedAt": "2024-01-15T09:30:00Z",
          "criteriaResults": [
            {
              "key": "string",
              "passed": true,
              "expected": null,
              "actual": null,
              "message": "string",
              "field": "string",
              "label": "string",
              "rule": "string",
              "outcome": "pass",
              "policyType": "string",
              "evidence": {
                "documentId": "string",
                "page": 1,
                "text": "string"
              },
              "confidence": 0.5,
              "deferral": {
                "until": "2023-01-15",
                "originalOutcome": "pass",
                "kind": "missing_policy"
              }
            }
          ],
          "passRate": {
            "passed": 1,
            "total": 1
          },
          "warnings": [
            "string"
          ],
          "informationNeeded": [
            {
              "field": "companyName",
              "label": "string"
            }
          ],
          "licenseDetermination": {
            "required": true,
            "trade": "string",
            "jurisdiction": {
              "state": "string",
              "city": "string"
            },
            "licenseType": "string",
            "licensingAuthority": "string",
            "reasoning": "string",
            "sources": [
              {
                "url": "string",
                "title": "string"
              }
            ]
          },
          "enforcement": {
            "level": "required",
            "met": true,
            "rawStatus": "string",
            "conditionKey": "string",
            "conditionMet": true
          },
          "changesSinceLastCheck": [
            "string"
          ]
        },
        "notes": "string",
        "actorType": "user",
        "actorId": "string",
        "criteriaHash": "string",
        "criteriaSnapshot": {},
        "requirementVersion": 1,
        "performedAt": "2024-01-15T09:30:00Z"
      }
    ],
    "requirement": {
      "id": "string",
      "complianceProfileId": "string",
      "title": "string",
      "reportSource": "cobalt_sos",
      "reportDimension": "string",
      "description": "string",
      "aiContext": "string",
      "documentCategory": "insurance",
      "policyType": "general_liability",
      "scopeLevel": "entity",
      "enforcementLevel": "required",
      "conditionKey": "string",
      "requireNameMatch": true,
      "requireGcNameMatch": true,
      "trackExpiration": true,
      "collectFullPolicy": true,
      "collectSignature": true,
      "verificationCadence": "monthly",
      "verificationMethod": "call_producer",
      "criteria": {
        "endorsement": {
          "appliesTo": [
            "general_liability"
          ],
          "coverageBasis": "ongoing_and_completed",
          "minimumProof": "checkbox",
          "namedParties": {
            "includeCertificateHolder": true,
            "names": [
              "Owner Holdings LLC"
            ]
          },
          "requiredForms": [
            "CG 20 10",
            "CG 20 37"
          ],
          "token": "additional_insured"
        },
        "policyRules": {
          "claimsBasis": "occurrence",
          "umbrellaOnTop": true
        }
      },
      "version": 1,
      "isActive": true,
      "sortOrder": 1,
      "createdAt": "2024-01-15T09:30:00Z",
      "updatedAt": "2024-01-15T09:30:00Z",
      "deletedAt": "2024-01-15T09:30:00Z"
    },
    "subcontractor": {
      "id": "string",
      "externalId": "string",
      "contactName": "string",
      "entityType": "sole_proprietor",
      "companyName": "string",
      "dba": "string",
      "firstName": "string",
      "lastName": "string",
      "contactEmail": "string",
      "contactPhone": "string",
      "communicationPreference": "email",
      "languagePreference": "en",
      "tradeCategory": "electrical",
      "ein": "12-3456789",
      "website": "string",
      "businessAddress": {
        "line1": "string",
        "city": "string",
        "state": "TX",
        "postalCode": "78701",
        "line2": "string",
        "country": "US"
      },
      "ownerName": "string",
      "ownerEmail": "string",
      "ownerPhone": "string",
      "metadata": {},
      "createdAt": "2024-01-15T09:30:00Z",
      "updatedAt": "2024-01-15T09:30:00Z",
      "environment": "production"
    },
    "complianceProfileEnrollment": {
      "id": "string",
      "subcontractorId": "string",
      "complianceProfileId": "string",
      "projectId": "string",
      "attachedAt": "2024-01-15T09:30:00Z",
      "detachedAt": "2024-01-15T09:30:00Z",
      "complianceProfile": {
        "id": "string",
        "organizationId": "string",
        "name": "string",
        "description": "string",
        "isDefault": true,
        "insuranceVerificationCadence": "monthly",
        "requiredAdditionalInsuredName": "string",
        "reportCadenceDefault": "monthly",
        "reportCadences": {
          "cobalt_sos": "monthly",
          "tradesapi_license": "monthly",
          "jdp_background": "monthly",
          "web_research": "monthly"
        },
        "verificationChannelPolicy": "call_first",
        "emailEscalationAttempts": 1,
        "emailEscalationBusinessDays": 1,
        "metadata": {},
        "createdAt": "2024-01-15T09:30:00Z",
        "updatedAt": "2024-01-15T09:30:00Z",
        "deletedAt": "2024-01-15T09:30:00Z"
      }
    }
  }
}
```

**SDK Code**

```python
import requests

url = "https://api.tradeguardins.com/v1/compliance/complianceRecordId"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript
const url = 'https://api.tradeguardins.com/v1/compliance/complianceRecordId';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.tradeguardins.com/v1/compliance/complianceRecordId"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.tradeguardins.com/v1/compliance/complianceRecordId")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.tradeguardins.com/v1/compliance/complianceRecordId")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.tradeguardins.com/v1/compliance/complianceRecordId', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.tradeguardins.com/v1/compliance/complianceRecordId");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.tradeguardins.com/v1/compliance/complianceRecordId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```