---
title: "Lint Metric"
method: POST
path: "/core/metrics/{metric_id}/lint"
tags: ["Metrics"]
---

# Lint Metric

`POST /core/metrics/{metric_id}/lint`

## Request

- Base URL: `https://api.anyreach.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.anyreach.ai/core/metrics/{metric_id}/lint`
- Auth: HTTP bearer

Abstractness lint (FR-C1..C6): static pass always; LLM
name-the-evidence + suggestions when llm=true (default); empirical
self-consistency over sample conversations when requested.
Warns and demonstrates — never hard-blocks (FR-C5).

## Path parameters

- `metric_id` string, required

## Headers

- `x-anyreach-org` string, nullable: Organization ID for user PATs (pat_ prefix tokens)

## Request body

- MetricLintRequest: Schema for POST /metrics/{id}/lint (FR-C1..C6).
  - `empirical` boolean
  - `llm` boolean
  - `sample_conversation_ids` string[]
  - `k` integer

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/anyreach/apis/anyreach-api.md) - [All operations](https://skmtc.dev/anyreach/apis/anyreach-api/llms.txt) - [OpenAPI document](https://skmtc.dev/anyreach/apis/anyreach-api/revisions/2eddf40c8c93?raw)
