Skip to main content
POST
/
campaigns
/
{campaignId}
/
creatives
/
{creativeId}
/
preview
Preview creative
curl --request POST \
  --url https://api.interchange.io/api/v2/buyer/campaigns/{campaignId}/creatives/{creativeId}/preview \
  --header 'Authorization: Bearer <token>'
import requests

url = "https://api.interchange.io/api/v2/buyer/campaigns/{campaignId}/creatives/{creativeId}/preview"

headers = {"Authorization": "Bearer <token>"}

response = requests.post(url, headers=headers)

print(response.text)
const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};

fetch('https://api.interchange.io/api/v2/buyer/campaigns/{campaignId}/creatives/{creativeId}/preview', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
{
  "response_type": "<string>",
  "previews": [
    {
      "preview_id": "<string>"
    }
  ],
  "interactive_url": "<string>",
  "expires_at": "<string>"
}
{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}
{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}
{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}

Authorizations

Authorization
string
header
required

API key or access token

Path Parameters

campaignId
string
required

Campaign ID

Minimum string length: 1
creativeId
string
required

Creative manifest ID

Minimum string length: 1

Response

Preview creative

response_type
string
required
previews
object[]
required
interactive_url
string
expires_at
string
{key}
any