Query Property Embeddings
POST
/api/property-embeddings/external/query
const url = 'https://api.wink.travel/api/property-embeddings/external/query';const options = { method: 'POST', headers: {'Wink-Version': '2.0', 'Content-Type': 'application/json'}, body: 'null'};
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.wink.travel/api/property-embeddings/external/query \ --header 'Content-Type: application/json' \ --header 'Wink-Version: 2.0' \ --data nullQuery the vector store for a property using an external identifier. Results are filtered to PUBLIC sensitivity only.
Parameters
Section titled “ Parameters ”Header Parameters
Section titled “Header Parameters ” Wink-Version
string
Request Body required
Section titled “Request Body required ” Media type application/json
Query property embeddings using an external identifier
object
namespace
required
Identifier namespace
string
externalId
required
External identifier value
string
Example
IN00011 query
required
Natural language query
string
Example
What amenities does this hotel offer? topK
Number of results
integer format: int32
factTypes
Optional fact type filter
Array<string>
Responses
Section titled “ Responses ”OK
Media type application/json
Array<object>
object
key
additional properties
Example generated
[ { "additionalProperty": "example" }]Bad Request
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
Example generated
{ "type": "https://example.com", "title": "example", "status": 1, "detail": "example", "instance": "https://example.com", "properties": { "additionalProperty": "example" }}object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
Unauthorized
Media type */*
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
Forbidden
Media type */*
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
Internal Server Error
object
Example generated
{}