Retrieve campaign content by secure token
const url = 'https://api.wink.travel/api/public/campaign/dhjqv03qugd';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.wink.travel/api/public/campaign/dhjqv03qugd \ --header 'Authorization: Bearer <token>'Returns the public campaign sample (posts, images, metadata) associated with the given secure token. Used to render shareable campaign landing pages and asset galleries for external partners.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Secure token for accessing the campaign (case-sensitive alphanumeric string)
Example
dhjqv03qugdResponses
Section titled “ Responses ”Campaign sample retrieved successfully
object
Campaign identifier
Name of the hotel associated with this campaign
List of post assets (images, alt text, downloadable files) belonging to this campaign
object
Unique campaign post/asset identifier
HTTPS URL to the post image (Cloudinary CDN)
Alt text for accessibility and SEO
Recommended filename for image download
Example
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
Campaign not found for the provided secure token
object
Campaign identifier
Example
67b6eb7974467d589d892d75Name of the hotel associated with this campaign
Example
The Siam Residences, BangkokList of post assets (images, alt text, downloadable files) belonging to this campaign
object
Unique campaign post/asset identifier
Example
67b6eb7974467d589d892d79HTTPS URL to the post image (Cloudinary CDN)
Example
https://res.cloudinary.com/wink/image/upload/v1/campaign/savoy-hotel-exterior.jpgAlt text for accessibility and SEO
Example
Hotel exterior at sunsetRecommended filename for image download
Example
hotel-sunset.jpgInternal Server Error
object
Example generated
{}