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', Authorization: 'Bearer <token>', '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 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'Wink-Version: 2.0' \ --data nullRuns a semantic vector-store similarity search against property embeddings for a resolved property. Returns only PUBLIC-sensitivity facts as Map<String, Object> with ‘text’ and ‘metadata’ keys. Optionally filters by fact type.
Authorizations
Section titled “Authorizations ”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 (HOTEL_CODE, URL_NAME, PLACE_ID, or PARTNER)
string
Example
PARTNER externalId
required
External identifier value
string
Example
BOOKING-987654 query
required
Natural language query
string
Example
What amenities and wellness facilities does this hotel offer? topK
Number of results to return
integer format: int32
Example
5 factTypes
Optional fact type filter (e.g. AMENITY, EXPERIENCE, INVENTORY)
Array<string>
Responses
Section titled “ Responses ”Search results retrieved successfully
Media type application/json
Array<object>
object
key
additional properties
Example generated
[ { "additionalProperty": "example" }]Invalid request (invalid topK range, namespace, or identifier)
Missing or invalid JWT authentication
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
Property not found for the given namespace and externalId
Media type application/json
Array<object>
object
key
additional properties
Example generated
[ { "additionalProperty": "example" }]Internal Server Error
object
Example generated
{}