Connect a generation-provider key for an advertiser
curl --request POST \
--url https://api.interchange.io/api/v2/buyer/advertisers/{advertiserId}/creative/model-credentials \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"apiKey": "<string>",
"label": "<string>"
}
'import requests
url = "https://api.interchange.io/api/v2/buyer/advertisers/{advertiserId}/creative/model-credentials"
payload = {
"apiKey": "<string>",
"label": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({apiKey: '<string>', label: '<string>'})
};
fetch('https://api.interchange.io/api/v2/buyer/advertisers/{advertiserId}/creative/model-credentials', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "<string>",
"customerId": 0,
"advertiserIds": [
"<string>"
],
"isDefault": true,
"providerType": "<string>",
"providerDisplayName": "<string>",
"label": "<string>",
"status": "ACTIVE",
"maskedKey": "<string>",
"connectedBy": "<string>",
"createdAt": "<string>",
"updatedAt": "<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": {}
}
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}Creatives
Connect a generation-provider key for an advertiser
Store a buyer generation-provider API key assigned to this advertiser so generation runs on the buyer’s own account. The raw key is held in the secret manager; only a reference and a masked hint are persisted. Requires buyer-generative-creative.
POST
/
advertisers
/
{advertiserId}
/
creative
/
model-credentials
Connect a generation-provider key for an advertiser
curl --request POST \
--url https://api.interchange.io/api/v2/buyer/advertisers/{advertiserId}/creative/model-credentials \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"apiKey": "<string>",
"label": "<string>"
}
'import requests
url = "https://api.interchange.io/api/v2/buyer/advertisers/{advertiserId}/creative/model-credentials"
payload = {
"apiKey": "<string>",
"label": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({apiKey: '<string>', label: '<string>'})
};
fetch('https://api.interchange.io/api/v2/buyer/advertisers/{advertiserId}/creative/model-credentials', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "<string>",
"customerId": 0,
"advertiserIds": [
"<string>"
],
"isDefault": true,
"providerType": "<string>",
"providerDisplayName": "<string>",
"label": "<string>",
"status": "ACTIVE",
"maskedKey": "<string>",
"connectedBy": "<string>",
"createdAt": "<string>",
"updatedAt": "<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": {}
}
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}Authorizations
API key or access token
Path Parameters
Unique identifier for the advertiser
Minimum string length:
1Example:
"12345"
Body
application/json
Response
Connect a generation-provider key for an advertiser
Required range:
-9007199254740991 <= x <= 9007199254740991Available options:
ACTIVE, REVOKED, ERROR