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

# Create a compliance profile

POST https://api.tradeguardins.com/v1/organizations/{organizationId}/compliance-profiles
Content-Type: application/json

Creates a compliance profile, optionally with all of its requirements in
the same call. See [Set up a compliance profile by API](/getting-started/set-up-a-compliance-profile-by-api)
for copy-paste examples.

**All or nothing.** Every item in `requirements` is validated first, with
the same rules and defaults as [Create a requirement](https://docs.tradeguardins.com/api-reference/requirements/create-requirement).
If any item is invalid the response is `400 validation_failed`, each
`details[].path` starts with `requirements.<index>` (for example
`requirements.2.criteria.limits.each_ocurrence`), and nothing is saved.
Otherwise the profile and every requirement are saved together.

Every new profile also gets a "Certificate checks" requirement
(`documentCategory: certificate`), configured by `certificateChecks`.
Send `certificateChecks: null` to leave it out, for example to supply your
own certificate requirement in `requirements`.

`isDefault: true` makes this the organization's default profile (the
previous default is unset) and enrolls every active subcontractor in it.

The response lists the Certificate checks requirement first, then your
requirements in the order sent. A requirement without a `sortOrder` gets
its position in the list (1, 2, 3, …).

Requires scope `compliance_profiles:write`, plus `requirements:write`
when `requirements` is not empty.

Reference: https://docs.tradeguardins.com/api-reference/compliance-profiles/create-compliance-profile

## Authentication

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

## Request

### Path parameters

- `organizationId` (string, required)

### Body (application/json)

This endpoint expects a CreateComplianceProfileRequest.

- `name` (string, required)
- `description` (string, optional)
- `isDefault` (boolean, optional, default: false) — Make this the organization's default profile and enroll every active subcontractor in it.
- `insuranceVerificationCadence` (enum, optional, nullable) — How often TradeGuard re-verifies a subcontractor's insurance with the broker. `monthly` and `quarterly` schedule recurring checks; the others verify once, when a certificate arrives. `none` switches broker verification off for the profile: an uploaded certificate starts no broker call or carrier email, and a certificate that meets the rules is `compliant` without one (it never waits on the broker). If a subcontractor is on several of your profiles, any profile that verifies wins. Standalone calls (`POST /v1/verification-calls`) are unaffected.
  - Allowed values: `monthly`, `quarterly`, `on_change`, `on_expiration`, `one_time`, `none`
- `reportCadenceDefault` (enum, optional, nullable) — 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`
- `reportCadences` (ReportCadenceOverrides, optional) — Per-source overrides of `reportCadenceDefault`. Send `null` for a source to remove its override.
- `requiredAdditionalInsuredName` (string, optional, nullable) — Your company's name as it must appear on certificates. Turns on the certificate holder check of the new Certificate checks requirement.
- `verificationChannelPolicy` (enum, optional, nullable) — Which channel opens the producer verification. `call_first` (default): the AI call opens, the carrier email follows only if the call cannot work. `email_first`: the carrier email opens; calls begin once the escalation threshold is met (emails sent AND business days elapsed). `email_only`: never call; exhausted email raises `compliance.producer_outreach_needed` and opens an issue. Set per profile (`verificationChannelPolicy` on the profile, or in the dashboard); null on a profile inherits the organization default.
  - Allowed values: `call_first`, `email_first`, `email_only`
- `emailEscalationAttempts` (integer, optional, nullable)
- `emailEscalationBusinessDays` (integer, optional, nullable)
- `metadata` (CreateComplianceProfileRequestMetadata, optional) — Your own key/value data, up to 16 KB as JSON.
- `certificateChecks` (CertificateChecksSettings, optional, nullable) — Settings for the profile's Certificate checks requirement. Left out: insured name, signature and every-policy-active on, certificate holder on when `requiredAdditionalInsuredName` is set. `null`: create the profile without a Certificate checks requirement.
- `requirements` (list of CreateRequirementRequest, optional) — Requirements to create with the profile, all or nothing. Each item is a [Create a requirement](https://docs.tradeguardins.com/api-reference/requirements/create-requirement) body.

## Response

### 201

The new profile with its requirements

- `data` (ComplianceProfileWithRequirements, optional)

## Errors

### 400 Bad Request Error

Request failed schema validation (`validation_failed`)

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

### 500 Internal Server Error

Unexpected server error (`internal_error`); safe to retry idempotent requests

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

### 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`

