---
title: "Get Results For Logs"
method: POST
path: "/api/v1/custom-metrics/results-for-logs"
tags: ["custom-metrics"]
---

# Get Results For Logs

`POST /api/v1/custom-metrics/results-for-logs`

Batch-fetch the latest active-revision metric results for a page of log IDs.

Used by the logs table to populate metric-result columns.
Returns a mapping: log_id -> {metric_id -> result_summary}.

## Request body

- MetricResultsForLogsRequest — Request body for POST /custom-metrics/results-for-logs.
  - `voice_call_ids` string[]
  - `text_session_ids` string[]
  - `email_thread_ids` string[]

## Response `200`

Successful Response

- MetricResultsForLogsResponse — Batch result: log_id -> {metric_id -> summary}.
  - `results` object, required

## Other responses

- `401` — Authentication required
- `422` — Validation Error

## Changes

> 23 revisions in range; 1 not diffed.

- **2026-09-03** `d65b8fefae34` — 2 info
  - added the optional property `detail/items/ctx` to the response with the `422` status
  - added the optional property `detail/items/input` to the response with the `422` status

[Change history](https://skmtc.dev/getanana/apis/cleon-api/changes/api/v1/custom-metrics/results-for-logs/post.md)

---

[API](https://skmtc.dev/getanana/apis/cleon-api.md) · [All operations](https://skmtc.dev/getanana/apis/cleon-api/llms.txt) · [OpenAPI document](https://skmtc.dev/getanana/apis/cleon-api/revisions/0b211d6e9f84?raw)
