---
title: "Search documentation"
method: POST
path: "/v1/search/{domain}"
language: "en"
---

# Search documentation

`POST /v1/search/{domain}`

## Request

- Base URL: `https://api.mintlify.com/discovery`
- URL: `https://api.mintlify.com/discovery/v1/search/{domain}`
- Auth: HTTP bearer

Searches your documentation with semantic and keyword search, with configurable filtering and pagination.

Authenticate with an assistant API key. Search requests do not consume credits.

## Path parameters

- `domain` string, required

## Request body

- object
  - `query` string, required: The search query to execute against your documentation content.
  - `pageSize` integer: Number of search results to return. Must be between 1 and 50. Defaults to 10 if not specified.
  - `scoreThreshold` number: Minimum relevance score for results. Only results with a score at or above this threshold are returned. Must be between 0 and 1.
  - `filter` object: Optional filtering parameters to narrow search results.
    - `version` string: Filter results by documentation version.
    - `language` string: Filter results by content language.
    - `tag` string: Filter results by tag.
    - `groups` string[]: Optional groups of the user you're searching for. If you omit `groups`, results include public content only. On deployments where every page requires authentication, omitting `groups` works like an empty array. An empty array means a signed-in user with no groups: results also include pages open to any signed-in user. When you pass groups, results also include pages restricted to at least one of them. `<Visibility>` sections for signed-in readers or for specific groups follow the same rules. Mintlify doesn't verify group membership, so your backend must choose the groups for each user. On password-protected deployments that have public pages, pass an empty array to search pages that aren't marked public.

## Response `200`

Search results

- object[]
  - `content` string: The matching content from your documentation.
  - `path` string: The path or URL to the source document.
  - `metadata` object: Additional metadata about the search result.

## Other responses

- `400`: The `query` is missing or isn't a string, or `pageSize` or `filter` is invalid. The response body describes the error.
- `401`: The API key is missing or invalid.
- `403`: Your API key doesn't have access to this domain, your plan doesn't include assistant API access, or your request came from an IP address that isn't on your API key's allowlist.
- `404`: No documentation site exists for this domain, or the search returned no results.
- `429`: You exceeded the rate limit of 10,000 requests per hour per organization.
- `500`: An unexpected server error occurred. Retry the request. If the error continues, contact support.

## Changes

- **2026-10-30** `5437addb311d`: 6 info
  - added the non-success response with the status `400`
  - added the non-success response with the status `401`
  - added the non-success response with the status `403`
  - added the non-success response with the status `404`
  - …2 more
- **2026-07-23** `1635b19d3579`: 1 info
  - added the new optional request property `filter/groups`
- **2026-03-23** `8da4ddbc538e`: 1 breaking, 2 warning, 1 info
  - the `pageSize` request property type changed from `number` to `integer`
  - the `pageSize` request property's max was set to `50.00`
  - the `pageSize` request property's min was set to `1.00`
  - added the new optional request property `scoreThreshold`
- **2026-03-23** `275b3da7c8bb`: 1 info
  - added the new optional request property `filter/tag`
- **2026-02-02** `1ad1fcd52d84`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/mintlify/apis/mintlify-assistant-api/changes/v1/search/:domain/post.md)

---

[API](https://skmtc.dev/mintlify/apis/mintlify-assistant-api.md) - [All operations](https://skmtc.dev/mintlify/apis/mintlify-assistant-api/llms.txt) - [OpenAPI document](https://skmtc.dev/mintlify/apis/mintlify-assistant-api/revisions/8b13d509ec50?raw)
