Skip to navigation

Create a requirement

Adds one requirement to an existing profile. To set up a new profile with all of its requirements at once, use Create a compliance profile with requirements.

What you can create:

  • documentCategory: insurance with a policyType (required): minimum limits, policy rules and the policy’s own endorsement boxes.
  • documentCategory: endorsement: an endorsement rule across policies.
  • documentCategory: notice_of_cancellation: minimum days of notice.
  • documentCategory: certificate: the profile’s Certificate checks (at most one per profile; 409 if it already has one).
  • An uploaded document read and verified by AI: tax_form (W-9), training_cert (OSHA, First Aid, lift safety), safety_policy, workers_compensation_exemption and agreement, with criteria.documentType (see VerifiedDocumentCriteria).
  • A report requirement: set reportSource (for example cobalt_sos or tradesapi_license) and leave out documentCategory.

Licenses and background checks are stored only, not read: a requirement with documentCategory: license or background_check (and no reportSource) is a 400 with details[0].path: documentCategory. Licenses are checked by a license report requirement (reportSource: tradesapi_license); background checks will run through the background check API.

criteria is validated strictly: an unknown field, a limit that doesn’t belong to the policy type, or a wrong value type is a 400 naming the field (for example criteria.limits.each_ocurrence). See RequirementCriteria for every field.

Defaults filled when you leave them out: a new general liability requirement checks claimsBasis: occurrence, auto checks covered autos (coveredAutos.accepted: any auto, owned + hired + non-owned, or scheduled + hired + non-owned, plus noOwnedVehiclesException), workers comp checks statutory; send policyRules: {} for none. An additional insured on general liability checks ongoing and completed operations, and every endorsement must name the certificate holder; send null to turn either off.

Subcontractors already enrolled in the profile get a record for the new requirement and a check runs for each. Requires scope requirements:write.

Authentication

AuthorizationBearer

Session JWT or API key (ak_...)

Path parameters

profileIdstringRequiredformat: "uuid"

Request

This endpoint expects an object.
titlestringRequired<=255 characters
scopeLevelenumRequired
Allowed values:
descriptionstringOptional<=2000 characters
aiContextstringOptional<=5000 characters
Extra guidance for the document reader. Doesn't change how the requirement is judged.
documentCategoryenumOptional

What the requirement checks. Required unless reportSource is set. license and background_check are stored only and can’t be a document requirement (400).

policyTypeenumOptional

Required for insurance; leave out for the other categories.

reportSourceenum or nullOptional

Score this requirement from a business report instead of a document. documentCategory and reportDimension then default from the source.

Allowed values:
reportDimensionstring or nullOptional<=64 characters
enforcementLevelenumOptionalDefaults to required

track_only (Track only, don’t require) is stored and returned as preferred. See EnforcementLevel.

Allowed values:
conditionKeystringOptional

Required when enforcementLevel is conditional; see List condition keys.

requireNameMatchbooleanOptional

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.

requireGcNameMatchbooleanOptionalDefaults to false

Insurance: the certificate must list the profile’s requiredAdditionalInsuredName.

trackExpirationbooleanOptionalDefaults to false
Watch the policy's expiration and ask for a renewal before it lapses.
collectFullPolicybooleanOptionalDefaults to false
collectSignaturebooleanOptionalDefaults to false
verificationCadenceenumOptionalDefaults to on_expiration
Allowed values:
verificationMethodenumOptional
Allowed values:
criteriaobjectOptional

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.

isActivebooleanOptionalDefaults to true

false creates the requirement paused.

sortOrderintegerOptional>=0Defaults to 0

Response

The new requirement
dataobjectOptional

Errors

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