### CreateComplianceProfileRequestMetadata

Your own key/value data, up to 16 KB as JSON.

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

### CreateRequirementRequest

- `title` (string, required)
- `scopeLevel` (enum, required)
  - Allowed values: `entity`, `individual`
- `description` (string, optional)
- `aiContext` (string, optional) — Extra guidance for the document reader. Doesn't change how the requirement is judged.
- `documentCategory` (enum, optional) — What the requirement checks. Required unless `reportSource` is set. `license` and `background_check` are stored only and can't be a document requirement (`400`).
  - Allowed values: `insurance`, `endorsement`, `notice_of_cancellation`, `certificate`, `tax_form`, `training_cert`, `safety_policy`, `workers_compensation_exemption`, `agreement`
- `policyType` (enum, optional) — Required for `insurance`; leave out for the other categories.
  - 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`
- `reportSource` (enum, optional, nullable) — Score this requirement from a business report instead of a document. `documentCategory` and `reportDimension` then default from the source.
  - Allowed values: `cobalt_sos`, `tradesapi_license`, `jdp_background`, `web_research`
- `reportDimension` (string, optional, nullable)
- `enforcementLevel` (enum, optional, default: required) — `track_only` (Track only, don't require) is stored and returned as `preferred`. See `EnforcementLevel`.
  - Allowed values: `required`, `preferred`, `conditional`, `track_only`
- `conditionKey` (string, optional) — Required when `enforcementLevel` is `conditional`; see [List condition keys](https://docs.tradeguardins.com/api-reference/compliance/list-condition-keys).
- `requireNameMatch` (boolean, optional) — Insurance: the insured on the certificate must match the subcontractor's name. Defaults to `true` for an insurance requirement when left out (send `false` to turn it off); `false` for every other category.
- `requireGcNameMatch` (boolean, optional, default: false) — Insurance: the certificate must list the profile's `requiredAdditionalInsuredName`.
- `trackExpiration` (boolean, optional, default: false) — Watch the policy's expiration and ask for a renewal before it lapses.
- `collectFullPolicy` (boolean, optional, default: false)
- `collectSignature` (boolean, optional, default: false)
- `verificationCadence` (enum, optional, default: on_expiration)
  - Allowed values: `quarterly`, `on_change`, `on_expiration`, `one_time`
- `verificationMethod` (enum, optional)
  - Allowed values: `call_producer`, `collect_receipt`
- `criteria` (RequirementCriteria, optional) — 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.
- `isActive` (boolean, optional, default: true) — `false` creates the requirement paused.
- `sortOrder` (integer, optional, default: 0)

### ComplianceProfileWithRequirements

- `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` (ComplianceProfileWithRequirementsMetadata, optional)
- `createdAt` (datetime, optional)
- `updatedAt` (datetime, optional)
- `deletedAt` (datetime, optional, nullable)
- `requirements` (list of Requirement, optional) — The Certificate checks requirement (unless `certificateChecks` was null), then the requirements sent, in order.

### ErrorDetailsItems

- `path` (string, optional)
- `message` (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)

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

### ComplianceProfileWithRequirementsMetadata

### 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)

### 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)

### 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`

### 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)

### PolicyRulesCoveredAutos1

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

## Examples

**Request**

```json
{
  "name": "Standard subcontractor",
  "requiredAdditionalInsuredName": "Arise Homes LLC",
  "requirements": [
    {
      "title": "General Liability $1M / $2M",
      "scopeLevel": "entity",
      "documentCategory": "insurance",
      "policyType": "general_liability",
      "trackExpiration": true,
      "criteria": {
        "expiration": {
          "must_be_active": true
        },
        "limits": {
          "each_occurrence": {
            "min": 1000000
          },
          "general_aggregate": {
            "min": 2000000
          }
        }
      }
    },
    {
      "title": "Additional Insured (GL)",
      "scopeLevel": "entity",
      "documentCategory": "endorsement",
      "criteria": {
        "endorsement": {
          "appliesTo": [
            "general_liability"
          ],
          "token": "additional_insured"
        }
      }
    }
  ]
}
```

**Response**

```json
{
  "data": {
    "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",
    "requirements": [
      {
        "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"
      }
    ]
  }
}
```

**SDK Code**

