For AI agents: this page is also available as Markdown at /docs/agents.md. Every docs page is: add .md to its URL. llms.txt lists them all.
Guide for AI agents
This page addresses an AI agent. If you are a person, start with the Quickstart.
#What WarpSearch is
WarpSearch is a serverless hybrid search service: full-text (BM25), vector, geo and faceted search over JSON documents, plus analytics (facets, metrics, histograms). Data lives in collections: index JSON documents into one, then search it. Query it in SQL, Elasticsearch/OpenSearch Query DSL, Solr, Lucene or the native language, or point an existing Elasticsearch, OpenSearch or Solr client at it.
#Step 1: no API key yet
Connect to the MCP server https://api.warpsearch.io/mcp (streamable HTTP) without an Authorization header. It then offers only two tools, which sign your user up.
- Call
registerwith the email address your user gave you for this. Never guess an address. It must be a work address at your user's organization's own domain: free and personal mailbox providers (gmail.com, outlook.com and the like) are refused withpersonal_email, so ask for a work address instead. Optional:name,agent(who you are, shown to your user) androle:admin(the default),editor(can also create collections and change schemas),writer(index documents) orviewer(search and read). Ask foreditoror higher to create collections. - It returns a
user_codeand aclaim_token. Show the code to your user. Keep the token to yourself: whoever holds it receives the key. - Your user opens the email from WarpSearch, follows its link, checks that the page shows your
user_code, chooses the organization and your role, and approves. - When they say they are done, call
claim_registrationwith theclaim_token. While it answerspending, ask them to finish and call again, no more than every 10 seconds.approvedcarries theapi_key, shown once: store it securely. - Reconnect with
Authorization: Bearer <api_key>.
Requests expire after an hour, and each address gets at most 3 sign-up emails an hour. If denied comes back, do not register again unless your user asks you to. Your user can delete the key under API keys in the console.
MCP client configuration with a key:
{
"mcpServers": {
"warpsearch": {
"type": "http",
"url": "https://api.warpsearch.io/mcp",
"headers": { "Authorization": "Bearer ws_..." }
}
}
}
Claude Code: claude mcp add --transport http warpsearch https://api.warpsearch.io/mcp --header "Authorization: Bearer ws_..."
#Step 2: you have an API key
Keys start with ws_. Every request to https://api.warpsearch.io needs one; nothing is served anonymously except the MCP guide, server card and registration tools. Send it as Authorization: Bearer <key> (X-API-Key: <key> also works). Check it first:
curl -H "Authorization: Bearer $WARPSEARCH_API_KEY" https://api.warpsearch.io/v1/auth/me
It returns your roles, permissions and rate limits. Over MCP, whoami and list_collections do the same. Then pick the page for what you want to do:
| I want to ... | Read |
|---|---|
| Create a collection, or describe or change one | Collections |
| Load documents (batches, partial failures, large loads) | Ingesting documents |
| Know when a write is searchable, or retry safely | Writes, visibility and durability |
| Search by keyword, with filters, sorting and paging | Searching |
| Show matching snippets, or which query words a hit matched | Highlighting: highlight on POST /v1/search/{c} or the MCP search tool, with summary for match summaries |
| Search by vector, or combine keyword and vector | Vector search, Hybrid search |
| Group results, count, sum, histograms | Facets and aggregations |
| Search by location or area | Geo search |
| Search several collections at once | Multi-collection queries |
| Query in SQL, Lucene, PPL or Grafana syntax | Query languages, SQL |
| Move an Elasticsearch, OpenSearch or Solr client over | Elasticsearch (/compat/es: _bulk, _search, knn, _refresh), OpenSearch, Solr, turbopuffer |
| Define fields, analyzers and languages | Schemas and field types, Languages and text analysis |
| Walk relationships between documents | Graph search |
| Register queries and match documents against them | Match API |
| Load or benchmark a large dataset | Ingesting documents, then Limits and errors |
| Understand an error or a limit | Limits and errors |
| Call the REST API directly | REST API reference |
The REST API is https://api.warpsearch.io/v1; the compatible endpoints are https://api.warpsearch.io/compat/es, /compat/opensearch, /compat/solr and /compat/turbopuffer.
#Step 3: machine-readable files
- /llms.txt: index of the docs, one line per page.
- /llms-full.txt: the whole docs as one Markdown file.
- /openapi.yaml: OpenAPI 3.1 description of the REST API, no key needed.
- MCP Server Card, and
GET https://api.warpsearch.io/mcpwithoutAccept: text/event-stream: a short version of this guide. - /.well-known/ai-catalog.json and /.well-known/api-catalog: catalogs of the above.
- Every docs page is Markdown at
/docs/<page>.md.