Rate limiting is now available as a platform-managed binding for Edge Compute functions. Declare per-key request limits in telnyx.toml and check them from your handler with no external service or KV namespace required.
telnyx.toml with [[ratelimits]] blocks. Each binding is exposed on the handler's env argument, so checking a limit is a single function call.telnyx-edge types generates rate limiter declarations automatically.Rate limiting joins the existing Edge Compute bindings for KV, StatefulActor, Object Storage, and SQLDB. The binding runs on the same platform as the function, so there is no network hop to an external service. The function calls the binding with a key, gets back a decision, and handles the response. Keys can be a user ID, tenant ID, or composite key like tenant:endpoint for per-route quotas.
telnyx-edge v0.4.0 or later.[[ratelimits]] block to your telnyx.toml with a name, limit, and period.env.YOUR_NAME.limit({ key: "..." }) from your handler to get a decision.Learn more in the Rate Limiting docs, try the Quick Start, or explore the API Reference.