Retrieve the workspace's campaign counters.
Counters per UTC day from the rollup, at most about seven minutes behind; computed_at says
how far it had counted. The range defaults to the 30 days ending today and covers at most
366 days.
/v1/analyticsAuthorizationBearer token · headerrequiredAn API key (nb_live_…, nb_test_…), a workspace token (nbs_…) or a CLI token (nbc_…).
campaign_idId_CampaignOnly this campaign's counters.
step_idId_StepOnly this step's counters.
fromstringThe first UTC day (YYYY-MM-DD); default 29 days before to.
tostringThe last UTC day, included (YYYY-MM-DD); default today.
group_byGroupByday, campaign, step or variant.
daycampaignstepvariantThe counters.
computed_atTimestamp | nullShow propertiesHide properties
string<date-time>nulldataAnalyticsGroup[]requiredOne entry per group, ordered by the grouping; empty when not grouped.
Show propertiesHide properties
AnalyticsGroupcampaign_idstring | nullThe campaign, when grouped by campaign, step or variant.
countersCountersrequiredThe counters of a campaign, a step, a variant or a day, summed from campaign_daily_stats.
Show propertiesHide properties
bouncedinteger<int64>requiredMessages that could not reach their recipient for good.
clickedinteger<int64>requiredMessages with at least one human click.
complainedinteger<int64>requiredRecipients who complained.
deliveredinteger<int64>requiredMessages the recipient's server took.
openedinteger<int64>requiredMessages with at least one human open.
repliedinteger<int64>requiredMessages a person replied to.
sentinteger<int64>requiredMessages a provider accepted.
unsubscribedinteger<int64>requiredRecipients who unsubscribed.
dayDate | nullShow propertiesHide properties
string<date>nullstep_idstring | nullThe step, when grouped by step or variant.
variant_idstring | nullThe variant, when grouped by variant.
variant_versioninteger<int32> | nullThe variant's version, when grouped by variant: each published version counts apart.
fromDaterequiredThe first day counted (UTC).
group_byGroupBy | nullShow propertiesHide properties
stringnullhas_morebooleanrequiredThe grouping has more groups than data holds (at most 1,000).
toDaterequiredThe last day counted (UTC), included.
totalsCountersrequiredThe counters of a campaign, a step, a variant or a day, summed from campaign_daily_stats.
Show propertiesHide properties
bouncedinteger<int64>requiredMessages that could not reach their recipient for good.
clickedinteger<int64>requiredMessages with at least one human click.
complainedinteger<int64>requiredRecipients who complained.
deliveredinteger<int64>requiredMessages the recipient's server took.
openedinteger<int64>requiredMessages with at least one human open.
repliedinteger<int64>requiredMessages a person replied to.
sentinteger<int64>requiredMessages a provider accepted.
unsubscribedinteger<int64>requiredRecipients who unsubscribed.
No valid credential.
codestringrequiredThe code from the closed registry; programs branch on it, never on the text. New codes may be added.
detailstringrequiredWhat went wrong, for a person; never an internal cause.
errorsFieldError[]With validation_failed only: every invalid field.
Show propertiesHide properties
FieldErrorcodestringrequiredWhat is wrong (required, range, length, format, invalid, …).
detailstringrequiredA safe, human-readable explanation.
pointerstringrequiredRFC 6901 pointer into the body, or ?name for a query parameter.
instancestringrequiredThe request's path.
request_idstringrequiredThe request's id, also in X-Request-Id: what support needs to find the request.
retry_afterinteger<int64> | nullWith 429 and 503: the seconds to wait, as in Retry-After.
statusinteger<int32>requiredThe HTTP status.
titlestringrequiredFixed per code.
typestringrequiredhttps://docs.norbelys.com/errors/<code>, a page that explains the code.
The credential lacks analytics:read.
codestringrequiredThe code from the closed registry; programs branch on it, never on the text. New codes may be added.
detailstringrequiredWhat went wrong, for a person; never an internal cause.
errorsFieldError[]With validation_failed only: every invalid field.
Show propertiesHide properties
FieldErrorcodestringrequiredWhat is wrong (required, range, length, format, invalid, …).
detailstringrequiredA safe, human-readable explanation.
pointerstringrequiredRFC 6901 pointer into the body, or ?name for a query parameter.
instancestringrequiredThe request's path.
request_idstringrequiredThe request's id, also in X-Request-Id: what support needs to find the request.
retry_afterinteger<int64> | nullWith 429 and 503: the seconds to wait, as in Retry-After.
statusinteger<int32>requiredThe HTTP status.
titlestringrequiredFixed per code.
typestringrequiredhttps://docs.norbelys.com/errors/<code>, a page that explains the code.
A parameter is invalid, the range is reversed or longer than 366 days.
codestringrequiredThe code from the closed registry; programs branch on it, never on the text. New codes may be added.
detailstringrequiredWhat went wrong, for a person; never an internal cause.
errorsFieldError[]With validation_failed only: every invalid field.
Show propertiesHide properties
FieldErrorcodestringrequiredWhat is wrong (required, range, length, format, invalid, …).
detailstringrequiredA safe, human-readable explanation.
pointerstringrequiredRFC 6901 pointer into the body, or ?name for a query parameter.
instancestringrequiredThe request's path.
request_idstringrequiredThe request's id, also in X-Request-Id: what support needs to find the request.
retry_afterinteger<int64> | nullWith 429 and 503: the seconds to wait, as in Retry-After.
statusinteger<int32>requiredThe HTTP status.
titlestringrequiredFixed per code.
typestringrequiredhttps://docs.norbelys.com/errors/<code>, a page that explains the code.