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

# POST /api/agent/v1/search

`POST /api/agent/v1/search`

Search for tables and metrics.

  Supports both term-based and semantic search queries. Results are ranked using
  Reciprocal Rank Fusion when both query types are provided.

## Request body

- object
  - `semantic_queries` union
    - string[]
    - string
  - `term_queries` union
    - string[]
    - string

## Response `2XX`

Successful response

- MetabaseAgentApiApiSearchResponse — Search results containing tables and metrics matching the query.
  - `data` MetabaseAgentApiApiSearchResultItem[], required
    - `created_at` unknown
    - `database_id` integer, nullable
    - `database_schema` string, nullable
    - `description` string, nullable
    - `display_name` string, nullable
    - `id` integer, required
    - `name` string, required
    - `type` 'table' | 'metric', required
    - `updated_at` unknown
    - `verified` boolean, nullable
  - `total_count` integer, required

## Other responses

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

---

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