API Reference
Hanzo Search API
Hanzo Search is a high-performance, typo-tolerant search engine
Hanzo Search is a high-performance, typo-tolerant search engine
All Hanzo APIs share one bearer credential and common error and pagination conventions. See API conventions.
curl -H "Authorization: Bearer $HANZO_API_KEY" https://search.hanzo.ai
| Method | Endpoint | Description |
|---|
GET | /v1/search/batches | List task batches |
GET | /v1/search/batches/{batchUid} | Get batch details |
| Method | Endpoint | Description |
|---|
GET | /v1/search/chats | List chat workspaces (experimental) |
| Method | Endpoint | Description |
|---|
GET | /v1/search/indexes/{indexUid}/documents | Browse documents |
POST | /v1/search/indexes/{indexUid}/documents | Add or replace documents |
PUT | /v1/search/indexes/{indexUid}/documents | Add or update documents (partial) |
DELETE | /v1/search/indexes/{indexUid}/documents | Delete all documents in the index |
GET | /v1/search/indexes/{indexUid}/documents/{documentId} | Get a single document |
DELETE | /v1/search/indexes/{indexUid}/documents/{documentId} | Delete a single document |
POST | /v1/search/indexes/{indexUid}/documents/delete-batch | Delete documents by IDs |
POST | /v1/search/indexes/{indexUid}/documents/delete | Delete documents by filter |
POST | /v1/search/indexes/{indexUid}/documents/edit | Edit documents using a function |
| Method | Endpoint | Description |
|---|
POST | /v1/search/dumps | Create a database dump |
| Method | Endpoint | Description |
|---|
GET | /v1/search/experimental-features | Get runtime-togglable experimental features |
PATCH | /v1/search/experimental-features | Toggle experimental features |
| Method | Endpoint | Description |
|---|
POST | /v1/search/export | Export index data |
| Method | Endpoint | Description |
|---|
POST | /v1/search/indexes/{indexUid}/facet-search | Search within facet values |
| Method | Endpoint | Description |
|---|
GET | /health | Health check |
| Method | Endpoint | Description |
|---|
GET | /v1/search/indexes | List all indexes |
POST | /v1/search/indexes | Create a new index |
GET | /v1/search/indexes/{indexUid} | Get index information |
PATCH | /v1/search/indexes/{indexUid} | Update index (primary key) |
DELETE | /v1/search/indexes/{indexUid} | Delete an index |
| Method | Endpoint | Description |
|---|
GET | /v1/search/keys | List API keys |
POST | /v1/search/keys | Create an API key |
GET | /v1/search/keys/{keyOrUid} | Get an API key |
PATCH | /v1/search/keys/{keyOrUid} | Update an API key |
DELETE | /v1/search/keys/{keyOrUid} | Delete an API key |
| Method | Endpoint | Description |
|---|
POST | /v1/search/logs/stream | Stream logs |
GET | /v1/search/logs/stderr | Get stderr log configuration |
PUT | /v1/search/logs/stderr | Update stderr log level |
DELETE | /v1/search/logs/stderr | Reset stderr log level to default |
| Method | Endpoint | Description |
|---|
POST | /v1/search/multi-search | Perform a multi-index search |
| Method | Endpoint | Description |
|---|
GET | /v1/search/network | Get network/federation configuration |
PATCH | /v1/search/network | Update network configuration |
| Method | Endpoint | Description |
|---|
GET | /v1/search/indexes/{indexUid}/search | Search documents (GET) |
POST | /v1/search/indexes/{indexUid}/search | Search documents (POST) |
| Method | Endpoint | Description |
|---|
GET | /v1/search/indexes/{indexUid}/settings | Get all index settings |
PATCH | /v1/search/indexes/{indexUid}/settings | Update index settings |
DELETE | /v1/search/indexes/{indexUid}/settings | Reset all settings to defaults |
| Method | Endpoint | Description |
|---|
POST | /v1/search/indexes/{indexUid}/similar | Find similar documents |
| Method | Endpoint | Description |
|---|
POST | /v1/search/snapshots | Create a database snapshot |
| Method | Endpoint | Description |
|---|
GET | /v1/search/stats | Get global statistics |
GET | /v1/search/indexes/{indexUid}/stats | Get index statistics |
GET | /metrics | Get Prometheus metrics |
| Method | Endpoint | Description |
|---|
POST | /v1/search/swap-indexes | Swap two index identifiers |
| Method | Endpoint | Description |
|---|
GET | /v1/search/tasks | List all tasks |
DELETE | /v1/search/tasks | Delete completed tasks |
GET | /v1/search/tasks/{taskUid} | Get task details |
POST | /v1/search/tasks/cancel | Cancel enqueued or processing tasks |
| Method | Endpoint | Description |
|---|
GET | /v1/search/version | Get server version |
| Method | Endpoint | Description |
|---|
GET | /v1/search/webhooks | Get webhook configuration |
PATCH | /v1/search/webhooks | Update webhook configuration |
DELETE | /v1/search/webhooks | Delete all webhooks |
Hanzo Search API guide · All Hanzo APIs · OpenAPI spec
How is this guide?