Skip to Content
Won.dev

Get sending capacity

How many emails you can send a day, what one costs, and the capacity added for your campaigns. Free.

GET https://api.won.dev/v1/email/capacity

How many emails this account can send a day and what one costs: $0.03 on the shared pool, $0.01 with a dedicated plan. Also lists the capacity added for your campaigns that is still being used up. When a campaign needs more than the shared pool can carry, mailboxes are added for it, and the campaign commits to $0.03 for each email they were added for: the emails it sends use the commitment up, and what is left after 30 days is charged. Free.

  • Billing: Free.

Parameters

This endpoint takes no parameters.

Response

Errors are described in Errors.

FieldTypeDescription
dataobjectHow much this account can send, and at what price.
data.typeshared | dedicatedshared while your emails leave from mailboxes other customers write from too, dedicated while you have a plan of mailboxes of your own.
data.daily_limitintegerThe most emails this account sends in a day, across all its campaigns.
data.sent_todayintegerEmails sent since midnight UTC.
data.price_per_emailnumberWhat one email sent costs now, in US dollars.
data.dedicatedobject | nullYour dedicated plan. Null when you never had one.
data.dedicated.statusactive | grace | endedactive, grace while a period could not be paid (it ends at grace_until unless the balance is topped up), or ended.
data.dedicated.daily_volumeintegerThe emails a day the plan is for.
data.dedicated.ready_per_dayintegerWhat your own mailboxes can send today. New mailboxes start slowly and reach full speed in about a week. Your campaigns send from them once this is as much as the account may send on the shared pool, or as the plan is for.
data.dedicated.price_per_periodnumberWhat one period of 30 days costs, in US dollars.
data.dedicated.period_startstringWhen the current period started, as an ISO 8601 time in UTC.
data.dedicated.period_endstringWhen it ends, and the next one is charged, as an ISO 8601 time in UTC.
data.dedicated.renewsbooleanWhether the next period is charged and the plan goes on.
data.dedicated.grace_untilstring | nullWith grace: when the plan ends unless the period is paid. Null otherwise.
data.commitmentsobject[]Sending capacity added for your campaigns, still being used up. Each email sent uses up its part; what is left at due_at is charged.
data.commitments[].campaign_idstringThe campaign the capacity was added for.
data.commitments[].emailsintegerThe emails committed to.
data.commitments[].emails_sentintegerHow many of them were sent.
data.commitments[].heldnumberWhat is still set aside for the rest, in US dollars.
data.commitments[].due_atstringWhen what is still held is charged, as an ISO 8601 time in UTC.
noticestring | nullA plain sentence when there is something to know about this answer. Null otherwise.
usageobjectNothing is charged here. The balance, for reference.
usage.costnumberWhat this call cost, in US dollars.
usage.balancenumberThe balance left after this call, in US dollars.
usage.replayedbooleanTrue when this is a repeat of a request from the last 24 hours. Repeats are free.

Example

curl "https://api.won.dev/v1/email/capacity" \
  -H "Authorization: Bearer $WON_API_KEY"
{
  "data": {
    "type": "shared",
    "daily_limit": 500,
    "sent_today": 112,
    "price_per_email": 0.03,
    "dedicated": null,
    "commitments": [
      {
        "campaign_id": "cmp_7p1q8w3e5r4k2m9x",
        "emails": 1500,
        "emails_sent": 620,
        "held": 26.4,
        "due_at": "2026-12-14T08:40:00.000Z"
      }
    ]
  },
  "notice": null,
  "usage": {
    "cost": 0,
    "balance": 48.08,
    "replayed": false
  }
}

A test key (won_test_...) runs this in the sandbox: nothing is sent and nothing is charged.

On this page