---
title: "Get Merkle root"
method: GET
path: "/agents/{agent_id}/merkle-root"
tags: ["Verification"]
---

# Get Merkle root

`GET /agents/{agent_id}/merkle-root`

## Request

- Base URL: `https://api.mnemom.ai/v1`
- URL: `https://api.mnemom.ai/v1/agents/{agent_id}/merkle-root`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-Mnemom-Api-Key`
  - API key in cookie `mnemom_session`

Get the current Merkle tree root for an agent. The root is a SHA-256 hash that commits to the complete set of integrity checkpoints for this agent. Requires membership of the agent's org (any role); an unknown agent and an agent outside the caller's orgs both return the same 404. Third parties verify an agent through the public `GET /reputation/{agent_id}/verify` attestation instead.

## Path parameters

- `agent_id` string, required

## Response `200`

Merkle tree root and metadata

- MerkleRootResponse: Current Merkle tree root and metadata for an agent
  - `agent_id` string, required: The agent ID
  - `merkle_root` string, required: SHA-256 Merkle root hash (hex-encoded)
  - `tree_depth` integer, required: Depth of the Merkle tree (ceil(log2(leaf_count)))
  - `leaf_count` integer, required: Total number of checkpoint leaves in the tree
  - `last_updated` string, date-time, required: When the tree was last updated

## Other responses

- `400`: Bad request
- `401`: Authentication required
- `404`: Resource not found
- `429`: Rate-limit exceeded. The global per-IP limiter (100 requests/minute, applied to every `/v1/*` route) rejected this request. Back off until the window resets — `Retry-After` carries the cooldown in seconds and `X-RateLimit-Reset` the absolute reset time.
- `500`: Server error — request was well-formed but the server failed to fulfill it. Typically a downstream dependency (DB / RPC / external API) returned an unexpected error.
- `503`: An upstream dependency is currently unavailable. The request was not processed; retry after the cooldown window.

---

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