Resolve with session
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 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
7Number of identical rooms with this configuration
Example
1Duration 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 rooms in this itinerary
Example
2Total number of adult guests across all rooms
Example
4User’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_RELAXResponses
Section titled “ Responses ”OK
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
The video you want to accompany this link
object
The transation url, or where to redirect to when clicking the CTA button.
Example
{ "type": "SELLABLE_INVENTORY_SLUG", "language": "en", "currency": "USD", "title": "", "description": "", "keywords": "", "uniqueId": "", "twitterAccount": "", "facebookAppId": "", "thirdPartyGoogleMeasurementId": "", "thirdPartyGoogleTagManagerContainerId": "", "image": "", "video": "", "transactUrl": ""}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
Internal Server Error
object
Example generated
{}