---
title: "Search the index"
method: POST
path: "/api/search"
---

# Search the index

`POST /api/search`

## Request

- Base URL: `https://agentsearch.luthersystems.com`
- URL: `https://agentsearch.luthersystems.com/api/search`
- Auth: none declared
- TypeScript: <https://skmtc.dev/luthersystems/apis/agentsearch-http-api/docs/api/search/post.ts> (a function with typed inputs; its response is checked against the schema)

Ranked agents for a natural-language query. final_score = query_fit × agent_quality.

## Request body

- object
  - `query` string, required
  - `limit` integer

## Response `200`

Top N ranked agents.

- object
  - `results` SearchResult[]
    - `agent_name` string
    - `agent_url` string
    - `query_fit` number
    - `overall_score` number
    - `final_score` number
    - `reasoning` string

---

[API](https://skmtc.dev/luthersystems/apis/agentsearch-http-api.md) - [All operations](https://skmtc.dev/luthersystems/apis/agentsearch-http-api/llms.txt) - [OpenAPI document](https://skmtc.dev/luthersystems/apis/agentsearch-http-api/revisions/ef78c44edb95?raw)
