Show shareable link
const url = 'https://api.wink.travel/api/public/shareable-link/WNK7A?cid=summer-promo-2026&_gl=';const options = { method: 'POST', headers: { 'User-Agent': '', Host: '', Referer: '', '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/public/shareable-link/WNK7A?cid=summer-promo-2026&_gl=' \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'Host: ' \ --header 'Referer: ' \ --header 'User-Agent: ' \ --header 'Wink-Version: 2.0' \ --data nullResolves a 5-character share code into its bookable inventory, merging the posted user session and the caller’s geo-IP location, and records a view.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Five-character share code for the shortened URL
Example
WNK7AHeader Parameters
Section titled “Header Parameters ”User-Agent header from the request
Host header from the request
Referrer header from the request
Query Parameters
Section titled “Query Parameters ”Campaign identifier for tracking purposes
Example
summer-promo-2026Google Analytics 4 cross-site link ID
Request Body required
Section titled “Request Body required ”User session context including itinerary dates, room configuration, currency, language, and geo-IP location
User session information containing itinerary and other user related data.
object
Dates and travel info.
object
Check-in date (must be today or in the future)
Example
2026-07-15Check-out date (alternative to nights; nights takes precedence if both provided)
Example
2026-07-18Number of nights for the stay (alternative to endDate; takes precedence if both provided)
Example
3Room configurations for each room in the reservation
Room occupancy and guest composition for a single or multiple identical rooms
object
Number of adult guests in this room type
Example
2Child guests in this room, with age groups
Child guest with age and quantity in a room configuration
object
Count of children of this age group in the room
Example
2Age of each child in this group (years)
Example
7Example
{ "quantity": 2, "age": 7}Number of identical rooms with this configuration
Example
1Example
{ "adults": 2, "children": [ { "quantity": 2, "age": 7 } ], "quantity": 1}Duration in hours (rounded up) between check-in and check-out. Used for hourly bookings; e.g., meeting rooms or day-use venues.
Example
72Total number of children across all rooms
Example
1Total number of adult guests across all rooms
Example
4Total number of rooms in this itinerary
Example
2Example
{ "startDate": "2026-07-15", "endDate": "2026-07-18", "nights": 3, "items": [ { "adults": 2, "children": [ { "quantity": 2, "age": 7 } ], "quantity": 1 } ], "hours": 72, "children": 1, "guests": 4, "rooms": 2}User’s language preference (ISO 639-1 code)
Example
enUser’s currency preference (ISO 4217 code)
Example
USDIndex of the currently selected room configuration for rate retrieval
Example
0Preferred lifestyle category to filter accommodations
Example
LIFESTYLE_RELAXExample
{ "itinerary": { "startDate": "2026-07-15", "endDate": "2026-07-18", "nights": 3, "items": [ { "adults": 2, "children": [ { "quantity": 2, "age": 7 } ], "quantity": 1 } ], "hours": 72, "children": 1, "guests": 4, "rooms": 2 }, "language": "en", "currency": "USD", "promotionalCodes": [ "SUMMER2026" ], "selectedRoomConfigurationIndex": 0, "lifestyle": "LIFESTYLE_RELAX"}Responses
Section titled “ Responses ”Resolved bookable inventory with Open Graph metadata and booking URL
Base class for Open Graph redirect URL metadata used to generate rich social sharing links
object
The type of document the uniqueId links to
Which language the seller wanted to use
Which currency the seller is using
Link title
Link description
Comma-separated keyword values that can be used to populate HTML metadata
The URL ID that uniquely represents this link
Optional X account ID
Optional Facebook app ID
Optional 3rd party GA4 Measurement ID
Optional 3rd party GTM Container ID
The image you want to accompany this link
object
Social media channel used for sharing or promoting inventory
Type of media asset associated with a seller URL or inventory item
The video you want to accompany this link
object
Social media channel used for sharing or promoting inventory
Type of media asset associated with a seller URL or inventory item
The transation url, or where to redirect to when clicking the CTA button.
Example
{ "type": "SELLABLE_INVENTORY_SLUG", "language": "en", "currency": "USD", "title": "Luxury Bangkok Retreat - The Siam Residences", "description": "Discover exclusive offers at The Siam Residences - luxury residences in the heart of Bangkok with 5-star amenities and world-class service.", "keywords": "luxury hotel,Bangkok,residences,5-star,Thailand", "uniqueId": "WNK4ZQ7P", "twitterAccount": "SiamResidencesBKK", "facebookAppId": "1234567890123456", "thirdPartyGoogleMeasurementId": "G-ABC1D2E3F4G5H6I7", "thirdPartyGoogleTagManagerContainerId": "GTM-ABCD1234", "image": { "channel": "FACEBOOK", "url": "https://res.cloudinary.com/traveliko/image/upload/c_fill,g_auto,h_630,w_1200/v1494580393/siam-residences/lobby.png", "width": 1200, "height": 630, "type": "IMAGE", "mimeType": "image/png", "altText": "The Siam Residences lobby entrance" }, "video": null, "transactUrl": "https://wink.travel/properties/the-siam-residences-bangkok-thailand"}Bad Request — missing or invalid request parameter or body
object
object
Example
Unauthorized — authentication is required or the session has expired
object
object
Example
Forbidden — authenticated but lacking the required permission or scope
object
object
Example
Not Found — the requested resource does not exist
object
object
Example
Method Not Allowed — the HTTP verb is not supported on this endpoint
object
object
Example
Unsupported Media Type — use application/json
object
object
Example
Internal Server Error — an unexpected failure occurred on the server
object
object
Example
Service Unavailable — a downstream dependency is unreachable