---
title: "Get contract integrity result"
method: GET
path: "/contracts/{id}/integrity"
tags: ["contracts"]
---

# Get contract integrity result

`GET /contracts/{id}/integrity`

Returns the current or most recent integrity check result for the specified contract.

## Path parameters

- `id` string, required

## Response `200`

Latest integrity check result.

- IntegrityCheckResult
  - `start` string, date-time, required — Time the integrity check started.
  - `end` string, date-time — Time the integrity check completed. Zero value if the check is still running.
  - `checkedSectors` integer, required — Number of sectors that have been checked so far.
  - `totalSectors` integer, required — Total number of sectors to check in the contract.
  - `badSectors` IntegritySectorResult[], required — List of sectors that failed the integrity check.
    - `expectedRoot` string, required — 256-bit blake2b hash.
    - `actualRoot` string, required — 256-bit blake2b hash.
    - `error` string — Error message if the sector could not be read. Omitted if readable.

## Other responses

- `404` — Integrity check not found.

## Changes

> 8 revisions in range; 1 could not be searched.

- **2025-10-08** `103993fc0091` — 2 breaking
  - the response property `badSectors/items/error` became nullable for the status `200`
  - the response property `end` became nullable for the status `200`

[Change history](https://skmtc.dev/siafoundation/apis/hostd-api/changes/contracts/:id/integrity/get.md)

---

[API](https://skmtc.dev/siafoundation/apis/hostd-api.md) · [All operations](https://skmtc.dev/siafoundation/apis/hostd-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/siafoundation/hostd-api/revisions/08ff756929fc/schema)
