Skip to content

Retrieve campaign content by secure token

GET
/api/public/campaign/{secureCode}
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.

secureCode
required
string
""

Secure token for accessing the campaign (case-sensitive alphanumeric string)

Example
dhjqv03qugd

Campaign sample retrieved successfully

Media type application/json
object
campaignId

Campaign identifier

string
""
hotelName

Name of the hotel associated with this campaign

string
""
posts

List of post assets (images, alt text, downloadable files) belonging to this campaign

Array<object>
""
object
id

Unique campaign post/asset identifier

string
""
imageUrl

HTTPS URL to the post image (Cloudinary CDN)

string
""
imageAlt

Alt text for accessibility and SEO

string
""
downloadFileName

Recommended filename for image download

string
""
key
additional properties
""
Example

Bad Request

object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
Example generated
{
"type": "https://example.com",
"title": "example",
"status": 1,
"detail": "example",
"instance": "https://example.com",
"properties": {
"additionalProperty": "example"
}
}

Unauthorized

Media type */*
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties

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

Campaign not found for the provided secure token

Media type */*
object
campaignId

Campaign identifier

string
""
Example
67b6eb7974467d589d892d75
hotelName

Name of the hotel associated with this campaign

string
""
Example
The Siam Residences, Bangkok
posts

List of post assets (images, alt text, downloadable files) belonging to this campaign

Array<object>
""
object
id

Unique campaign post/asset identifier

string
""
Example
67b6eb7974467d589d892d79
imageUrl

HTTPS URL to the post image (Cloudinary CDN)

string
""
Example
https://res.cloudinary.com/wink/image/upload/v1/campaign/savoy-hotel-exterior.jpg
imageAlt

Alt text for accessibility and SEO

string
""
Example
Hotel exterior at sunset
downloadFileName

Recommended filename for image download

string
""
Example
hotel-sunset.jpg

Internal Server Error

object
Example generated
{}