Count calls by type
curl --request GET \
--url https://api.pineyard.ai/calls/counts \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.pineyard.ai/calls/counts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.pineyard.ai/calls/counts"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"all": 123,
"outbound": 123,
"inbound": 123,
"live": 123,
"connected": 123
}Calls
Count calls by type
Real counts of calls by type for the activity filters (date-window and campaign-scope aware)
GET
/
calls
/
counts
Count calls by type
curl --request GET \
--url https://api.pineyard.ai/calls/counts \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.pineyard.ai/calls/counts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.pineyard.ai/calls/counts"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"all": 123,
"outbound": 123,
"inbound": 123,
"live": 123,
"connected": 123
}Required scope:
calls.view
