---
title: "GET /api/automagic-dashboards/model_index/{model-index-id}/primary_key/{pk-id}"
method: GET
path: "/api/automagic-dashboards/model_index/{model-index-id}/primary_key/{pk-id}"
tags: ["/api/automagic-dashboards"]
---

# GET /api/automagic-dashboards/model_index/{model-index-id}/primary_key/{pk-id}

`GET /api/automagic-dashboards/model_index/{model-index-id}/primary_key/{pk-id}`

## Request

- Base URL: `` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/automagic-dashboards/model_index/{model-index-id}/primary_key/{pk-id}`
- Auth: API key in header `X-API-Key`

Return an automagic dashboard for the record of the model indexed by `model-index-id` whose primary key is
  `pk-id`. The record's value, used in the title, is read through the QP as the requesting user (never from
  `model_index_value`, which is not permission-checked); a `pk-id` they cannot resolve yields a dashboard titled
  by the pk, with no matching rows, rather than a 404.

## Path parameters

- `model-index-id` integer, required
- `pk-id` integer, required

## Response `2XX`

Successful response

## Other responses

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

## Changes

- **2026-03-09** `78297d193ca4`: 1 info
  - api operation id `get-api-automagic-dashboards-model_index-model-index-id-primary_key-pk-id` was added

[Operation history](https://skmtc.dev/metabase/apis/metabase-api/changes/api/automagic-dashboards/model_index/:model-index-id/primary_key/:pk-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.dev/metabase/apis/metabase-api/revisions/2e178f5a7934?raw)
