---
title: "Search prompts"
method: POST
path: "/prompts/search"
tags: ["Prompts"]
---

# Search prompts

`POST /prompts/search`

## Request

- Base URL: `https://api.savanto.ai`
- URL: `https://api.savanto.ai/prompts/search`
- Auth: HTTP bearer

Semantic search across prompts with optional filters.

## Request body

- object
  - `text` string, required
  - `filters` object
    - `status` union
      - string
      - string[]
    - `categories` string[]
    - `tags` string[]
  - `limit` integer

## Response `200`

Search results

- object
  - `object` 'search_result', required
  - `requestId` string, required
  - `data` object, required
    - `items` Prompt[], required
      - `id` string
      - `title` string
      - `prompt` string, required
      - `description` string
      - `cannedResponse` string
      - `responseFormat` string
      - `overrideMode` string
      - `postIds` string[]
      - `productIds` string[]
      - `followUpIds` string[]
      - `tags` string[]
      - `categories` string[]
      - `status` string
      - `priority` number
      - `icon` string
      - `createdAt` string
      - `updatedAt` string
      - `activeFrom` string
      - `activeTo` string
      - `metadata` object
    - `pagination` Pagination, required
      - `total` number, nullable, required
      - `limit` number, required
      - `hasMore` boolean, required
      - `offset` number
      - `cursor` string, nullable
    - `query` object, required
      - `text` string, required
      - `filters` object
        - `status` union
          - string
          - string[]
        - `categories` string[]
        - `tags` string[]
      - `limit` number

## Other responses

- `400`: Validation error
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not found
- `409`: Conflict
- `413`: Payload too large
- `429`: Rate limit exceeded

---

[API](https://skmtc.dev/savanto/apis/savanto-api.md) · [All operations](https://skmtc.dev/savanto/apis/savanto-api/llms.txt) · [OpenAPI document](https://skmtc.dev/savanto/apis/savanto-api/revisions/82437327a878?raw)
