---
title: "Autocomplete the user input"
method: GET
path: "/suggest-api/v1/{indexname}/suggest"
tags: ["Suggest"]
---

# Autocomplete the user input

`GET /suggest-api/v1/{indexname}/suggest`

Runs a suggestion request on the data of a certain index.

## Path parameters

- `indexname` string, required

## Query parameters

- `userQuery` string, required
- `limit` integer
- `filter` string

## Response `200`

successful found results

## Other responses

- `404` — tenant is unknown or index does not exist

## Changes

- **2021-10-22** `578b6c4c5ac1` — 1 breaking, 1 warning, 2 info
  - added the new path request parameter `indexname`
  - deleted the `path` request parameter `index`
  - api tag `Suggest` added
  - api tag `search` removed
- **2021-07-27** `6f3ea374c17b` — 1 info
  - endpoint added
- **2020-01-03** `5e91e5c71711` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/commerceexperts/apis/open-commerce-search-stack-api/changes/suggest-api/v1/:indexname/suggest/get.md)

---

[API](https://skmtc.dev/commerceexperts/apis/open-commerce-search-stack-api.md) · [All operations](https://skmtc.dev/commerceexperts/apis/open-commerce-search-stack-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/commerceexperts/open-commerce-search-stack-api/revisions/456d21198a04/schema)
