---
title: "Verify an identity's model-swap hash chain"
method: GET
path: "/api/agent/identity/verify"
tags: ["Agent"]
---

# Verify an identity's model-swap hash chain

`GET /api/agent/identity/verify`

## Request

- Base URL: `http://localhost:38200`
- URL: `http://localhost:38200/api/agent/identity/verify`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `token`

Walks the chain from latest transition back to genesis, recomputing each row's hash.

## Query parameters

- `agent` string, required

## Response `200`

Chain-verification result.

- object
  - `ok` boolean
  - `broken_at_seq` integer, nullable
  - `total_checked` integer
  - `last_seq` integer, nullable
  - `reason` string: Present only when ok=false.

## Other responses

- `400`: Request body/query failed Zod validation.
- `401`: Missing or invalid credentials.

---

[API](https://skmtc.dev/contextq/apis/contextq-api.md) · [All operations](https://skmtc.dev/contextq/apis/contextq-api/llms.txt) · [OpenAPI document](https://skmtc.dev/contextq/apis/contextq-api/revisions/7afc44056a22?raw)
