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

# Secretary of State and License Checks

> How TradeGuard checks a subcontractor's Secretary of State standing and contractor license automatically, what information it needs first, and how re-checks work.

# Secretary of State and license checks

A compliance profile can include two checks that don't come from a document:

* **Secretary of State check** (`reportSource: "cobalt_sos"`): the business is registered and active in its state, under the name on your subcontractor record.
* **License check** (`reportSource: "tradesapi_license"`): the subcontractor holds an active license for their trade where they work. When they have no license number, TradeGuard researches whether their trade needs one there.

If a subcontractor's profile includes either check, it **runs automatically**. You don't need to request it.

## What each check needs first

A check runs as soon as the subcontractor record has the information it needs. Until then, nothing is called or charged.

| Check              | Needs                                                                                                                       | Optional                                                                     |
| ------------------ | --------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------- |
| Secretary of State | `companyName` (or `firstName` + `lastName` for a sole proprietor), and `businessAddress.state` as the state of registration | `ein` (helps matching)                                                       |
| License            | `tradeCategory`, and `businessAddress.state` for where they work (add `city` if you know it)                                | `licenses` with `licenseNumber`, `licenseType` and `state`, if they have one |

Send these when you create the subcontractor (`POST /v1/subcontractors`), or add them later with `PATCH /v1/subcontractors/{subcontractorId}`. Adding the missing information starts the check right away.

## "Waiting on information"

While something is missing, the requirement's compliance record reads `pending` with a `statusReason` like:

```
Waiting on information: state of registration
```

`checkResult.informationNeeded` lists each missing field, and each one is a check row with `outcome: "waiting_on_information"`. The web app shows "Waiting on information" with the same list.

The same list comes back as `informationNeeded` on:

* `POST /v1/subcontractors` (create)
* `PATCH /v1/subcontractors/{subcontractorId}` (update)
* `POST /v1/subcontractors/{subcontractorId}/compliance-profiles` (attach a profile)
* `GET /v1/subcontractors/{subcontractorId}/reports/current`

```json
"informationNeeded": [
  {
    "source": "tradesapi_license",
    "check": "License check",
    "requirements": ["Contractor license"],
    "missing": [
      { "field": "tradeCategory", "label": "Trade (for example roofing or electrical)" }
    ]
  }
]
```

An empty list means nothing is missing.

## When the checks run

* **First check:** right away, when the subcontractor is added to the profile with everything the check needs, or as soon as the missing information is added.
* **A new or changed license:** when you add a license or change a license's number or state with `PATCH /v1/subcontractors/{subcontractorId}` ([Subcontractors](/api-reference/subcontractors)), or by editing the subcontractor in the dashboard, the license check runs again right away, even if it ran before. Each of these is a new paid lookup in production. Removing a license, or changing only its type, doesn't start a new lookup. The dashboard's **Run check** button doesn't start a lookup either: it re-scores the profile with the results already on file.
* **Re-checks:** once a year by default. To change this, set `reportCadenceDefault` on the profile, or a per-check cadence in `reportCadences` (`monthly`, `quarterly`, `semiannual`, `annual`, or `none` to turn re-checks off). The next re-check date is `schedule.nextRunAt` in `GET /v1/subcontractors/{subcontractorId}/reports/current`.

Each run sends the `report.completed` webhook. A run that finds a problem also sends `report.finding_flagged`, and any change to the requirement's status sends `compliance.status_changed`.

> **Note**
>
> In production these are paid lookups (about \$1 per Secretary of State search). In the sandbox they always return test data and are never charged.

## Changes since the last check

Each re-check is compared with the previous one:

* **The business is no longer active, or the license lapsed:** the requirement fails. The check row says what it was at the last check, and `checkResult.changesSinceLastCheck` describes the change.
* **The registered name or licensee name changed:** the requirement reads `under_review` while TradeGuard reviews it. The check row has `outcome: "needs_review"`. TradeGuard's decision holds until the next check.

## Does this subcontractor need a license here?

When a subcontractor has no license number, the license check researches whether their trade needs a license in their state or city. One answer is shared by every subcontractor in that trade and place for 180 days.

* **No license required:** the requirement reads `not_applicable`. Nothing is owed.
* **A license is required:** the requirement fails until a license is added, and says which license and which authority issues it.

The answer and its sources are on `checkResult.licenseDetermination`:

```json
"licenseDetermination": {
  "required": true,
  "trade": "roofing",
  "jurisdiction": { "state": "KS", "city": "Overland Park" },
  "licenseType": "Roofing Contractor License",
  "licensingAuthority": "City of Overland Park",
  "reasoning": "Overland Park requires roofing contractors to hold a city license.",
  "sources": [{ "url": "https://…", "title": "Contractor licensing" }]
}
```

The web app shows the same answer and sources on the subcontractor's Requirements tab.

## Adding the checks to a profile

Add a requirement with `reportSource` set, either with the profile or later. See [Set up a compliance profile by API](/getting-started/set-up-a-compliance-profile-by-api).

```json
{ "title": "Secretary of State", "scopeLevel": "entity", "reportSource": "cobalt_sos" }
```

```json
{ "title": "Contractor license", "scopeLevel": "entity", "reportSource": "tradesapi_license" }
```