> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cortex.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Eng Intelligence: Metrics

Use these operations to query aggregated metric data from [Eng Intelligence](/improve/eng-intelligence/eng-intelligence). You can group results and compare them across time periods.

### Required permissions

Your API key must have the `View Dev Metrics` permission, and your workspace must have Eng Intelligence enabled.

### Query workflow

1. Call **List available engineering metric definitions** first. It returns the metric keys, data sources, and the `groupBy`, filter, and aggregation options that each metric supports. Use the exact keys from that response when you build a query.
2. Call **Execute point-in-time engineering metrics queries** to get aggregated metric values. You can group the results and compare them against a prior period.
3. To see the individual event records behind those values (pull requests, deployments, and so on), use the [Eng Intelligence: Trace operation](/api/rest/eng-intel-trace).

Query results come back as `metadata` plus `rows`. Rows are positional, not keyed: the value at index `i` of each row corresponds to `metadata.columns[i]`. Queries are capped at a six-month date range, and trace queries at 500 rows per page.

## Operations

<Columns cols={2}>
  <Card title="List available engineering metric definitions" icon="code" href="/api/rest/eng-intel-metrics/list-available-engineering-metric-definitions">
    `GET /api/v1/eng-intel/registry/metrics/definitions`
  </Card>

  <Card title="Execute point-in-time engineering metrics queries" icon="code" href="/api/rest/eng-intel-metrics/execute-point-in-time-engineering-metrics-queries">
    `POST /api/v1/eng-intel/metrics/point-in-time`
  </Card>
</Columns>


## Related topics

- [Eng Intelligence](/improve/eng-intelligence.md)
- [Custom metrics](/improve/eng-intelligence/custom-metrics.md)
- [All Metrics (Legacy View)](/improve/eng-intelligence/eng-intelligence.md)