```python Compliance Profiles_createComplianceProfile_example
import requests

url = "https://api.tradeguardins.com/v1/organizations/organizationId/compliance-profiles"

payload = {
    "name": "Standard subcontractor",
    "requiredAdditionalInsuredName": "Arise Homes LLC",
    "requirements": [
        {
            "title": "General Liability $1M / $2M",
            "scopeLevel": "entity",
            "documentCategory": "insurance",
            "policyType": "general_liability",
            "trackExpiration": True,
            "criteria": {
                "expiration": { "must_be_active": True },
                "limits": {
                    "each_occurrence": { "min": 1000000 },
                    "general_aggregate": { "min": 2000000 }
                }
            }
        },
        {
            "title": "Additional Insured (GL)",
            "scopeLevel": "entity",
            "documentCategory": "endorsement",
            "criteria": { "endorsement": {
                    "appliesTo": ["general_liability"],
                    "token": "additional_insured"
                } }
        }
    ]
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript Compliance Profiles_createComplianceProfile_example
const url = 'https://api.tradeguardins.com/v1/organizations/organizationId/compliance-profiles';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"name":"Standard subcontractor","requiredAdditionalInsuredName":"Arise Homes LLC","requirements":[{"title":"General Liability $1M / $2M","scopeLevel":"entity","documentCategory":"insurance","policyType":"general_liability","trackExpiration":true,"criteria":{"expiration":{"must_be_active":true},"limits":{"each_occurrence":{"min":1000000},"general_aggregate":{"min":2000000}}}},{"title":"Additional Insured (GL)","scopeLevel":"entity","documentCategory":"endorsement","criteria":{"endorsement":{"appliesTo":["general_liability"],"token":"additional_insured"}}}]}'
};

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

```go Compliance Profiles_createComplianceProfile_example
package main

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

