TryzenAPI
Stats

Workspace dashboard: sends, acceptances and replies over a range

GET
/v1/stats/dashboard

Access: an API key (or an org-wide key naming the workspace) with view on campaigns.

Sums of the daily campaign counters between from and to (UTC days YYYY-MM-DD, both included; default: the last 30 days, today included; at most 366 days). campaignId and senderId narrow every number to one campaign or one sender. series has one point per day, zeros included. Rates are outcome ÷ sends in the same range (null when nothing was sent), so over a short range an acceptance rate can exceed 1. Campaign progress is the leads' current state, not ranged. 422 range_inverted | range_too_long; 404 campaign_not_found | sender_not_found for an id that isn't in this workspace.

Authorization

apiKey
headerx-api-key<token>

Workspace API key (nrk_…), shown once when created

Query Parameters

from?string
Match^\d{4}-\d{2}-\d{2}$
to?string
Match^\d{4}-\d{2}-\d{2}$
campaignId?string
Match^[0-9a-f]{24}$
senderId?string
Match^[0-9a-f]{24}$

Response Body

Default Response

application/json
  1. response
range*
filters*
totals*
series*array<>
senders*array<>
campaigns*array<>
Example Request
curl -X GET 'https://api.tryzen.co/v1/stats/dashboard'
Example Response
{  "range": {    "from": "string",    "to": "string",    "days": 1  },  "filters": {    "campaignId": "string",    "senderId": "string"  },  "totals": {    "counts": {      "connSent": 0,      "connAccepted": 0,      "inviteWithdrawn": 0,      "msgSent": 0,      "msgReplied": 0,      "inmailSent": 0,      "inmailReplied": 0,      "voiceSent": 0,      "voiceReplied": 0,      "autotagged": 0,      "interested": 0,      "failed": 0,      "excluded": 0,      "finished": 0,      "profileViewed": 0,      "followed": 0,      "postLiked": 0    },    "rates": {      "acceptance": 0,      "messageReply": 0,      "inmailReply": 0,      "voiceReply": 0,      "interested": 0    }  },  "series": [    {      "day": "string",      "counts": {        "connSent": 0,        "connAccepted": 0,        "inviteWithdrawn": 0,        "msgSent": 0,        "msgReplied": 0,        "inmailSent": 0,        "inmailReplied": 0,        "voiceSent": 0,        "voiceReplied": 0,        "autotagged": 0,        "interested": 0,        "failed": 0,        "excluded": 0,        "finished": 0,        "profileViewed": 0,        "followed": 0,        "postLiked": 0      }    }  ],  "senders": [    {      "senderId": "string",      "name": "string",      "counts": {        "connSent": 0,        "connAccepted": 0,        "inviteWithdrawn": 0,        "msgSent": 0,        "msgReplied": 0,        "inmailSent": 0,        "inmailReplied": 0,        "voiceSent": 0,        "voiceReplied": 0,        "autotagged": 0,        "interested": 0,        "failed": 0,        "excluded": 0,        "finished": 0,        "profileViewed": 0,        "followed": 0,        "postLiked": 0      },      "rates": {        "acceptance": 0,        "messageReply": 0,        "inmailReply": 0,        "voiceReply": 0,        "interested": 0      },      "activeCampaigns": 0    }  ],  "campaigns": [    {      "campaignId": "string",      "name": "string",      "status": "draft",      "counts": {        "connSent": 0,        "connAccepted": 0,        "inviteWithdrawn": 0,        "msgSent": 0,        "msgReplied": 0,        "inmailSent": 0,        "inmailReplied": 0,        "voiceSent": 0,        "voiceReplied": 0,        "autotagged": 0,        "interested": 0,        "failed": 0,        "excluded": 0,        "finished": 0,        "profileViewed": 0,        "followed": 0,        "postLiked": 0      },      "rates": {        "acceptance": 0,        "messageReply": 0,        "inmailReply": 0,        "voiceReply": 0,        "interested": 0      },      "progress": {        "pending": 0,        "inSequence": 0,        "finished": 0,        "failed": 0,        "excluded": 0      }    }  ]}