API reference
Usage
This month's sending against your allowance.
Get this month's sending against the quota.
GET/v1/usage
Needs an API key with the email:read scope. Operation getDeveloperUsage
Responses
- 200Usage
Consumption and quota for the current month.
object
dataUsagerequiredAn organisation's consumption in the current billing period (a calendar month, UTC). The allowance is the organisation's plan's (see the Billing routes).
Show fields (7)Fields (7)
period_startdate-timerequiredperiod_enddate-timerequiredemails_submittedintegerrequiredformat: int64emails_sentintegerrequiredformat: int64monthly_quotaintegerrequiredThe period's included emails.
format: int64remainingintegerrequiredWhat can still be sent this period, the included emails left and then credits. Never negative.
format: int64credit_balanceintegerrequiredPrepaid credits that can be spent now.
format: int64
- 401InvalidApiKey
unauthenticated: no API key was sent.invalid_api_key: the key is unknown, revoked or expired.
The body is the error envelope.
- 403InsufficientScope
insufficient_scope: the API key does not hold the scope this operation needs.account_suspended: the organisation is suspended; none of its keys work until that is lifted.account_closed: the organisation has been closed; none of its keys will work again.
The body is the error envelope.
- 429RateLimited
rate_limited: too many requests. WaitRetry-Afterseconds.
Retry-Afterheader: How many seconds to wait before trying again.RateLimit-Limitheader: How many requests the limit that stopped this one allows per period.RateLimit-Remainingheader: How many requests are left in the current period.
The body is the error envelope.
Example
curl https://api.cirrusmail.example/v1/usage \
-H "Authorization: Bearer $CIRRUS_API_KEY"{
"data": {
"period_start": "2026-01-15T09:30:00Z",
"period_end": "2026-01-15T09:30:00Z",
"emails_submitted": 0,
"emails_sent": 0,
"monthly_quota": 0,
"remaining": 0,
"credit_balance": 0
}
}