List available accounts
curl --request GET \
--url https://api.apostra.com/api/v2/buyer/advertisers/{advertiserId}/accounts/available \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.apostra.com/api/v2/buyer/advertisers/{advertiserId}/accounts/available"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.apostra.com/api/v2/buyer/advertisers/{advertiserId}/accounts/available', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"accounts": [
{
"accountId": "acc_acme_pinnacle",
"sources": [
{
"storefrontId": 0,
"storefrontName": "<string>",
"sourceId": "<string>",
"sourceName": "<string>"
}
],
"status": "active",
"credentialId": "42",
"name": "Acme c/o Pinnacle",
"advertiser": "Acme Corp",
"billingProxy": "Pinnacle Media",
"house": "acme-corp.com",
"billing": "advertiser"
}
],
"total": 8,
"synced": true,
"billingOptions": {
"default": "<string>",
"supported": [
"<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": {}
}
}Advertisers
List available accounts
Discover accounts available to link to an advertiser from a specific sales agent.
GET
/
advertisers
/
{advertiserId}
/
accounts
/
available
List available accounts
curl --request GET \
--url https://api.apostra.com/api/v2/buyer/advertisers/{advertiserId}/accounts/available \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.apostra.com/api/v2/buyer/advertisers/{advertiserId}/accounts/available"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.apostra.com/api/v2/buyer/advertisers/{advertiserId}/accounts/available', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"accounts": [
{
"accountId": "acc_acme_pinnacle",
"sources": [
{
"storefrontId": 0,
"storefrontName": "<string>",
"sourceId": "<string>",
"sourceName": "<string>"
}
],
"status": "active",
"credentialId": "42",
"name": "Acme c/o Pinnacle",
"advertiser": "Acme Corp",
"billingProxy": "Pinnacle Media",
"house": "acme-corp.com",
"billing": "advertiser"
}
],
"total": 8,
"synced": true,
"billingOptions": {
"default": "<string>",
"supported": [
"<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": {}
}
}Path Parameters
Query Parameters
Response
List available accounts
Response containing a list of available accounts from a partner