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

# Simulate a coverage verification outcome (sandbox only)

POST https://api.tradeguardins.com/v1/sandbox/coverages/{coverageId}/verification
Content-Type: application/json

Sets a coverage's verification status directly, simulating the outcome
of the broker verification call that runs in production. Coverages are
created with the default status `unverified`; use this endpoint to move
them into any other status and exercise the corresponding API responses,
`coverage.updated` webhooks, and compliance re-evaluation.

Sandbox only: requires a sandbox API key. A production key receives
`403`, so production compliance data can't be manipulated.

The simulation produces the full webhook chain a real verification does:
a `coverage.updated` event fires immediately, and compliance checks are
re-run for every requirement this coverage satisfies — each check whose
result changes emits `compliance.status_changed`.

Notes:
- The transition is recorded as a coverage event, so it appears in the
  subcontractor activity feed exactly like a real verification.
- Simulating `expired` backdates the coverage's `expirationDate` if it
  is missing or in the future, keeping the record consistent.

Requires scope `compliance:write`.


Reference: https://docs.tradeguardins.com/api-reference/sandbox/simulate-coverage-verification

## Authentication

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

## Request

### Path parameters

- `coverageId` (string, required)

### Body (application/json)

This endpoint expects an object.

- `status` (enum, required) — The status to set. `needs_review` and `superseded` cannot be simulated.
  - Allowed values: `unverified`, `active`, `inactive`, `expired`, `canceled`
- `expirationDate` (datetime, optional) — Optionally set a new expiration date, e.g. to simulate a policy renewal when reinstating an expired coverage.

## Response

### 200

The updated coverage

