List generation-provider keys for an advertiser
curl --request GET \
--url https://api.interchange.io/api/v2/buyer/advertisers/{advertiserId}/creative/model-credentials \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.interchange.io/api/v2/buyer/advertisers/{advertiserId}/creative/model-credentials"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
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>",
"assignment": "advertiser",
"effective": true
}
]{
"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
List generation-provider keys for an advertiser
List the buyer’s generation-provider keys usable for this advertiser — its assigned keys plus the customer’s all-accounts keys — each carrying a label, assignment, status, a masked key hint (never the raw key), and effective: true on the one auto-selected for its provider. Requires buyer-generative-creative.
GET
/
advertisers
/
{advertiserId}
/
creative
/
model-credentials
List generation-provider keys for an advertiser
curl --request GET \
--url https://api.interchange.io/api/v2/buyer/advertisers/{advertiserId}/creative/model-credentials \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.interchange.io/api/v2/buyer/advertisers/{advertiserId}/creative/model-credentials"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
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>",
"assignment": "advertiser",
"effective": true
}
]{
"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"
Response
List generation-provider keys for an advertiser
Required range:
-9007199254740991 <= x <= 9007199254740991Available options:
ACTIVE, REVOKED, ERROR Available options:
advertiser, default