An [API gateway](https://konghq.com/blog/learning-center/what-is-an-api-gateway)API gateway acts as the front door to your architecture, providing a single entry point for all external requests. It also abstracts backend complexity, allowing clients to interact with your services through a unified interface.
Below is a rundown of the core functions.
**External policy enforcement**
Operating at the edge, API gateways enforce security policies and apply business logic before traffic ever reaches your services, through several core capabilities, such as:
- - **Authentication and authorization — **API gateways enforce strong authentication and authorization to ensure that only trusted users and applications can access your services. They support industry-standard mechanisms such as JWT token validation, OAuth 2.0, and OpenID Connect (OIDC), API key management, and SAML assertions to verify identity at the edge. Combined with role-based and attribute-based access controls, these capabilities allow organizations to define granular permissions and consistently enforce security policies across APIs.
- - **Rate limiting and quotas — **To maintain performance and protect backend systems, API gateways regulate how traffic is consumed. Features such as per-consumer limits, API plan enforcement, and spike arrest mechanisms help prevent abuse while stabilizing traffic during sudden demand surges. Monthly or daily quotas and subscription tier management further enable organizations to align API usage with business models, ensuring fair access while supporting scalable growth.
- - **Request/response transformation — **API gateways also provide powerful request and response transformation capabilities that decouple clients from backend services. Teams can manipulate headers and payloads, convert protocols, such as REST to GraphQL, filter responses, and negotiate content dynamically. This flexibility allows services to evolve without breaking existing integrations, reducing operational friction, and improving the overall developer experience.
**API lifecycle management**
Modern API gateways support the entire API lifecycle, through the following key capabilities, to help teams maintain stability while continuing to innovate.
**Versioning strategies**
- - URL-based versioning (for example, /v1, /v2) to clearly separate iterations
- - Header-based versioning for greater flexibility without altering endpoints
- - Content negotiation to dynamically serve the appropriate representation
- - Graceful deprecation workflows that reduce client impact
- - Backward compatibility layers to support legacy integrations during transitions
**Developer experience**
- - Self-service developer portals that streamline onboarding
- - Interactive documentation for faster implementation
- - Automated SDK generation to accelerate client development
- - Testing sandboxes for safe validation prior to production
**Business and governance capabilities**
Modern API gateways deliver business-critical capabilities that go far beyond routing, helping teams monitor performance and create new monetization paths. The key capabilities are listed below.
- - **Analytics and monitoring - **API gateways provide end-to-end visibility into API performance and usage, letting teams make informed operational and business decisions. Real-time usage tracking and performance metrics help identify bottlenecks, optimize latency, and maintain reliability, while error rate monitoring allows teams to quickly detect and resolve issues before they impact users. Consumer behavior analytics further reveal how APIs are being adopted and consumed, and custom dashboard creation gives organizations the flexibility to surface the metrics that matter most for ongoing optimization and governance.
- - **Monetization and billing - **API gateways enable organizations to transform APIs into measurable revenue streams by supporting flexible monetization models. Capabilities such as subscription plan management and usage-based billing help teams align API consumption with pricing strategies, while partner revenue sharing helps expand ecosystem opportunities. API marketplace capabilities further simplify how APIs are discovered and adopted, and integrated invoice generation streamlines financial operations, making it easier to scale API programs sustainably.
**Compliance and policy**
API gateways can assist organizations in mitigating risks identified in the [OWASP API Security Top 10](https://konghq.com/blog/engineering/owasp-top-10-api-security-2023)OWASP API Security Top 10. While gateways provide important security controls, full compliance requires comprehensive security measures beyond gateway configuration. The key protection areas include:
- - Broken Object Level Authorization (API1:2023)
- - Broken Authentication (API2:2023)
- - Unrestricted Resource Consumption (API4:2023)
The gateway centralizes certain security controls that support compliance with PCI-DSS, HIPAA, and GDPR requirements, though additional measures are necessary for full compliance.
**Protocol support and transformation**
Modern API gateways are designed to handle multiple protocols, including:
- - **REST to GraphQL**: Aggregate multiple REST endpoints
- - **SOAP to REST**: Legacy system integration
- - **WebSocket Support**: Real-time communication
- - **gRPC Gateway**: HTTP/JSON translation
- - **Event Streaming**: Kafka and MQTT integration
Major cloud providers offer managed API gateway solutions, with platforms such as AWS API Gateway, Azure API Management, and Google Apigee delivering many of these capabilities. [Kong Gateway](https://konghq.com/products/kong-gateway)Kong Gateway, by contrast, provides platform-agnostic flexibility along with an extensive plugin ecosystem.