---
title: "GET /api/agent/v1/metric/{id}"
method: GET
path: "/api/agent/v1/metric/{id}"
tags: ["/api/agent"]
---

# GET /api/agent/v1/metric/{id}

`GET /api/agent/v1/metric/{id}`

Get details for a metric by ID.

## Path parameters

- `id` integer, required

## Query parameters

- `with-default-temporal-breakout` boolean, nullable
- `with-field-values` boolean, nullable
- `with-queryable-dimensions` boolean, nullable
- `with-segments` boolean, nullable

## Response `2XX`

Successful response

- MetabaseEnterpriseAgentApiApiMetric — A metric with its queryable dimensions and segments. The default_time_dimension_field_id is the field_id of the recommended time dimension for temporal breakouts.
  - `default_time_dimension_field_id` string, nullable
  - `description` string, nullable
  - `id` integer, required
  - `name` string, required
  - `queryable_dimensions` MetabaseEnterpriseAgentApiApiField[], nullable
    - `database_type` string, nullable
    - `description` string, nullable
    - `field_id` string, required
    - `field_values` unknown[], nullable
      - unknown
    - `name` string, required
    - `semantic_type` string, nullable
    - `type` 'boolean' | 'date' | 'datetime' | 'time' | 'number' | 'string' — A data type for a field derived from Metabase's type hierarchy.
  - `segments` MetabaseEnterpriseAgentApiApiSegment[], nullable
    - `description` string, nullable
    - `display_name` string, nullable
    - `id` integer, required
    - `name` string, required
  - `type` 'metric', required
  - `verified` boolean, nullable

## Other responses

- `4XX` — Client error response
- `5XX` — Server error response

## Changes

- **2026-03-09** `78297d193ca4` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/metabase/apis/metabase-api/changes/api/agent/v1/metric/:id/get.md)

---

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