> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stateset.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Verify audit chain

> recompute the receipt audit chain

> [!WARNING]
>
> **Confirm your deployment before running this request.** This page describes an API contract;
> a published reference does not establish hosted availability. Check the dated
> [host report](/api-reference/hosts) and obtain your deployment URL and credentials.
> Replace the example host if your provisioned service uses a different URL.

Recompute the receipt audit chain.

### Response

`KernelAuditVerificationResponse`

**entries** `integer (int64)` *required*

Number of sealed receipts in the chain. Minimum: `0`.

**first\_invalid\_sequence** `integer,null (int64)`

First chain position that failed verification, if any.

**head\_hash** `string,null`

Hash of the newest sealed receipt, if any.

**valid** `boolean` *required*

Whether every link and every materialized receipt verified.

### Status codes

| Code | Meaning |
| - | - |
| `200` | Audit chain verification |
| `500` | — |

### Using this contract

Read the [source OpenAPI document](/spec/stateset-icommerce.json) for declared schemas and alternatives.
This page also includes documented corrections from the [spec overlays](https://github.com/stateset/docs/tree/main/spec/overlays).
Example IDs and values are illustrative; replace them with records from your workspace.

```bash cURL theme={null}
curl --silent --show-error --fail-with-body --request GET \
  --url 'https://api.stateset.com/api/v1/kernel/audit' \
  --header 'Authorization: Bearer YOUR_API_KEY'
```

```json 200 theme={null}
{
  "entries": 1,
  "first_invalid_sequence": 1,
  "head_hash": "string",
  "valid": true
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.