OSuiteStart free trial

Tokens and limits

Billing tokens, one per website; their limits, expiry, addresses, and the rate limit.

Billing tokens

Authorization: Bearer <a billing token>. Make one under Your account › API tokens, choosing Bill through the Billing API, one per website. Keep it on your server: never in a browser or an app people download. A site on serverless hosting (Vercel, Netlify, AWS Lambda) calls from changing addresses: leave the token’s address list empty, and expect a note to the token’s owner about each new address.

A billing token reaches only the Billing API, and each website sees only the invoices it made: one website’s token gets 404 for another’s.

Limits on a token

When making it: when it expires, the addresses it may be used from (such as 203.0.113.9 or 10.0.0.0/8), the largest invoice it may make and how many a day. Replace gives a new token with the same settings; the old one works 7 more days.

The rate limit

120 calls a minute for a token. Each answer carries X-RateLimit-Limit and X-RateLimit-Remaining; past the limit, 429 with Retry-After in seconds: wait that long and send again. A token may also have a largest invoice (over it, 422) and a number of invoices a day (past it, 429 with no Retry-After, as it lasts until tomorrow: do not retry). Set both above your largest real values.

What OSuite notices

Every call is logged for 30 days under Calls with your tokens. The token’s owner and administrators are told of a new address, a burst of calls, or many refused. An address sending many tokens that do not work is paused for ten minutes.

Also as Markdown. See the API reference for every field.