Skip to content

Account plan and current usage per brand (owner or admin)

GET
/v1/orgs/{org}/usage
curl --request GET \
--url https://api.replifier.com/v1/orgs/org_01hx0000000000000000000000/usage

Active contact: status = active with at least one active subscription to a non-deleted list (README, “Plans and usage”). Counters are recomputed hourly for brands with changes and daily for all brands; computedAt is the oldest one.

org
required
string
/^org_[a-z0-9]{26}$/

Example

org_01hx0000000000000000000000

Plan and usage

Media typeapplication/json
object
plan
required
object
state
required
string
Allowed values: trial free paid canceling
tierKey
required
string
cycle
required
string
nullable
Allowed values: month year
trialEndsAt
required
string
nullable
trialStartedAt
required

DAT-3222: start of the current trial; null outside a trial. Together with trialEndsAt it gives the duration

string
nullable
beta
required

DAT-3222: the current trial lasts longer than the standard trial (rules.trialDays): it is the closed beta (DAT-3221). Decided by duration, not by time remaining: it stays true during its last days. DAT-3295: it keeps describing the long trial after the general launch (GET /v1/meta launched); the dashboard then stops calling it beta

boolean
currentPeriodEnd
required
string
nullable
pendingTierKey
required
string
nullable
maxActiveContacts
required
integer
nullable
limits
required
object
monthlyEmails
integer
nullable
maxBrands
integer
nullable
monthlyNewContacts
integer
nullable
api
boolean
poweredByFooter
boolean
isolatedTracking
boolean
customTrackingDomain
boolean
queuePriority
integer
driveBytes
integer
nullable
videoMinutesStored
integer
nullable
eventDetailDays
integer
nullable
totals
required

Sum across all brands. Drive and video are a read-only aggregate: their limit is measured per brand (brands[].driveLevel, brands[].videoLevel)

object
activeContacts
required
integer
emailsProcessedMonth
required
integer
driveBytes
required
integer
videoMinutesStored
required
integer
brands
required
Array<object>
object
brandId
required
string
name
required
string
activeContacts
required
integer
emailsProcessedMonth
required
integer
driveBytes
required
integer
videoMinutesStored
required
integer
driveLevel
required

DAT-2943: Drive usage of THIS brand against plan.limits.driveBytes (the limit is per brand)

string
Allowed values: ok warned exceeded
videoLevel
required

DAT-2943: stored video of THIS brand against plan.limits.videoMinutesStored (the limit is per brand)

string
Allowed values: ok warned exceeded
computedAt
required
string
nullable
computedAt
required
string
nullable
history
required

M16.5: account active contacts per day (snapshots from the last 90 days)

Array<object>
object
day
required
string
value
required
integer
projection
required
object
today
required
integer
perDay
required

Daily rate (linear trend of the last basisDays snapshots, max 14)

number
basisDays
required
integer
periodEnd
required

Renewal, trial end or month end (Free)

string
daysLeft
required
integer
projected
required

today + perDay × daysLeft, never negative

integer
tierKey
required

Tier of the next charge (on a paid plan it only goes up; downgrading is manual)

string
maxActiveContacts
required
integer
nullable
tierChange
required
boolean
nextCharge
required

Estimated next charge in cents (server-side price)

object
total
required
integer
currency
required
string
cycle
required
string
Allowed values: month year
perBrand
required
integer
paidBrands
required
integer
alerts
required

Alerts for the current period (once per threshold, period and, for Drive and video, brand; also emailed to the owner)

Array<object>
object
kind
required
string
Allowed values: contacts_90 contacts_100 trial_80 trial_100 drive_80 drive_100 video_80 video_100
brandId
required

Brand of the Drive or video alert (the limit is per brand); null for contact and trial alerts

string
nullable
value
required
integer
threshold
required
integer
createdAt
required
string

Example

{
"plan": {
"state": "trial",
"cycle": "month"
},
"brands": [
{
"driveLevel": "ok",
"videoLevel": "ok"
}
],
"projection": {
"nextCharge": {
"cycle": "month"
}
},
"alerts": [
{
"kind": "contacts_90"
}
]
}

No session, expired session, or invalid, expired or revoked API key

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string

Example

{
"error": {
"code": "not_found"
}
}

Not allowed, API key missing the scope, IP not allowed, or request rejected (csrf_rejected)

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string

Example

{
"error": {
"code": "not_found"
}
}

Does not exist or is not visible to you

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string

Example

{
"error": {
"code": "not_found"
}
}

Internal error

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string

Example

{
"error": {
"code": "not_found"
}
}