---
title: "Search"
description: "The search endpoints of the HTTP API."
---

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

# Search

## GET /search

Search dashboards, observations, annotations, comments and saved searches by words.

Finds objects whose text contains every word of `q`, each exactly or by its English stem, ranked by relevance with newer objects first among near-equals. A caller finds only what it can open: a dashboard and its annotations and comments through the dashboard's folder, an observation, its comments and a saved search through the folder each is in, and a global annotation and its comments through General. Only the latest version of a dashboard is searched. `"quoted words"` match as a phrase, `or` between words matches either, `-word` excludes a word, and the last word also matches as a prefix unless the query ends in a space. Results stop after 200 per query; refine the words to see more.

### Parameters

| Name | In | Type | Description |
| --- | --- | --- | --- |
| `q` (required) | query | `string` | One to 200 characters with at least one letter or digit outside a `-` term and no control characters. |
| `kind` | query | array of `"dashboard"`, `"annotation"`, `"observation"`, `"comment"`, `"saved_search"` | Only results of these kinds; repeat the parameter for several. A kind named twice returns each result once. At most 5 items. |
| `cursor` | query | `string` | The `next_cursor` of the previous page. |
| `limit` | query | `integer` | Between 1 and 50. Default `20`. |

### Responses

| Status | Description | Body |
| --- | --- | --- |
| `200` | One page of results, best first. | [`SearchResultList`](/docs/reference/api/schemas/#searchresultlist) |
| `400` | The request is malformed or fails validation. | [`Error`](/docs/reference/api/schemas/#error) |
| `401` | Authentication is missing or invalid. | [`Error`](/docs/reference/api/schemas/#error) |
| `403` | The caller is not allowed to perform the request; a role that is too low is code `forbidden_role`. | [`Error`](/docs/reference/api/schemas/#error) |
| `500` | The server failed to handle the request. | [`Error`](/docs/reference/api/schemas/#error) |

Generated from [`api/openapi.yaml`](https://github.com/slashobserve/slashobserve/blob/c770e5e0/api/openapi.yaml) at `c770e5e0`. [Report a problem](https://github.com/slashobserve/slashobserve/issues/new).
