Skip to content
CirrusDocs

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

    • dataUsagerequired

      An 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)
      • period_startdate-timerequired
      • period_enddate-timerequired
      • emails_submittedintegerrequired
        format: int64
      • emails_sentintegerrequired
        format: int64
      • monthly_quotaintegerrequired

        The period's included emails.

        format: int64
      • remainingintegerrequired

        What can still be sent this period, the included emails left and then credits. Never negative.

        format: int64
      • credit_balanceintegerrequired

        Prepaid 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. Wait Retry-After seconds.
    • Retry-After header: How many seconds to wait before trying again.
    • RateLimit-Limit header: How many requests the limit that stopped this one allows per period.
    • RateLimit-Remaining header: How many requests are left in the current period.

    The body is the error envelope.

Example

Request
curl https://api.cirrusmail.example/v1/usage \
  -H "Authorization: Bearer $CIRRUS_API_KEY"
Response 200
{
  "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
  }
}