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

# List monitoring runs for a subcontractor

GET https://api.tradeguardins.com/v1/subcontractors/{subcontractorId}/monitoring-runs

The subcontractor's continuous-monitoring runs, newest first, each with the verification calls placed under it (`calls`, newest first). A `pending` run is the scheduled next check; `unreachable` means attempts were exhausted and an operator must follow up. Not paginated.

Like verification calls, runs are shared across every organization the subcontractor is enrolled with, so this list is not filtered to your organization (a `document_collection` run is opened per organization).

Requires scopes `subcontractors:read` and `compliance:read`.

Reference: https://docs.tradeguardins.com/api-reference/monitoring/list-subcontractor-monitoring-runs

## Authentication

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

## Request

### Path parameters

- `subcontractorId` (string, required)

## Response

### 200

Monitoring runs, newest first

- `data` (list of MonitoringRun, 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

### MonitoringRun

- `id` (string, optional)
- `checkType` (enum, optional) — `insurance_verification` = periodic broker re-verification (shared across organizations); `document_collection` = operator item to collect a fresh certificate after a coverage expired (per organization).
  - Allowed values: `insurance_verification`, `document_collection`
- `cadence` (enum, optional) — Cadence snapshot taken from the subcontractor's compliance profiles.
  - Allowed values: `monthly`, `quarterly`, `on_change`, `on_expiration`, `one_time`
- `channel` (enum, optional)
  - Allowed values: `call`
- `status` (enum, optional) — `pending` scheduled next check (`dueAt` = when it fires); `in_progress` calls running; `verified` broker confirmed every policy; `not_verified` broker answered but not every policy was confirmed; `unreachable` attempts exhausted, awaiting an operator; `resolved` resolved by an operator; `canceled` pending check retired (subcontractor no longer eligible).
  - Allowed values: `pending`, `in_progress`, `verified`, `not_verified`, `unreachable`, `resolved`, `canceled`
- `dueAt` (datetime, optional)
- `startedAt` (datetime, optional, nullable)
- `completedAt` (datetime, optional, nullable)
- `escalatedAt` (datetime, optional, nullable)
- `nextAction` (string, optional, nullable) — Next scheduled action for an open run — e.g. `scheduled_call`, `retry_call`, `email_outreach`, `collect_document`, `awaiting_manual`.
- `nextActionAt` (datetime, optional, nullable)
- `attemptNumber` (integer, optional, nullable)
- `resolutionNote` (string, optional, nullable)
- `createdAt` (datetime, optional)
- `calls` (list of VerificationCall, optional) — Verification calls placed under this run, newest first.

### ErrorDetailsItems

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

### VerificationCall

A producer (broker) verification call. The raw call-analysis blob is not exposed; its useful signals are flattened into `callSuccessful`, `inVoicemail`, `summary` and `verifiedPolicies`.

- `id` (string, optional)
- `status` (enum, optional)
  - Allowed values: `scheduled`, `initiated`, `in_progress`, `completed`, `no_answer`, `voicemail`, `failed`, `canceled`
- `attemptNumber` (integer, optional) — Attempt number within the verification workflow (1-based).
- `policyNumber` (string, optional, nullable) — The primary policy number this call verifies (kept for back-compat; see `policies`).
- `policies` (list of VerificationCallPoliciesItems, optional) — Every policy this call verifies (one call covers every policy on a certificate).
- `verified` (boolean, optional, nullable) — Overall outcome; null until the call has a result.
- `durationSeconds` (integer, optional, nullable)
- `scheduledFor` (datetime, optional, nullable)
- `initiatedAt` (datetime, optional, nullable)
- `completedAt` (datetime, optional, nullable)
- `createdAt` (datetime, optional)
- `producer` (VerificationCallProducer, optional) — The producer (agency) that was called.
- `callSuccessful` (boolean, optional, nullable) — Whether the call achieved its goal, per post-call analysis; null when not analyzed.
- `inVoicemail` (boolean, optional, nullable) — Whether the call reached voicemail; null when not analyzed.
- `summary` (string, optional, nullable) — Post-call summary.
- `verifiedPolicies` (list of VerificationCallVerifiedPoliciesItems, optional) — Per-policy results reported by the broker (empty when none).
- `transcript` (string, optional, nullable)

### VerificationCallPoliciesItems

- `policyNumber` (string, optional, nullable)
- `coverageTypes` (string, optional) — Human-readable coverage description read to the broker.

### VerificationCallProducer

The producer (agency) that was called.

- `agencyName` (string, optional)
- `phone` (string, optional)

### VerificationCallVerifiedPoliciesItems

- `policyNumber` (string, optional, nullable)
- `status` (string, optional) — Raw result string from the call (e.g. `verified`, `active`, `canceled`, `not_found`); not normalized.

## Examples

**Response**

```json
{
  "data": [
    {
      "id": "string",
      "checkType": "insurance_verification",
      "cadence": "monthly",
      "channel": "call",
      "status": "pending",
      "dueAt": "2024-01-15T09:30:00Z",
      "startedAt": "2024-01-15T09:30:00Z",
      "completedAt": "2024-01-15T09:30:00Z",
      "escalatedAt": "2024-01-15T09:30:00Z",
      "nextAction": "string",
      "nextActionAt": "2024-01-15T09:30:00Z",
      "attemptNumber": 1,
      "resolutionNote": "string",
      "createdAt": "2024-01-15T09:30:00Z",
      "calls": [
        {
          "id": "string",
          "status": "scheduled",
          "attemptNumber": 1,
          "policyNumber": "string",
          "policies": [
            {
              "policyNumber": "string",
              "coverageTypes": "string"
            }
          ],
          "verified": true,
          "durationSeconds": 1,
          "scheduledFor": "2024-01-15T09:30:00Z",
          "initiatedAt": "2024-01-15T09:30:00Z",
          "completedAt": "2024-01-15T09:30:00Z",
          "createdAt": "2024-01-15T09:30:00Z",
          "producer": {
            "agencyName": "string",
            "phone": "string"
          },
          "callSuccessful": true,
          "inVoicemail": true,
          "summary": "string",
          "verifiedPolicies": [
            {
              "policyNumber": "string",
              "status": "string"
            }
          ],
          "transcript": "string"
        }
      ]
    }
  ]
}
```

**SDK Code**

```python
import requests

url = "https://api.tradeguardins.com/v1/subcontractors/subcontractorId/monitoring-runs"

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

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

print(response.json())
```

```javascript
const url = 'https://api.tradeguardins.com/v1/subcontractors/subcontractorId/monitoring-runs';
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/subcontractors/subcontractorId/monitoring-runs"

	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/subcontractors/subcontractorId/monitoring-runs")

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/subcontractors/subcontractorId/monitoring-runs")
  .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/subcontractors/subcontractorId/monitoring-runs', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

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

```csharp
using RestSharp;

var client = new RestClient("https://api.tradeguardins.com/v1/subcontractors/subcontractorId/monitoring-runs");
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/subcontractors/subcontractorId/monitoring-runs")! 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()
```