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

# Preview Metric

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

## 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}/preview`
- Auth: HTTP bearer

Test-as-you-author (FR-D6): run the judge over sample conversations
(no persistence) and show verdicts + evidence + self-consistency.

## Path parameters

- `metric_id` string, required

## Headers

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

## Request body

- MetricPreviewRequest: Schema for POST /metrics/{id}/preview — test-as-you-author (FR-D6).
  - `conversation_ids` string[], required
  - `k` integer
  - `instructions` string, nullable

## 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)