- `data` (Coverage, optional)
- `meta` (V1SandboxCoveragesCoverageIdVerificationPostResponsesContentApplicationJsonSchemaMeta, 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`.

## Types

### Coverage

- `id` (string, optional)
- `subcontractorId` (string, optional)
- `policyId` (string, optional, nullable) — The policy this coverage line belongs to.
- `policyType` (enum, optional) — 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`
- `policyNumber` (string, optional, nullable)
- `carrierName` (string, optional, nullable)
- `carrierNaic` (string, optional, nullable)
- `effectiveDate` (datetime, optional, nullable)
- `expirationDate` (datetime, optional, nullable)
- `status` (enum, optional) — Verification status of an insurance coverage. Coverages extracted from documents start as `unverified`; a broker verification call (production) or the sandbox simulation endpoint moves them to the other statuses. `needs_review` is held out of compliance pending review (e.g. an insured-name mismatch). TradeGuard's operations team resolves held coverages; there is no API call to approve or reject one. An approval moves the coverage to `unverified`, a rejection to `inactive`. See the "Documents Held for Review" guide for the webhooks that report the outcome. `superseded` was replaced by a newer coverage (`supersededByCoverageId`).
  - Allowed values: `unverified`, `active`, `inactive`, `expired`, `canceled`, `needs_review`, `superseded`
- `limits` (CoverageLimits, optional)
- `endorsements` (list of CoverageEndorsementsItems, optional) — Endorsements shown on the certificate. `appliesTo` lists the policy types the certificate grants each one on; an empty list means the certificate didn't say. Rows stored before structured endorsements may be plain token strings. A requirement for policy type P is only satisfied by an endorsement that applies to P (or has an empty `appliesTo`).
- `additionalRemarks` (CoverageAdditionalRemarks, optional) — ACORD 101 additional-remarks data from the certificate.
- `vehicles` (list of CoverageVehiclesItems, optional) — Scheduled vehicles (automobile liability only; empty otherwise).
- `confidence` (string, optional, nullable)
- `supersededByCoverageId` (string, optional, nullable) — Set when `status` is `superseded`.
- `verifiedBy` (enum, optional, nullable) — How the policy behind this coverage was verified with the insurer side: `call` (verification call), `email`, `broker_sent_coi` (the subcontractor's broker sent the certificate themselves, which counts as verification) or `ops` (TradeGuard staff). `null` when not verified yet.
  - Allowed values: `call`, `email`, `broker_sent_coi`, `ops`
- `verifiedAt` (datetime, optional, nullable) — When it was verified.
- `createdAt` (datetime, optional)
- `updatedAt` (datetime, optional)

### V1SandboxCoveragesCoverageIdVerificationPostResponsesContentApplicationJsonSchemaMeta

- `complianceChecksQueued` (integer, optional) — Number of compliance re-checks queued by this simulation

### ErrorDetailsItems

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

### CoverageLimits

### CoverageEndorsementsItems

- CoverageEndorsementsItems0
- string

### CoverageAdditionalRemarks

ACORD 101 additional-remarks data from the certificate.

### CoverageVehiclesItems

### CoverageEndorsementsItems0

- `token` (string, required)
- `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`
- `names` (list of string, optional) — Parties the endorsement names. Absent when the COI reader didn't report names for it.
- `blanket` (boolean, optional) — The reader saw blanket wording ("where required by written contract").
- `basis` (map from string to enum, optional) — Additional insured only. Operations covered per policy type.
  - Allowed values: `ongoing`, `completed`, `ongoing_and_completed`, `unspecified`
- `forms` (list of string, optional) — Endorsement form numbers on the certificate, as printed.
- `proof` (list of enum, optional) — Where the certificate shows the endorsement.
  - Allowed values: `checkbox`, `acord_101`, `description_of_operations`, `endorsement_page`
- `wording` (list of string, optional) — Description-of-operations sentences that mention the endorsement.
- `certificateHolderName` (string, optional, nullable)
- `confidence` (double, optional, nullable) — COI reader confidence for the endorsements (0 to 1).

## Examples

**Request**

```json
{
  "status": "unverified"
}
```

**Response**

```json
{
  "data": {
    "id": "string",
    "subcontractorId": "string",
    "policyId": "string",
    "policyType": "general_liability",
    "policyNumber": "string",
    "carrierName": "string",
    "carrierNaic": "string",
    "effectiveDate": "2024-01-15T09:30:00Z",
    "expirationDate": "2024-01-15T09:30:00Z",
    "status": "unverified",
    "limits": {},
    "endorsements": [
      {
        "appliesTo": [
          "general_liability"
        ],
        "basis": {
          "general_liability": "ongoing_and_completed"
        },
        "blanket": true,
        "certificateHolderName": "string",
        "confidence": 1.1,
        "forms": [
          "CG 20 10 04 13",
          "CG 20 37 04 13"
        ],
        "names": [
          "string"
        ],
        "proof": [
          "checkbox"
        ],
        "token": "additional_insured",
        "wording": [
          "string"
        ]
      }
    ],
    "additionalRemarks": {},
    "vehicles": [
      {}
    ],
    "confidence": "string",
    "supersededByCoverageId": "string",
    "verifiedBy": "call",
    "verifiedAt": "2024-01-15T09:30:00Z",
    "createdAt": "2024-01-15T09:30:00Z",
    "updatedAt": "2024-01-15T09:30:00Z"
  },
  "meta": {
    "complianceChecksQueued": 1
  }
}
```

**SDK Code**

```python
import requests

url = "https://api.tradeguardins.com/v1/sandbox/coverages/coverageId/verification"

payload = { "status": "unverified" }
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

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

print(response.json())
```

```javascript
const url = 'https://api.tradeguardins.com/v1/sandbox/coverages/coverageId/verification';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"status":"unverified"}'
};

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"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.tradeguardins.com/v1/sandbox/coverages/coverageId/verification"

	payload := strings.NewReader("{\n  \"status\": \"unverified\"\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
require 'uri'
require 'net/http'

url = URI("https://api.tradeguardins.com/v1/sandbox/coverages/coverageId/verification")

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  \"status\": \"unverified\"\n}"

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.post("https://api.tradeguardins.com/v1/sandbox/coverages/coverageId/verification")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"status\": \"unverified\"\n}")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.tradeguardins.com/v1/sandbox/coverages/coverageId/verification', [
  'body' => '{
  "status": "unverified"
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

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

```csharp
using RestSharp;

var client = new RestClient("https://api.tradeguardins.com/v1/sandbox/coverages/coverageId/verification");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"status\": \"unverified\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = ["status": "unverified"] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "https://api.tradeguardins.com/v1/sandbox/coverages/coverageId/verification")! 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()
```