Skip to content

Retrieve a campaign by its ID

GET
/api/public/campaign/{secureCode}
curl --request GET \
--url https://api.wink.travel/api/public/campaign/example
secureCode
required
string

OK

Media type */*
object
campaignId

Campaign identifier

string
""
Example
campaign-456
hotelName

Name of the hotel associated with this campaign

string
""
Example
The Grand Hotel
posts

List of post assets belonging to this campaign

Array<object>
""
object
id

Post identifier

string
""
Example
post-123
imageUrl

URL of the post image

string
""
Example
https://cdn.example.com/image.jpg
imageAlt

Alt text for the post image

string
""
Example
Hotel exterior at sunset
downloadFileName

Suggested file name when downloading the image

string
""
Example
hotel-sunset.jpg

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

Internal Server Error

object
Example generated
{}