Skip to content

Read Account Statistics

Tool name: get-account-statistics

Reads account dashboard statistics: total contacts counted against the contact limit (including pending and unsubscribed), the current contact limit, recent campaigns, top tags, daily list activity, email-provider shares and bounces. The days setting affects only daily activity. Activity counts subscriptions, unsubscriptions, SMS subscriptions, imports, bounces and complaints, not sends, opens or clicks; use get-campaign-statistics for one mailing. SMS open metrics are null.

Input schema

daysinteger, [ 1 .. 90 ]

How many days of daily activity to return, 1 through 90; the other blocks are unaffected

Default:30
accountIdnull or integer, >= 1

User ID of the account; omit for the account the access token works in

Default:null
Input example
{ "days": 30, "accountId": null }

Output schema

accountIdintegerrequired
daysintegerrequired
totalContactsintegerrequired
contactLimitinteger or nullrequired
recentCampaignsArray of objectsrequired
topTagsArray of objectsrequired
activityArray of objectsrequired
ispSharesArray of objectsrequired
bouncesArray of objectsrequired
Output example
{ "accountId": 0, "days": 0, "totalContacts": 0, "contactLimit": 0, "recentCampaigns": [ { "campaignId": 0, "name": "string", "sent": 0, "opensUnique": 0, "openRate": 0, "clicksUnique": 0, "clickRate": 0 } ], "topTags": [ { "tagId": 0, "name": "string", "contacts": 0, "addedToday": 0, "addedYesterday": 0, "addedDayBefore": 0 } ], "activity": [ { "date": "string", "subscriptions": 0, "unsubscriptions": 0, "smsSubscriptions": 0, "imports": 0, "hardBounces": 0, "softBounces": 0, "spamBounces": 0, "spamComplaints": 0 } ], "ispShares": [ { "domain": "string", "contacts": 0 } ], "bounces": [ { "bounceType": "string", "contacts": 0 } ] }