Auto-Suggest
POST
/auto-suggest
const url = 'https://api.vviinn.com/auto-suggest';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"query":"sneak"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Request Body
Section titled “Request Body”Auto Suggest request body
Media typeapplication/json
object
query
required
string
Example
sneakResponses
Section titled “Responses”OK
Media typeapplication/json
object
data
required
object
query
required
string
completions
required
Array<object>
object
suggestion
required
string
url
string format: uri
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"}