---
title: "Suggest Precondition Atom Endpoint"
method: POST
path: "/core/metrics/{metric_id}/suggest-precondition-atom"
tags: ["Metrics"]
---

# Suggest Precondition Atom Endpoint

`POST /core/metrics/{metric_id}/suggest-precondition-atom`

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

AI extract-to-atom: classify a criterion's free-text na_rule and
propose a deterministic predicate or an observable atom to make the
precondition reproducible. The author applies the proposal.

## Path parameters

- `metric_id` string, required

## Headers

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

## Request body

- SuggestAtomRequest: Schema for POST /metrics/{id}/suggest-precondition-atom (AI extract-to-atom). Classifies a criterion's free-text na_rule and proposes a deterministic predicate or an observable atom to replace it.
  - `criterion_key` string, required
  - `na_rule` 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)
