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.

  1. Call register with 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 with personal_email, so ask for a work address instead. Optional: name, agent (who you are, shown to your user) and role: admin (the default), editor (can also create collections and change schemas), writer (index documents) or viewer (search and read). Ask for editor or higher to create collections.
  2. It returns a user_code and a claim_token. Show the code to your user. Keep the token to yourself: whoever holds it receives the key.
  3. 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.
  4. When they say they are done, call claim_registration with the claim_token. While it answers pending, ask them to finish and call again, no more than every 10 seconds. approved carries the api_key, shown once: store it securely.
  5. 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

View this page as Markdown

Cookie settings

Optional tracking stays off until you choose it. Your choice applies to this browser for 180 days. Read the details.

Essential storage keeps you signed in, protects forms, and remembers this choice. It is always available.