Sync audiences
curl --request POST \
--url https://api.interchange.io/api/v2/buyer/advertisers/{accountId}/audiences/sync \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"audiences": [
{
"audienceId": "<string>",
"name": "<string>",
"add": [
{
"externalId": "<string>",
"hashedEmail": "a1b2c3d4e5f6...",
"hashedPhone": "f6e5d4c3b2a1...",
"uids": [
{
"type": "<string>",
"value": "<string>"
}
]
}
],
"remove": [
{
"externalId": "<string>",
"hashedEmail": "a1b2c3d4e5f6...",
"hashedPhone": "f6e5d4c3b2a1...",
"uids": [
{
"type": "<string>",
"value": "<string>"
}
]
}
],
"delete": true
}
]
}
'import requests
url = "https://api.interchange.io/api/v2/buyer/advertisers/{accountId}/audiences/sync"
payload = { "audiences": [
{
"audienceId": "<string>",
"name": "<string>",
"add": [
{
"externalId": "<string>",
"hashedEmail": "a1b2c3d4e5f6...",
"hashedPhone": "f6e5d4c3b2a1...",
"uids": [
{
"type": "<string>",
"value": "<string>"
}
]
}
],
"remove": [
{
"externalId": "<string>",
"hashedEmail": "a1b2c3d4e5f6...",
"hashedPhone": "f6e5d4c3b2a1...",
"uids": [
{
"type": "<string>",
"value": "<string>"
}
]
}
],
"delete": True
}
] }
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({
audiences: [
{
audienceId: '<string>',
name: '<string>',
add: [
{
externalId: '<string>',
hashedEmail: 'a1b2c3d4e5f6...',
hashedPhone: 'f6e5d4c3b2a1...',
uids: [{type: '<string>', value: '<string>'}]
}
],
remove: [
{
externalId: '<string>',
hashedEmail: 'a1b2c3d4e5f6...',
hashedPhone: 'f6e5d4c3b2a1...',
uids: [{type: '<string>', value: '<string>'}]
}
],
delete: true
}
]
})
};
fetch('https://api.interchange.io/api/v2/buyer/advertisers/{accountId}/audiences/sync', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"success": true,
"accountId": "25",
"operationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"taskId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"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
Sync audiences
Sync first-party CRM audiences for an account. Processing is asynchronous — returns 202 with an operation ID.
POST
/
advertisers
/
{accountId}
/
audiences
/
sync
Sync audiences
curl --request POST \
--url https://api.interchange.io/api/v2/buyer/advertisers/{accountId}/audiences/sync \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"audiences": [
{
"audienceId": "<string>",
"name": "<string>",
"add": [
{
"externalId": "<string>",
"hashedEmail": "a1b2c3d4e5f6...",
"hashedPhone": "f6e5d4c3b2a1...",
"uids": [
{
"type": "<string>",
"value": "<string>"
}
]
}
],
"remove": [
{
"externalId": "<string>",
"hashedEmail": "a1b2c3d4e5f6...",
"hashedPhone": "f6e5d4c3b2a1...",
"uids": [
{
"type": "<string>",
"value": "<string>"
}
]
}
],
"delete": true
}
]
}
'import requests
url = "https://api.interchange.io/api/v2/buyer/advertisers/{accountId}/audiences/sync"
payload = { "audiences": [
{
"audienceId": "<string>",
"name": "<string>",
"add": [
{
"externalId": "<string>",
"hashedEmail": "a1b2c3d4e5f6...",
"hashedPhone": "f6e5d4c3b2a1...",
"uids": [
{
"type": "<string>",
"value": "<string>"
}
]
}
],
"remove": [
{
"externalId": "<string>",
"hashedEmail": "a1b2c3d4e5f6...",
"hashedPhone": "f6e5d4c3b2a1...",
"uids": [
{
"type": "<string>",
"value": "<string>"
}
]
}
],
"delete": True
}
] }
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({
audiences: [
{
audienceId: '<string>',
name: '<string>',
add: [
{
externalId: '<string>',
hashedEmail: 'a1b2c3d4e5f6...',
hashedPhone: 'f6e5d4c3b2a1...',
uids: [{type: '<string>', value: '<string>'}]
}
],
remove: [
{
externalId: '<string>',
hashedEmail: 'a1b2c3d4e5f6...',
hashedPhone: 'f6e5d4c3b2a1...',
uids: [{type: '<string>', value: '<string>'}]
}
],
delete: true
}
]
})
};
fetch('https://api.interchange.io/api/v2/buyer/advertisers/{accountId}/audiences/sync', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"success": true,
"accountId": "25",
"operationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"taskId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"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
Body
application/json
Response
Sync audiences
Audience sync accepted for async processing
Advertiser ID (numeric string, e.g. "25") — same as the path parameter
Example:
"25"
Batch operation UUID for tracking async processing
Pattern:
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$Task ID for polling progress via GET /tasks/{taskId}. Same value as operationId.
Pattern:
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$⌘I