Get extracted-field summary
curl --request GET \
--url https://api.pineyard.ai/campaigns/{id}/business-intelligence \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.pineyard.ai/campaigns/{id}/business-intelligence', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.pineyard.ai/campaigns/{id}/business-intelligence"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"fields": [
{
"key": "<string>",
"type": "<string>",
"distribution": [
{
"value": "<string>",
"count": 123
}
],
"stats": {
"min": 123,
"max": 123,
"avg": 123,
"count": 123
}
}
],
"totalCallsWithExtraction": 123,
"totalCallsWithoutExtraction": 123
}Results & insights
Get extracted-field summary
Aggregated values of every extracted field across the campaign’s calls.
GET
/
campaigns
/
{id}
/
business-intelligence
Get extracted-field summary
curl --request GET \
--url https://api.pineyard.ai/campaigns/{id}/business-intelligence \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.pineyard.ai/campaigns/{id}/business-intelligence', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.pineyard.ai/campaigns/{id}/business-intelligence"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"fields": [
{
"key": "<string>",
"type": "<string>",
"distribution": [
{
"value": "<string>",
"count": 123
}
],
"stats": {
"min": 123,
"max": 123,
"avg": 123,
"count": 123
}
}
],
"totalCallsWithExtraction": 123,
"totalCallsWithoutExtraction": 123
}
