Get call stats by day
curl --request GET \
--url https://api.pineyard.ai/analytics/by-day \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.pineyard.ai/analytics/by-day', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.pineyard.ai/analytics/by-day"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)[
{
"day": "<string>",
"total": 123,
"completed": 123,
"outcomes": {
"GOAL_MET": 123,
"DROPPED": 123,
"UNDECIDED": 123,
"NOT_INTERESTED": 123,
"NO_ANSWER": 123,
"VOICEMAIL": 123,
"FAILED": 123,
"TRANSFERRED": 123,
"OTHER": 123
}
}
]Analytics
Get call stats by day
One row per day (YYYY-MM-DD, India Standard Time) with total and completed calls and outcome counts.
GET
/
analytics
/
by-day
Get call stats by day
curl --request GET \
--url https://api.pineyard.ai/analytics/by-day \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.pineyard.ai/analytics/by-day', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.pineyard.ai/analytics/by-day"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)[
{
"day": "<string>",
"total": 123,
"completed": 123,
"outcomes": {
"GOAL_MET": 123,
"DROPPED": 123,
"UNDECIDED": 123,
"NOT_INTERESTED": 123,
"NO_ANSWER": 123,
"VOICEMAIL": 123,
"FAILED": 123,
"TRANSFERRED": 123,
"OTHER": 123
}
}
]Required scope:
analytics.viewAuthorizations
Your API key, e.g. pk_live_xxxxxxxxxxxxxxxxxxxxxxxx.
Query Parameters
Required range:
1 <= x <= 365Required range:
0 <= x <= 1
