OpenSLA
OpenSLA is a vendor-neutral specification for API service level agreements. It defines what you promise to your consumers — throughput, latency, quotas, and pricing — in a machine-readable format that the gateway enforces automatically.
What OpenSLA Defines
Section titled “What OpenSLA Defines”An OpenSLA document describes the contract between an API producer and its consumers:
| Section | What It Specifies |
|---|---|
| Metadata | API name, version, provider details |
| Guarantees | P95/P99 latency targets, availability percentage |
| Quotas | Daily/monthly/quarterly RU limits |
| Rate limits | Requests per minute (RPM), transactions per second (TPS) |
| Cost | RU cost rate per operation, currency |
Tiered Pricing
Section titled “Tiered Pricing”Producers define multiple SLA tiers to support different consumer needs:
| Tier | Rate Limit | RU Quota | Latency P95 | Price |
|---|---|---|---|---|
| Free | 10 RPM | 1,000 RU/month | Best effort | Free |
| Standard | 100 RPM | 50,000 RU/month | 200ms | Per-unit |
| Premium | 1,000 RPM | 500,000 RU/month | 100ms | Per-unit |
| Enterprise | Custom | Unlimited | 50ms | Custom |
Tiers are ordered — the system knows which tier is “above” the current one, enabling automatic upgrade recommendations.
How Tiers Work
Section titled “How Tiers Work”For Producers
Section titled “For Producers”- Define your tiers when creating or updating an API
- Set per-tier rate limits, RU quotas, latency guarantees, and pricing
- Each tier maps to a specific set of gateway enforcement rules
For Consumers
Section titled “For Consumers”- Browse available tiers in the developer portal or marketplace
- Select a tier manually, or let Apiway recommend one based on estimated usage
- The selected tier drives the subscription’s rate limits, RU quota, and cost model
Upgrade Flow
Section titled “Upgrade Flow”When a consumer consistently hits their tier’s limits:
- After 3+ budget/rate limit breaches in 30 days →
ConsumerSlaUpgradeRecommendedgovernance event - The event includes the recommended next tier
- Consumer can one-click upgrade → starts a governance flow
- Capacity planning validates the new tier has headroom
- New limits take effect after governance approval
Gateway Enforcement
Section titled “Gateway Enforcement”OpenSLA isn’t just documentation — the gateway enforces it:
| SLA Element | Gateway Enforcement |
|---|---|
| Rate limit (RPM) | RateLimitStage — fixed window, 429 on breach |
| RU quota | RuMeteringStage — tracks per subscription, 402 on exhaustion |
| TPS (spike arrest) | RateLimitStage — per-second throttling |
| Latency | Measured and reported; Assurance validates against targets |
Response headers expose the current state to consumers:
RateLimit-Limit: 100RateLimit-Remaining: 73X-RU-Limit: 50000X-RU-Remaining: 41200X-RU-Cost: 1Wealth Engine Integration
Section titled “Wealth Engine Integration”OpenSLA tiers are the foundation of API economics:
- Each tier has a defined RU cost rate
- Revenue is tracked per tier — producers see which tiers generate the most revenue
- The tier structure IS the monetisation plan
- The Wealth Engine reports revenue by tier across the entire API portfolio