Event summary counts
curl --request GET \
--url https://api.social-api.ai/v1/events/summary \
--header 'Authorization: <api-key>'const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.social-api.ai/v1/events/summary', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.social-api.ai/v1/events/summary"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"by_category": {},
"by_error_category": {},
"failed": 123,
"inbox_breakdown": {},
"retention_days": 123,
"total": 123,
"total_previous": 123
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
}
}Events
Event summary counts
Returns aggregated event counts for the requested window: totals, failure counts, breakdowns by category and error category, plus inbox-specific breakdown. Useful for dashboard summary cards.
GET
/
events
/
summary
Event summary counts
curl --request GET \
--url https://api.social-api.ai/v1/events/summary \
--header 'Authorization: <api-key>'const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.social-api.ai/v1/events/summary', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.social-api.ai/v1/events/summary"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"by_category": {},
"by_error_category": {},
"failed": 123,
"inbox_breakdown": {},
"retention_days": 123,
"total": 123,
"total_previous": 123
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
}
}Authorizations
Prefix your API key with "Bearer ". Example: Authorization: Bearer sapi_key_...