blob client from Creating the client.
Rules
Rules set defaults and limits for every object under a prefix: visibility, expiration, maximum size, allowed extensions, cache and automatic deletion. They apply to every upload under the prefix, whether it comes from the SDK, an upload token or the dashboard. See Update Settings for plan limits and matching.rules.get()
created_at, and active_from when it has delete_after_days.
active_from is optional: the API only sends it for rules with delete_after_days. In TypeScript, handle it being undefined.rules.set(rules)
rules.get().
When a rule is rejected, the error’s
extra carries the offending prefix:
rules.get() is a read and is retried. rules.set() gets a single attempt.Stats
Stats are an estimate, cached by the server for 60 seconds.
billing.totalEstimate projects this month’s overage; it is not an invoice, since overage is billed on your plan’s cycle.In TypeScript, the
Stats type of version 4.2 doesn’t declare plan.legacy, overage, month.daily or the new billing fields yet. They are in the response: read them with a cast.403 PREFIX_NOT_ALLOWED: stats need a key for the whole account.
See Account Stats.
Next steps
S3
Reach Blob Storage with any S3 client.
Settings API reference
The REST endpoints behind these methods.

