# Managed search

> Meilisearch instances with a scoped API key for full-text search.

Source: https://gheima.ma/docs/managed-search

Managed search gives you full-text search on Meilisearch, with typo tolerance and faceting, without running a server. Each instance comes with an API key that only works on indexes under your own prefix.

### Create an instance

Open Managed search, click "New instance", and give it a name. When it's running, click "Reveal connection" to get the host, API key, and index prefix. Start every index name with the prefix, for example <prefix>-products. The key can only reach indexes under it.

```bash
curl "$MEILI_HOST/indexes/$MEILI_INDEX_PREFIX-products/documents" \
  -H "Authorization: Bearer $MEILI_API_KEY" \
  -H 'Content-Type: application/json' \
  --data '[{"id":1,"title":"hello"}]'
```

Index a document with the returned credentials.

> Note: Rotating the key revokes the old one. Deleting the instance removes the key and every index under the prefix.

> Result: Your app has full-text search it can index and query with a scoped, revocable key.

---

All docs: https://gheima.ma/docs.md
