---
title: "Get Log Column Catalog"
method: GET
path: "/api/v1/custom-metrics/log-columns"
tags: ["custom-metrics"]
---

# Get Log Column Catalog

`GET /api/v1/custom-metrics/log-columns`

Metadata-driven column catalog for the logs table (Metric Visibility panel).

Returns structural + standard columns (static registry, channel-filtered) and the
tenant's active custom metrics (from DB) as toggleable columns. Values for standard
columns are already on the log row; the frontend renders them via ``render``.

``channel`` is a ``Literal`` so FastAPI validates it (422 on anything else) and the
allowed values surface in the OpenAPI schema.

## Query parameters

- `channel` 'voice' | 'text' | 'email'

## Response `200`

Successful Response

- LogColumnCatalogResponse — GET /custom-metrics/log-columns -- columns for the logs table, by source.
  - `structural` LogColumnCatalogEntry[], required
    - `key` string, required
    - `label` string, required
    - `source` string, required
    - `category` string, required
    - `data_type` string, required
    - `render` string, required
    - `sortable` boolean, required
    - `filterable` boolean, required
    - `channels` string, required
    - `filter_options` string[], nullable
    - `response_type` string, nullable
  - `standard` LogColumnCatalogEntry[], required
    - `key` string, required
    - `label` string, required
    - `source` string, required
    - `category` string, required
    - `data_type` string, required
    - `render` string, required
    - `sortable` boolean, required
    - `filterable` boolean, required
    - `channels` string, required
    - `filter_options` string[], nullable
    - `response_type` string, nullable
  - `custom` LogColumnCatalogEntry[], required
    - `key` string, required
    - `label` string, required
    - `source` string, required
    - `category` string, required
    - `data_type` string, required
    - `render` string, required
    - `sortable` boolean, required
    - `filterable` boolean, required
    - `channels` string, required
    - `filter_options` string[], nullable
    - `response_type` string, nullable

## Other responses

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

---

[API](https://skmtc.dev/getanana/apis/cleon-api.md) · [All operations](https://skmtc.dev/getanana/apis/cleon-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/getanana/cleon-api/revisions/c0f54348e251/schema)
