---
title: "Returns an autocomplete suggestion"
method: GET
path: "/suggestion/autocomplete/{id}"
tags: ["Suggestions autocomplete"]
---

# Returns an autocomplete suggestion

`GET /suggestion/autocomplete/{id}`

## Request

- The document declares no server URL.
- Auth: API key in header `TWN-InstanceKey` and API key in header `TWN-Authentication`

## Path parameters

- `id` integer, required

## Response `200`

OK

- AutocompleteSuggestionApiModel
  - `Id` integer
  - `CategoryId` integer, nullable
  - `Items` AutocompleteSuggestionItemApiModel[]
    - `ItemId` integer
    - `Type` 'SearchPhrase' | 'Category' | 'Facet' | 'Product'
    - `GroupName` string, nullable
    - `AttributeId` integer, nullable
    - `SuggestionsToShow` integer, nullable
    - `GroupFirstResultOnCategory` boolean
    - `Active` boolean, nullable
    - `Order` integer, nullable
    - `ItemTypes` string[]
    - `ExcludedCategories` integer[]
    - `PrioritizedCategories` AutocompleteSuggestionItemCategoryOrderApiModel[]
      - `CategoryId` integer
      - `Order` integer

## Other responses

- `404`: Not Found

---

[API](https://skmtc.dev/tweakwise/apis/app-api.md) - [All operations](https://skmtc.dev/tweakwise/apis/app-api/llms.txt) - [OpenAPI document](https://skmtc.dev/tweakwise/apis/app-api/revisions/dc936bf76941?raw)
