Skip to content
vviinn DocsDocs Beta

Auto-Suggest

POST
/auto-suggest
curl --request POST \
--url https://api.vviinn.com/auto-suggest \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "query": "sneak" }'

This endpoint returns auto-complete suggestions for a partial search query. Each suggestion completes the entered text and may carry a direct link (url) — for example to a product or a landing page when a campaign maps the query to a specific target.

Auto Suggest request body

Media typeapplication/json
object
query
required
string
Example
sneak

OK

Media typeapplication/json
object
data
required
object
query
required
string
completions
required
Array<object>
object
suggestion
required
string
url
string format: uri
nullable
Example
{
"data": {
"query": "sneak",
"completions": [
{
"suggestion": "sneakers",
"url": "https://www.example.com/sneakers"
}
]
}
}

Generic Error

Media typeapplication/json
object
message
string
Example
{
"message": "Generic Error"
}

Generic Error

Media typeapplication/json
object
message
string
Example
{
"message": "Generic Error"
}