func main() {

	url := "https://api.tradeguardins.com/v1/organizations/organizationId/compliance-profiles"

	payload := strings.NewReader("{\n  \"name\": \"Standard subcontractor\",\n  \"requiredAdditionalInsuredName\": \"Arise Homes LLC\",\n  \"requirements\": [\n    {\n      \"title\": \"General Liability $1M / $2M\",\n      \"scopeLevel\": \"entity\",\n      \"documentCategory\": \"insurance\",\n      \"policyType\": \"general_liability\",\n      \"trackExpiration\": true,\n      \"criteria\": {\n        \"expiration\": {\n          \"must_be_active\": true\n        },\n        \"limits\": {\n          \"each_occurrence\": {\n            \"min\": 1000000\n          },\n          \"general_aggregate\": {\n            \"min\": 2000000\n          }\n        }\n      }\n    },\n    {\n      \"title\": \"Additional Insured (GL)\",\n      \"scopeLevel\": \"entity\",\n      \"documentCategory\": \"endorsement\",\n      \"criteria\": {\n        \"endorsement\": {\n          \"appliesTo\": [\n            \"general_liability\"\n          ],\n          \"token\": \"additional_insured\"\n        }\n      }\n    }\n  ]\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

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

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

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

}
```

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

url = URI("https://api.tradeguardins.com/v1/organizations/organizationId/compliance-profiles")

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

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"name\": \"Standard subcontractor\",\n  \"requiredAdditionalInsuredName\": \"Arise Homes LLC\",\n  \"requirements\": [\n    {\n      \"title\": \"General Liability $1M / $2M\",\n      \"scopeLevel\": \"entity\",\n      \"documentCategory\": \"insurance\",\n      \"policyType\": \"general_liability\",\n      \"trackExpiration\": true,\n      \"criteria\": {\n        \"expiration\": {\n          \"must_be_active\": true\n        },\n        \"limits\": {\n          \"each_occurrence\": {\n            \"min\": 1000000\n          },\n          \"general_aggregate\": {\n            \"min\": 2000000\n          }\n        }\n      }\n    },\n    {\n      \"title\": \"Additional Insured (GL)\",\n      \"scopeLevel\": \"entity\",\n      \"documentCategory\": \"endorsement\",\n      \"criteria\": {\n        \"endorsement\": {\n          \"appliesTo\": [\n            \"general_liability\"\n          ],\n          \"token\": \"additional_insured\"\n        }\n      }\n    }\n  ]\n}"

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

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

HttpResponse<String> response = Unirest.post("https://api.tradeguardins.com/v1/organizations/organizationId/compliance-profiles")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"name\": \"Standard subcontractor\",\n  \"requiredAdditionalInsuredName\": \"Arise Homes LLC\",\n  \"requirements\": [\n    {\n      \"title\": \"General Liability $1M / $2M\",\n      \"scopeLevel\": \"entity\",\n      \"documentCategory\": \"insurance\",\n      \"policyType\": \"general_liability\",\n      \"trackExpiration\": true,\n      \"criteria\": {\n        \"expiration\": {\n          \"must_be_active\": true\n        },\n        \"limits\": {\n          \"each_occurrence\": {\n            \"min\": 1000000\n          },\n          \"general_aggregate\": {\n            \"min\": 2000000\n          }\n        }\n      }\n    },\n    {\n      \"title\": \"Additional Insured (GL)\",\n      \"scopeLevel\": \"entity\",\n      \"documentCategory\": \"endorsement\",\n      \"criteria\": {\n        \"endorsement\": {\n          \"appliesTo\": [\n            \"general_liability\"\n          ],\n          \"token\": \"additional_insured\"\n        }\n      }\n    }\n  ]\n}")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.tradeguardins.com/v1/organizations/organizationId/compliance-profiles', [
  'body' => '{
  "name": "Standard subcontractor",
  "requiredAdditionalInsuredName": "Arise Homes LLC",
  "requirements": [
    {
      "title": "General Liability $1M / $2M",
      "scopeLevel": "entity",
      "documentCategory": "insurance",
      "policyType": "general_liability",
      "trackExpiration": true,
      "criteria": {
        "expiration": {
          "must_be_active": true
        },
        "limits": {
          "each_occurrence": {
            "min": 1000000
          },
          "general_aggregate": {
            "min": 2000000
          }
        }
      }
    },
    {
      "title": "Additional Insured (GL)",
      "scopeLevel": "entity",
      "documentCategory": "endorsement",
      "criteria": {
        "endorsement": {
          "appliesTo": [
            "general_liability"
          ],
          "token": "additional_insured"
        }
      }
    }
  ]
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

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

```csharp Compliance Profiles_createComplianceProfile_example
using RestSharp;

var client = new RestClient("https://api.tradeguardins.com/v1/organizations/organizationId/compliance-profiles");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"name\": \"Standard subcontractor\",\n  \"requiredAdditionalInsuredName\": \"Arise Homes LLC\",\n  \"requirements\": [\n    {\n      \"title\": \"General Liability $1M / $2M\",\n      \"scopeLevel\": \"entity\",\n      \"documentCategory\": \"insurance\",\n      \"policyType\": \"general_liability\",\n      \"trackExpiration\": true,\n      \"criteria\": {\n        \"expiration\": {\n          \"must_be_active\": true\n        },\n        \"limits\": {\n          \"each_occurrence\": {\n            \"min\": 1000000\n          },\n          \"general_aggregate\": {\n            \"min\": 2000000\n          }\n        }\n      }\n    },\n    {\n      \"title\": \"Additional Insured (GL)\",\n      \"scopeLevel\": \"entity\",\n      \"documentCategory\": \"endorsement\",\n      \"criteria\": {\n        \"endorsement\": {\n          \"appliesTo\": [\n            \"general_liability\"\n          ],\n          \"token\": \"additional_insured\"\n        }\n      }\n    }\n  ]\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Compliance Profiles_createComplianceProfile_example
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "name": "Standard subcontractor",
  "requiredAdditionalInsuredName": "Arise Homes LLC",
  "requirements": [
    [
      "title": "General Liability $1M / $2M",
      "scopeLevel": "entity",
      "documentCategory": "insurance",
      "policyType": "general_liability",
      "trackExpiration": true,
      "criteria": [
        "expiration": ["must_be_active": true],
        "limits": [
          "each_occurrence": ["min": 1000000],
          "general_aggregate": ["min": 2000000]
        ]
      ]
    ],
    [
      "title": "Additional Insured (GL)",
      "scopeLevel": "entity",
      "documentCategory": "endorsement",
      "criteria": ["endorsement": [
          "appliesTo": ["general_liability"],
          "token": "additional_insured"
        ]]
    ]
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api.tradeguardins.com/v1/organizations/organizationId/compliance-profiles")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

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()
```