Skip to content

API plans, limits and uptime

How to package an API so developers can start free, grow without surprises, and buy an uptime promise once production depends on it.

An API plan is an Offer whose Entitlements name the calls it allows and whose Limits say how many. Most APIs need three plans and one uptime promise, on the largest.

Three plans

Leaseline sells renewal dates by API. Its plans follow the shape most developer APIs settle on:

OfferMonthlyCallsPast the capRate
free$01,000 a monthRefused, naming growth5 a second
growth$9950,000 a monthA cent per call, through the Meter25 a second
scale$499500,000 a monthHalf a cent per call100 a second, and 99.9% uptime

The free plan is a Price of zero, so every developer who takes a key becomes a Customer you can see and reach. Keep it big enough to build a working prototype, and small enough that production needs a paid plan.

Bundles beat pure metering once a customer's usage is steady. A developer can predict $99, and nobody can predict a meter.

Quotas and rate limits

A quota caps calls per period and bills or refuses past it. A rate limit caps calls per second and protects the service. Both are Limits; they differ in period and in what happens past them.

Monthly or daily capRate limit
WindowA month or a dayA second or a minute
Resetscalendar, at the top of the period, so customers budget for itrolling, so a burst cannot game the reset
Past itThe Offer's atBound: stop, overage or upgrade429 rate-limited, with Retry-After

Every response carries RateLimit-Remaining and RateLimit-Reset, and the Portal shows each quota against its reset. Use overage on paid plans, because a refused call in production costs your customer more than the cent. Rate limits covers the mechanism.

Uptime

An uptime promise is a term on the Offer: the share of each month the API answers, and the credit owed below it.

JSON
{
  "uptime": {
    "target": 99.9,
    "credits": [
      { "below": 99.9, "percent": 10 },
      { "below": 99, "percent": 25 }
    ]
  }
}

A Monitor checks the API every minute from several regions, and the status page shows the month so far. At month end, each Customer owed a credit gets a Credit Grant on its next Invoice, with no claim to file.

Promise uptime only on plans a business depends on, and only what the last 90 days already show. Enterprise buyers ask for 99.9%; 99.99% allows about four minutes of downtime a month.

Next