---
title: "POST /api/agent/v1/read-resource"
method: POST
path: "/api/agent/v1/read-resource"
tags: ["/api/agent"]
---

# POST /api/agent/v1/read-resource

`POST /api/agent/v1/read-resource`

## Request

- Base URL: `` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/agent/v1/read-resource`
- Auth: API key in header `X-API-Key`

Read one or more Metabase resources via metabase:// URI patterns.

  Calls the `read_resource` tool in `metabase.metabot.tools.resources` — the same record the agent
  loop calls, so URI dispatch, per-URI permission checks and the per-URI failure text are shared.
  A URI that cannot be read becomes that item's `:error`; the call still returns 200 with the items
  that did read. Each request accepts up to five URIs; oversized batches return 400 before any reads.

## Request body

- MetabaseAgentApiApiReadResourceRequest: Arguments for /v1/read-resource, shared with the tool declaration.
  - `uris` string[], required: A non-empty array of at most 5 URIs, each at most 4096 characters. Request fewer URIs or shorten them to fit these limits.

## Response `2XX`

Successful response

- MetabaseAgentApiApiReadResourceResponse: Response shape from /v1/read-resource. `:resources` is the per-URI result list; `:output` is the formatted XML string the LLM consumes.
  - `output` string, required
  - `resources` MetabaseAgentApiApiReadResourceItem[], required
    - `content` unknown
    - `error` string, nullable
    - `uri` string, required: value must be a non-blank string.

## Other responses

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

## Changes

- **2026-11-04** `2e178f5a7934`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/metabase/apis/metabase-api/changes/api/agent/v1/read-resource/post.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)
