Generate AI-suggested property profile for lead
const url = 'https://api.wink.travel/api/lead/f8c4e2a7-3d5b-4a9c-8e1f-2b6d9a0c5f47/profile/suggest';const options = { method: 'POST', headers: { 'Wink-Version': '2.0', Authorization: 'Bearer <token>', 'Content-Type': 'application/json' }, body: '{"language":""}'};
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/lead/f8c4e2a7-3d5b-4a9c-8e1f-2b6d9a0c5f47/profile/suggest \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'Wink-Version: 2.0' \ --data '{ "language": "" }'Generates a comprehensive AI-drafted property profile for the lead including descriptions, amenities, and metadata derived from the lead details and context you provide. This profile can be reviewed and edited before saving to the property.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Unique identifier of the lead to generate profile suggestions for
Example
f8c4e2a7-3d5b-4a9c-8e1f-2b6d9a0c5f47Header Parameters
Section titled “Header Parameters ”Request Body required
Section titled “Request Body required ”object
Language to use
Example
enResponses
Section titled “ Responses ”AI-suggested profile generated successfully
object
Website URL of the property
Property ambiance and atmosphere
Primary address line
Secondary address line (apartment, suite, etc.)
Tertiary address line
City name
Province or state
Postal or zip code
Country name
Contact phone number
Contact email address
Architectural style (e.g., Contemporary, Colonial, Art Deco)
Key design elements and aesthetic features
Historical significance or heritage status
Total number of rooms available
Star rating of the property
Location category code
Market segment (e.g., Luxury, Boutique, Business)
Property classification code
Architectural/design style code
Hotel chain affiliation if applicable
Brand or brand identity
Year the property was built or renovated
Example
{ "website": "", "ambiance": "", "address1": "", "address2": "", "address3": "", "city": "", "province": "", "postalCode": "", "country": "", "phoneNumber": "", "emailAddress": "", "architecture": "", "designElements": "", "historic": "", "numberOfRooms": "", "hotelStars": "", "locationCategory": "", "segment": "", "propertyClass": "", "style": "", "chain": "", "brand": "", "yearBuilt": ""}Bad Request
object
object
Example generated
{ "type": "https://example.com", "title": "example", "status": 1, "detail": "example", "instance": "https://example.com", "properties": { "additionalProperty": "example" }}object
object
object
object
object
object
object
object
Unauthorized
object
object
Forbidden
object
object
Lead not found
object
Website URL of the property
Property ambiance and atmosphere
Primary address line
Secondary address line (apartment, suite, etc.)
Tertiary address line
City name
Province or state
Postal or zip code
Country name
Contact phone number
Contact email address
Architectural style (e.g., Contemporary, Colonial, Art Deco)
Key design elements and aesthetic features
Historical significance or heritage status
Total number of rooms available
Star rating of the property
Location category code
Market segment (e.g., Luxury, Boutique, Business)
Property classification code
Architectural/design style code
Hotel chain affiliation if applicable
Brand or brand identity
Year the property was built or renovated
Example
{ "website": "", "ambiance": "", "address1": "", "address2": "", "address3": "", "city": "", "province": "", "postalCode": "", "country": "", "phoneNumber": "", "emailAddress": "", "architecture": "", "designElements": "", "historic": "", "numberOfRooms": "", "hotelStars": "", "locationCategory": "", "segment": "", "propertyClass": "", "style": "", "chain": "", "brand": "", "yearBuilt": ""}Internal Server Error
object
Example generated
{}