KONG JOINS SERVICENOW CONTROL TOWER ALLIANCE GET THE API + AI SUMMIT 2026 RECAP GARTNER® NAMES KONG A LEADER FOR 7TH YEAR TIME TO TAKE CONTROL OF YOUR AI ECOSYSTEM KONG NAMED A LEADER IN FORRESTER WAVE: API MANAGEMENT SOFTWARE
  • [Why Kong ](/company/why-kong)Why Kong
  • _API & AI CONNECTIVITY TECHNOLOGIES_
    The AI Connectivity Platform
    []
    API ManagementAI ManagementEvent ManagementMonetization
    Migration Services
    API Advisory Services + Forward Deployed EngineersNEW
    • RUNTIMES
    • [API Gateway ](/products/kong-gateway)API Gateway
    • [AI Gateway HOT](/products/kong-ai-gateway)AI Gateway HOT
    • [Event Gateway ](/products/event-gateway)Event Gateway
    • [Service Mesh ](/products/kong-mesh)Service Mesh
    • [Context Mesh ](/products/kong-konnect/features/context-mesh)Context Mesh
    • [Kong Operator ](/products/kong-operator)Kong Operator
    • [Webhook Engine ](/products/kong-webhook-engine)Webhook Engine
    • CORE SERVICES
    • [AI Registry NEW](/products/mcp-registry)AI Registry NEW
    • [Catalog ](/products/kong-konnect/features/api-service-catalog)Catalog
    • [APIOps & Automation ](/products/apiops-automation)APIOps & Automation
    • APPS & AI AGENTS
    • [Developer Portal ](/products/kong-konnect/features/developer-portal)Developer Portal
    • [Usage Billing & Metering ](/products/kong-konnect/features/usage-based-metering-and-billing)Usage Billing & Metering
    • [Observability ](/products/kong-konnect/features/api-observability)Observability
    • [KAi Agent ](/products/kong-konnect/features/kai-ai-agent)KAi Agent
    • [Identity & Access ](/products/governance-and-identity)Identity & Access
    • [AI Cost Management ](/products/ai-cost-management)AI Cost Management
    DEVELOPER TOOLS
    [Insomnia ](https://insomnia.rest/)Insomnia [Plugins ](https://developer.konghq.com/plugins/)Plugins [Volcano ](https://volcano.dev/)Volcano [Kong MCP ](https://developer.konghq.com/konnect-platform/konnect-mcp/)Kong MCP [Documentation ](https://docs.konghq.com/)Documentation [Open Source ](/community)Open Source
      • FOR PLATFORM TEAMS
      • [Developer Platform ](/solutions/building-developer-platform)Developer Platform
      • [Kubernetes and Microservices ](/solutions/build-on-kubernetes)Kubernetes and Microservices
      • [Observability ](/solutions/observability)Observability
      • [Service Mesh Connectivity ](/solutions/service-mesh-connectivity)Service Mesh Connectivity
      • [Kafka Event Streaming ](/solutions/kafka-stream-api-management)Kafka Event Streaming
      • FOR EXECUTIVES
      • [Open Banking ](/solutions/open-banking)Open Banking
      • [Legacy Migration ](/solutions/legacy-api-management-migration)Legacy Migration
      • [Platform Cost Reduction ](/solutions/api-platform-consolidation)Platform Cost Reduction
      • [Kafka Cost Optimization ](/solutions/reduce-kafka-cost)Kafka Cost Optimization
      • [API Monetization ](/solutions/api-monetization)API Monetization
      • [AI Monetization ](/solutions/ai-monetization)AI Monetization
      • FOR AI TEAMS
      • [AI-Native API Management ](/solutions/ai-native)AI-Native API Management
      • [Agent Gateway ](/agent-gateway)Agent Gateway
      • [Trigger Agents from Events ](/solutions/event-driven-ai-agents)Trigger Agents from Events
      • [AI Governance ](/solutions/ai-governance)AI Governance
      • [AI Security ](/solutions/ai-security)AI Security
      • [Token Cost Management ](/solutions/ai-cost-optimization-management)Token Cost Management
      • [Agentic Infrastructure ](/solutions/agentic-ai-workflows)Agentic Infrastructure
      • [MCP Production ](/solutions/mcp-production-and-consumption)MCP Production
      • [MCP Traffic Gateway ](/solutions/mcp-governance)MCP Traffic Gateway
      • FOR DEVELOPERS
      • [Mobile App API Development ](/solutions/mobile-application-api-development)Mobile App API Development
      • [GenAI App Development ](/solutions/power-openai-applications)GenAI App Development
      • [API Gateway for Istio ](/solutions/istio-gateway)API Gateway for Istio
      • [Decentralized Load Balancing ](/solutions/decentralized-load-balancing)Decentralized Load Balancing
      • BY INDUSTRY
      • [Financial Services ](/solutions/financial-services-industry)Financial Services
      • [Healthcare ](/solutions/healthcare)Healthcare
      • [Higher Education ](/solutions/api-platform-for-education-services)Higher Education
      • [Insurance ](/solutions/insurance)Insurance
      • [Manufacturing ](/solutions/manufacturing)Manufacturing
      • [Retail ](/solutions/retail)Retail
      • [Software & Technology ](/solutions/software-and-technology)Software & Technology
      • [Transportation ](/solutions/transportation-and-logistics)Transportation
    NEW
    Kong for Startups
    Apply for $100k credits & 50% off AI Gateway
  • [Pricing ](/pricing)Pricing
      • DOCUMENTATION
      • [Kong Konnect ](https://developer.konghq.com/konnect/)Kong Konnect
      • [Kong Gateway ](https://developer.konghq.com/gateway/)Kong Gateway
      • [Kong Mesh ](https://developer.konghq.com/mesh/)Kong Mesh
      • [Kong AI Gateway ](https://developer.konghq.com/ai-gateway/)Kong AI Gateway
      • [Kong Event Gateway ](https://developer.konghq.com/event-gateway/)Kong Event Gateway
      • [Kong Insomnia ](https://developer.konghq.com/insomnia/)Kong Insomnia
      • [Plugin Hub ](https://developer.konghq.com/plugins/)Plugin Hub
      • EXPLORE
      • [Blog ](/blog)Blog
      • [Customer Stories ](/customer-stories)Customer Stories
      • [Learning Center ](/blog/learning-center)Learning Center
      • [eBooks ](/resources/e-book)eBooks
      • [Reports ](/resources/reports)Reports
      • [Demos ](/resources/demos)Demos
      • [Videos ](/resources/videos)Videos
      • EVENTS
      • [API + AI Summit ](/events/conferences/api-ai-summit)API + AI Summit
      • [Webinars ](/events/webinars)Webinars
      • [User Calls ](/events/user-calls)User Calls
      • [Workshops ](/events/workshops)Workshops
      • [Meetups ](/events/meetups)Meetups
      • [See All Events ](/events)See All Events
      • FOR DEVELOPERS
      • [Engineering Blog ](/blog/engineering )Engineering Blog
      • [Get Started ](https://developer.konghq.com/)Get Started
      • [Community ](/community)Community
      • [Certification ](/academy/certification)Certification
      • [Training ](https://education.konghq.com)Training
      • COMPANY
      • [About Us ](/company)About Us
      • [We're Hiring! ](/company/careers)We're Hiring!
      • [Press Room ](/company/press-room)Press Room
      • [Contact Us ](/company/contact-us)Contact Us
      • [Kong Partner Program ](/partners)Kong Partner Program
      • [Enterprise Support Portal ](https://support.konghq.com/s/)Enterprise Support Portal
      • [Documentation ](https://developer.konghq.com)Documentation
  • [](/search)
  • [Login](https://cloud.konghq.com/login)Login
  • [Book Demo](/contact-sales)Book Demo
  • [Get Started](/products/kong-konnect/register)Get Started
[Blog](/blog)Blog
  • [AI Gateway ](/blog/tag/ai-gateway)AI Gateway
  • [AI Security ](/blog/tag/ai-security)AI Security
  • [AIOps ](/blog/tag/aiops)AIOps
  • [API Security ](/blog/tag/api-security)API Security
  • [API Gateway ](/blog/tag/api-gateway)API Gateway
|
    • [API Management ](/blog/tag/api-management)API Management
    • [API Development ](/blog/tag/api-development)API Development
    • [API Design ](/blog/tag/api-design)API Design
    • [Automation ](/blog/tag/automation)Automation
    • [Service Mesh ](/blog/tag/service-mesh)Service Mesh
    • [Insomnia ](/blog/tag/insomnia)Insomnia
    • [Event Gateway ](/blog/tag/event-gateway)Event Gateway
    • [View All Blogs ](/blog/page/1)View All Blogs
We're Entering the Age of AI Connectivity [Read more](/blog/news/the-age-of-ai-connectivity)Read moreProducts & Agents:
    • [Kong AI Gateway](/products/kong-ai-gateway)Kong AI Gateway
    • [Kong API Gateway](/products/kong-gateway)Kong API Gateway
    • [Kong Event Gateway](/products/event-gateway)Kong Event Gateway
    • [Kong Metering & Billing](/products/kong-konnect/features/usage-based-metering-and-billing)Kong Metering & Billing
    • [Kong Insomnia](/products/kong-insomnia)Kong Insomnia
    • [Kong Konnect](/products/kong-konnect)Kong Konnect
  • [Documentation](https://developer.konghq.com)Documentation
  • [Book Demo](/contact-sales)Book Demo
  1. Home
  2. Blog
  3. Engineering
  4. Keeping Your APIs Safe In 2026: API Security Best Practices
[API Security](/blog/tag/api-security)API Security
October 22, 2026
13 min read

# Keeping Your APIs Safe In 2026: API Security Best Practices

Paul Vergilis
Senior Solutions Engineer, Kong

Let’s say someone logs in with a real account and a valid token, and your system treats them like any other customer. Then they start changing the invoice number in their requests and reading invoices that belong to other people.

That’s a classic case of security breach, but nothing in that story looks like an attack. That's why it works. Salt Security's 2026 research found that[ _nearly all attack attempts now come from authenticated sources_](https://salt.security/api-security-trends) _nearly all attack attempts now come from authenticated sources_. Attackers sign in like everyone else, and then they push on whatever the system allows.

So how do you protect against someone who looks legitimate? This guide walks through nine API security best practices, and each one comes with steps you can start on this week. Where the API gateway is the right place to enforce a control, we'll show you how Kong does it.

## What is API security (and why it matters more in 2026)

API security is the set of controls that protect your APIs from attack and misuse. They decide who gets in, what each person can do once inside, how much they can ask for, and what data comes back. If an API connects your apps to customers or partners, it needs these controls.

The pressure is building for a simple reason. In Salt's survey,[ _32% of organizations had an API security incident in the past year_](https://salt.security/api-security-trends) _32% of organizations had an API security incident in the past year_. The same survey found that 66% saw their API count grow by more than 50%. That's a lot more doors to guard, and security teams didn't grow by half.

AI makes the math harder. Agents call APIs on their own and at machine speed, using whatever permissions you give them. Every one of those calls needs, at a minumum, the same checks you'd put on a human request.

Most teams already know what good security looks like. The trouble is applying it the same way everywhere. If 40 teams each build authentication policies their own way, you end up with 40 versions of authentication. The rest of this guide is about avoiding that.

### Why API security is a business risk

Let's start with the money. IBM's[ _Cost of a Data Breach Report_](https://www.ibm.com/reports/data-breach) _Cost of a Data Breach Report_ puts the 2026 global average at $4.99 million. That's a record, and it's up 12% from the year before. API breaches are a common contributor to this number.[ _Traceable's State of API Security_](https://www.traceable.ai/2025-state-of-api-security) _Traceable's State of API Security_ found that 57% of organizations had an API-related data breach within a two-year window.

If you work in finance, healthcare, or government, the stakes are even higher. Auditors will ask you to prove you have access control, encryption, and logging in place. An API that has no owner and no logs can fail that audit before an attacker ever finds it.

There's a quieter cost as well. Salt reports that nearly half of organizations have delayed releases because of API security concerns. Gaps in security slow your teams down long before any breach does.

## The core principles of API security

Before we get to the tactics, let’s talk about a simple way to organize them. API security rests on three pillars:

  1. - **Visibility.** You know every API you run, who owns it, and what data it touches.
  2. - **Access control.** You check who's calling and what they're allowed to do.
  3. - **Traffic protection.** You encrypt what moves, validate what arrives, and limit how much comes in.

Four principles hold those pillars up:

  • - **Zero trust.** Check every request, even ones from inside your network. The[ _zero-trust security_](https://konghq.com/solutions/zero-trust-security) _zero-trust security_ model treats where a request comes from as proof of nothing.
  • - **Least privilege.** Give every caller the smallest set of permissions that gets the job done, and make those permissions expire.
  • - **Secure by design.** Think through how an API could be abused before anyone writes code for it.
  • - **Defense in depth.** Stack your controls so that one failure doesn't expose everything.

With that framework in place, let's get into the practices.

## API security best practices for 2026

No single control will protect you. Each practice below covers a different kind of failure, and together they close the gaps between them. For each one, you'll see what to do, how to check that it's working, and where a gateway can enforce it for you. If you'd like one platform behind all of it, take a look at[ _Kong API security_](https://konghq.com/solutions/api-security) _Kong API security_.

### 1. Discover, inventory, and govern every API

You can't protect an API you don't know about. Shadow APIs, which got built without a review, and zombie APIs, which were forgotten but never switched off, are the first places attackers look. Here's how to find yours:

  1. - **Compare three sources.** Pull the routes from your gateway config, your load balancer or DNS logs, and the OpenAPI files in your code repos. If an API shows up in your traffic but not in your gateway, you've found a shadow API.
  2. - **Document every API.** Note the owner (a team and an on-call contact), the data classification, the authentication method, the version, and the sunset date.
  3. - **Retire zombies.** If an API has had no traffic for 90 days, mark it for retirement. Announce the shutdown with a Sunset header so clients get fair warning, and then remove the route.
  4. - **Don't forget the internal ones.** Internal APIs often carry the same data as public ones, and an attacker who gets inside will move through them. The[ _common API security risks_](https://konghq.com/blog/engineering/api-security-risks-and-how-to-mitigate-them) _common API security risks_ tend to hide in the APIs nobody reviews.

Repeat the three-way comparison every quarter.


### 2. Encrypt all traffic with TLS (and mTLS where it matters)

Once you know what you have, you can protect it while it travels. Here's the baseline to aim for:

  1. - **Set TLS 1.2 as the minimum and prefer 1.3.** Switch off TLS 1.0 and 1.1 entirely.
  2. - **Accept HTTPS only.** Close port 80 on your API endpoints. A redirect still lets the very first request, credentials included, leave the client unencrypted.
  3. - **Add HSTS for APIs that browsers call.** This header tells browsers to skip plain HTTP on every later visit.
  4. - **Use mutual TLS (mTLS) for service-to-service calls and sensitive partner APIs.** With mTLS, both sides show a certificate, so the server knows exactly who's calling.
  5. - **Verify upstream certificates.** Your gateway should check the certificate of every service it forwards traffic to.
  6. - **Encrypt data at rest.** Use managed keys, and rotate them on a schedule.

In Kong Gateway, the minimum TLS version is a setting in the gateway configuration. HTTPS-only routes, upstream certificate checks, and the HSTS header are set on each service and route.

Regulated industries often need a little more. The[ _Kong API gateway_](https://konghq.com/products/kong-gateway) _Kong API gateway_ supports FIPS 140-3 and post-quantum TLS as of 2026, so you can meet those requirements without adding a separate proxy.

### 3. Enforce strong authentication (OAuth 2.0, JWT, API keys)

Encryption protects the road. Authentication checks who's driving. For most production APIs, the standard choice is OAuth 2.0 with JSON Web Tokens (JWTs). A few rules will keep you on solid ground:

  1. - **Keep access tokens short-lived.** A lifetime of 5 to 15 minutes works well, and refresh tokens can cover longer sessions.
  2. - **Validate four things on every request.** Check the signature, the expiration, the issuer, and the audience. Also pin the signing algorithm, and reject any token that claims it doesn't need one.
  3. - **Treat API keys as app identifiers.** A key tells you which application is calling, and it says nothing about which person is behind it. Never rely on a key alone to protect anything sensitive.
  4. - **Scope your keys and make them expire.** Give each key the narrowest access that works, and set a lifetime of 60 to 90 days.
  5. - **Keep secrets out of your source code.** Store keys and signing credentials in a vault, and have your config point to them.

Kong's JWT plugin checks the signature and expiration on every request. It can also reject any token whose lifetime runs longer than your maximum, such as 15 minutes. For API keys, you can set a time-to-live when you create the credential, and the key then expires on its own.

If you're wondering how authentication differs from what comes next, here's a quick read on[ _authentication vs authorization_](https://konghq.com/blog/engineering/api-authentication-vs-api-authorization) _authentication vs authorization_. The difference between them is what the next practice is all about.

### 4. Implement proper authorization and prevent BOLA

Authentication tells you who someone is. Authorization decides what they’re allowed to touch. Skip it and you get the invoice scenario from the start of this post.

That problem is called Broken Object Level Authorization, or BOLA. It’s the number one risk in the[ _OWASP API Security Top 10 (2023)_](https://owasp.org/API-Security/editions/2023/en/0x11-t10) _OWASP API Security Top 10 (2023)_: a logged-in user changes an ID in a request and gets back someone else’s data. Five steps close the door:

  1. - **Validate the token at the gateway.** Check the signature, issuer, audience, and expiry, and pin the allowed signing algorithms. In Kong, the JWT or OpenID Connect plugin does this before the request reaches your service.
  2. - **Take identity from the token’s claims.** Use the verified sub claim (or a tenant claim like `org_id`) as the owner. Ignore any user ID in the URL or request body.
  3. - **Use claims for coarse access, and the data for the rest.** Scopes and roles say whether a caller can use a route at all. They can’t say whether this invoice is theirs, and you shouldn’t try to cram object IDs into the token. Ownership lives in your data.
  4. - **Pass verified identity to the service, and lock the door behind it.** Have the gateway forward the claims your service needs as headers. Strip any versions the client sent, and accept traffic only from the gateway, or re-validate the JWT in the service.
  5. - **Check ownership in the service, and deny by default.** Scope the query to the caller, so a mismatch returns nothing:

### 5. Validate input and minimize data exposure

Authorization controls who is calling. Validation controls what they send. Treat every parameter, header, and request body as untrusted until it passes a check:

  1. - **Validate against a schema.** Reject anything your OpenAPI or JSON Schema doesn't allow, extra fields included. That stops mass assignment, where a caller sneaks in a field like `"role": "admin"`.
  2. - **Write allowlists.** Define what's valid, such as "a SKU is 6 to 20 uppercase characters," instead of trying to list everything that's bad.
  3. - **Set size and type limits.** Cap payloads at 1 MB unless an endpoint truly needs more, and reject content types you don't expect.
  4. - **Always validate on the server.** Client-side checks are there for your users' convenience, and attackers skip them.
  5. - **Return only what the client needs.** Build explicit response objects so you never send out a raw database row.
  6. - **Keep error messages generic.** Send a short code and a request ID, and keep the stack trace in your logs.

Kong's Request Validator plugin checks every request against your schema before it reaches your service. A bad payload gets a 400 at the gateway, so your service never has to deal with it. The Request Size Limiting plugin handles the payload cap. This is also the heart of REST API security: the contract you publish becomes the contract you enforce.

### 6. Apply rate limiting, throttling, and quotas

Even valid input can be abusive when it arrives in bulk. Brute force, credential stuffing, scraping, and resource exhaustion all look like normal requests, just far too many of them. Rate limits are how you push back.

These numbers are good starting points. Tune them against your own traffic:

After that, a few more steps make the limits hold up:

  1. - **Return a 429 with a **`**Retry-After **`**header.** Well-behaved clients will back off without anyone asking.
  2. - **Share counters across gateway nodes.** If each node counts on its own, an attacker effectively multiplies your limit by the number of nodes. A shared store such as Redis solves this.
  3. - **Add idempotency keys to payment and order endpoints.** A retried request then can't create a second charge.
  4. - **Load test your limits.** A tool like k6 can confirm that the 429s start at your limit and not at double it.

Kong's Rate Limiting plugin covers all of this. You pick the limit, what it's keyed by (IP, consumer, or credential), and whether the counters are shared across nodes.


### 7. Use an API gateway as your security enforcement hub

By this point you have a long list of controls, and each one has to run on every API. Doing that service by service is how drift sneaks in. One team forgets the rate limits, and another ships with a weaker JWT check.

An API gateway fixes this by moving enforcement to a single layer that all traffic passes through. Here's how to set that up:

  1. - **Apply baseline plugins globally.** Authentication, rate limits, size limits, request IDs, and logging should run on every route by default. Teams can then add stricter rules, and nobody can quietly remove the baseline.
  2. - **Keep your policy in Git.** Store the gateway config in a repo, review changes the same way you review code, and deploy them with decK, Kong's declarative configuration tool.
  3. - **Extend the same policy to AI traffic.** Calls to LLMs and MCP (Model Context Protocol) tools need authentication, limits, and logs too.[ _Kong AI Gateway_](https://konghq.com/products/kong-gateway) _Kong AI Gateway_ applies the same model to that traffic.

This is the thinking behind the[ _Kong API gateway_](https://konghq.com/products/kong-gateway) _Kong API gateway_. You get one policy engine across every API, so a brand-new service starts out secure on day one.

### 8. Monitor, log, and detect anomalies

Because the gateway enforces your policy, it also sees all your traffic. That makes it your best source of evidence, as long as you log the right things and know which patterns to watch for.

**Information to log:**

  • - Failed authentication attempts
  • - Every 403 and 429 response
  • - Changes to config, keys, and permissions
  • - The consumer ID, route, status code, latency, and a request ID on every call

**Keep these out of your logs:** passwords, tokens, full card numbers, and personal data from request bodies. If you need to know an Authorization header was present, log that it was there and leave out its value.

**Set alerts for these patterns:**

  • - A 401 rate that runs more than 5 times your 7-day baseline for 5 minutes. This usually means credential stuffing.
  • - One consumer collecting 403s across 20 or more different object IDs within 10 minutes. This usually means someone is probing for BOLA.
  • - A sudden jump in 429s from a single key.
  • - Bulk-export endpoints called outside business hours.

Failed-login alerts won't be enough on their own. Since nearly all attacks arrive with valid credentials, you also need alerts on what logged-in users do. Behavioral and AI-based anomaly detection can help, because it learns what normal looks like for each consumer.

Speed matters here because time drives cost. IBM's 2026 data shows that breaches contained within 200 days averaged $4.32 million, compared with $5.65 million for the ones that dragged on longer. Good[ _API monitoring_](https://konghq.com/blog/learning-center/what-is-api-monitoring) _API monitoring_ shortens that window.

### 9. Test continuously and shift security left

Monitoring catches what slips through. Testing keeps most of it from slipping through at all. Here's what to build into your pipeline:

  1. - **Threat-model every new API.** Review the design and ask how each endpoint could be abused. Do it before the code is generated, while changes are still easy.
  2. - **Lint your API spec on every pull request.** Fail the build if an endpoint has no authentication defined.
  3. - **Run static analysis (SAST) on every commit.** Tools such as Semgrep or CodeQL work well for this.
  4. - **Run dynamic scans (DAST) against staging.** OWASP ZAP can scan directly from your OpenAPI file.
  5. - **Fuzz your schema.** Schemathesis generates unexpected inputs from your spec and finds the crashes you didn't think to test.
  6. - **Automate your authorization tests.** The two-user BOLA test from practice 4 belongs here, along with tests for expired tokens, missing scopes, and rate-limit behavior.
  7. - **Schedule penetration tests.** Run one every year, and run another after any major change to authentication.

Set your build gate at high-severity findings. A check that can never fail won't protect anything.

## API security standards and frameworks to follow

Standards give your team a shared checklist and give auditors something familiar to work from. Two of them matter most.

The first is the[ _OWASP API Security Top 10_](https://owasp.org/API-Security/editions/2023/en/0x11-t10) _OWASP API Security Top 10_, which lists the most common API risks. The second is[ _NIST's API protection guidelines_](https://www.nist.gov/publications/guidelines-api-protection-cloud-native-systems-march-2026-update) _NIST's API protection guidelines_ for cloud-native systems (SP 800-228, updated March 2026). NIST sorts controls into pre-runtime and runtime stages, and into basic and advanced tiers. It also recommends a gradual, risk-based rollout, which is how most teams end up adopting it.

Here's how the OWASP risks map to the practices in this guide:

If you want a deeper walkthrough, Kong's guide to the[ _OWASP API Security Top 10_](https://konghq.com/blog/engineering/owasp-top-10-api-security-2023) _OWASP API Security Top 10_ covers each risk in detail.

### Common API security mistakes to avoid

Even teams that follow the list trip over the same handful of things. Here's what to check your APIs for:

  • - **API keys as the only authentication.** Add OAuth 2.0 or JWT validation, and scope the keys.
  • - **Sending back too much data.** Compare each response with what the client actually uses, and cut the rest.
  • - **Skipping per-resource authorization.** Any endpoint that takes an ID needs an ownership check.
  • - **Weaker rules for internal APIs.** Apply the same global baseline everywhere.
  • - **Outdated dependencies.** Turn on automated dependency updates, and fail builds that contain known critical vulnerabilities.
  • - **Detailed errors in production.** Send a code and a request ID, and keep the stack trace in your logs.
  • - **Keys that never expire.** Give every key a lifetime when you issue it.

## How Kong helps you enforce API security best practices

Look back over the nine practices and you'll notice something. Most of them are enforced in the same spot, which is the path every request takes to reach your services. That spot is the connectivity layer.

Kong Gateway enforces authentication, rate limiting, TLS and mTLS, validation, and logging as plugins on a single runtime. Konnect adds central policy, observability, and governance across every API, whether it runs in multi-cloud, hybrid, or on-prem environments. The same approach covers AI, MCP, and agent traffic, so the controls you build for your APIs also apply to the agents calling them.

Thousands of organizations rely on Kong, including more than half the Fortune 500. For regulated industries, Kong Gateway supports FIPS 140-3. You can see how the pieces fit together on the[ _Kong API security_](https://konghq.com/solutions/api-security) _Kong API security_ page.

[_Request a demo to explore Kong's API platform capabilities._](https://konghq.com/contact-sales)_Request a demo to explore Kong's API platform capabilities._

## Frequently Asked Questions (FAQs)

**What are the most important API security best practices?**

Start with an inventory of your APIs. Then add TLS, strong authentication (OAuth 2.0 and JWT), per-resource authorization, input validation, rate limiting, and monitoring. Each control covers a different failure, and no single one is enough on its own.

**What is BOLA and why is it the most critical API vulnerability?**

Broken Object Level Authorization happens when a logged-in user reaches objects they don't own, usually by changing an ID in the request. It tops the OWASP API Security Top 10 because it's easy to exploit and hard for generic tools to catch. The fix is an ownership check on every endpoint that accepts an ID.

**Are API keys enough for API security, or do you need OAuth 2.0?**

API keys identify applications and not users, so they aren't enough for sensitive data. Pair them with OAuth 2.0 and JWT validation. Give each key a narrow scope, rotate it often, and store it in a vault.

**How does zero trust apply to API security?**

Zero trust means every request gets verified, no matter where it comes from. For APIs, that means authenticating each call, granting the least privilege that works, denying by default, and limiting how far one stolen credential can reach.

**Should internal APIs follow the same security controls as public APIs?**

Yes. An attacker who gets into your network will move through internal APIs, so a weaker baseline there becomes the easiest path. A gateway applies the same authentication, limits, and logging to both.

**How often should I rotate API keys and audit my APIs?**

Rotate keys at least every 60 to 90 days, and rotate them right away after any suspected exposure. Repeat your API inventory comparison every quarter, and schedule a penetration test every year.

**How can I test my API security effectively?**

Threat-model new APIs before you write code. Then run SAST and DAST in your CI/CD pipeline, fuzz the schema, and automate tests for authentication, authorization, validation, and rate limits. Add a penetration test each year.

**How does an API gateway improve API security?**

A gateway puts authentication, validation, rate limiting, and logging at one enforcement point instead of inside every service. Every API then gets the same baseline policy in every environment.

- [API Security](/blog/tag/api-security)API Security- [Thought Leadership](/blog/tag/thought-leadership)Thought Leadership

Table of Contents

  • What is API security (and why it matters more in 2026)
  • The core principles of API security
  • API security best practices for 2026
  • API security standards and frameworks to follow
  • How Kong helps you enforce API security best practices
  • Frequently Asked Questions (FAQs)

## More on this topic

_Videos_

## I’m an API Hacker and Here’s How I Hack Everything from the Military to AI

_eBooks_

## Becoming a Secure API-First Company

## See Kong in action

Accelerate deployments, reduce vulnerabilities, and gain real-time visibility. 

[Get a Demo](/contact-sales)Get a Demo
**Topics**
- [API Security](/blog/tag/api-security)API Security- [Thought Leadership](/blog/tag/thought-leadership)Thought Leadership
Paul Vergilis
Senior Solutions Engineer, Kong

Recommended posts

# API Security Risks and How to Mitigate Them

[Engineering](/blog/tag)EngineeringAugust 13, 2024

Today, more organizations than ever before rely on web and mobile applications and partner integrations to help them automate and scale, making APIs essential to today’s software ecosystem. But because APIs are gateways to sensitive data, this als

Kong

# Guide to Defense in Depth Security

[Engineering](/blog/tag)EngineeringSeptember 13, 2022

Security best practices remain a top priority for enterprises, especially as high-profile hacks and cybersecurity breaches pose increased risks. According to the 2022 Morgan Stanley CIO survey , IT spending is expected to reach 4.4%, with cloud com

Eric Pulsifer

# API Infrastructure is Mission Critical — and Increasingly Under Attack

[Enterprise](/blog/tag)EnterpriseJuly 27, 2023

Attacks estimated to surge 996% by 2030 — with the cost per breach rising to $14.5 million APIs have revolutionized every industry. They fuel digital transformation and power the web, making up more than 83% of global internet traffic. And API adop

Kong

# Balancing Innovation and Security With API Automation

[Enterprise](/blog/tag)EnterpriseSeptember 16, 2021

Automating digital transformation API deployments can help speed time to market and minimize the resources required for the deployments — if developers can be assured that the automated process meets all necessary security requirements. It's a topic

Josh Molina

# Kong Bot Detector for Dedicated Cloud Gateways

[Product Releases](/blog/tag)Product ReleasesOctober 7, 2026

Bots make up more than a third of internet traffic, and API endpoints attract more of it than web pages do. Scanners hunting for .env files, credential-stuffing scripts, LLM training crawlers, and the long tail of low-effort probes all hit your gate

Josh Wigginton

# Introducing Token Vault: Agents Access Everything. Hold Nothing.

[Product Releases](/blog/tag)Product ReleasesSeptember 30, 2026

Traditional applications generally have well-defined boundaries. They interact with a known set of services using credentials provisioned specifically for those connections. Agents are different. Their value comes from their ability to work across s

Alex Drag

# Automating Agreement Workflows with Kong Konnect and Docusign for Developers

[Engineering](/blog/tag)EngineeringApril 16, 2026

Traditional agreement processes were slow and heavily manual. Documents were often created in office tools, shared through email, printed, signed physically, and stored across multiple systems. Tracking the status of agreements required manual follo

Paige Rossi

# API Security Risks and How to Mitigate Them

[Engineering](/blog/tag)EngineeringAugust 13, 2024

Today, more organizations than ever before rely on web and mobile applications and partner integrations to help them automate and scale, making APIs essential to today’s software ecosystem. But because APIs are gateways to sensitive data, this als

Kong

# Guide to Defense in Depth Security

[Engineering](/blog/tag)EngineeringSeptember 13, 2022

Security best practices remain a top priority for enterprises, especially as high-profile hacks and cybersecurity breaches pose increased risks. According to the 2022 Morgan Stanley CIO survey , IT spending is expected to reach 4.4%, with cloud com

Eric Pulsifer

# API Infrastructure is Mission Critical — and Increasingly Under Attack

[Enterprise](/blog/tag)EnterpriseJuly 27, 2023

Attacks estimated to surge 996% by 2030 — with the cost per breach rising to $14.5 million APIs have revolutionized every industry. They fuel digital transformation and power the web, making up more than 83% of global internet traffic. And API adop

Kong

# Balancing Innovation and Security With API Automation

[Enterprise](/blog/tag)EnterpriseSeptember 16, 2021

Automating digital transformation API deployments can help speed time to market and minimize the resources required for the deployments — if developers can be assured that the automated process meets all necessary security requirements. It's a topic

Josh Molina

# Kong Bot Detector for Dedicated Cloud Gateways

[Product Releases](/blog/tag)Product ReleasesOctober 7, 2026

Bots make up more than a third of internet traffic, and API endpoints attract more of it than web pages do. Scanners hunting for .env files, credential-stuffing scripts, LLM training crawlers, and the long tail of low-effort probes all hit your gate

Josh Wigginton

# Introducing Token Vault: Agents Access Everything. Hold Nothing.

[Product Releases](/blog/tag)Product ReleasesSeptember 30, 2026

Traditional applications generally have well-defined boundaries. They interact with a known set of services using credentials provisioned specifically for those connections. Agents are different. Their value comes from their ability to work across s

Alex Drag

# Automating Agreement Workflows with Kong Konnect and Docusign for Developers

[Engineering](/blog/tag)EngineeringApril 16, 2026

Traditional agreement processes were slow and heavily manual. Documents were often created in office tools, shared through email, printed, signed physically, and stored across multiple systems. Tracking the status of agreements required manual follo

Paige Rossi

# API Security Risks and How to Mitigate Them

[Engineering](/blog/tag)EngineeringAugust 13, 2024

Today, more organizations than ever before rely on web and mobile applications and partner integrations to help them automate and scale, making APIs essential to today’s software ecosystem. But because APIs are gateways to sensitive data, this als

Kong

# Guide to Defense in Depth Security

[Engineering](/blog/tag)EngineeringSeptember 13, 2022

Security best practices remain a top priority for enterprises, especially as high-profile hacks and cybersecurity breaches pose increased risks. According to the 2022 Morgan Stanley CIO survey , IT spending is expected to reach 4.4%, with cloud com

Eric Pulsifer

# API Infrastructure is Mission Critical — and Increasingly Under Attack

[Enterprise](/blog/tag)EnterpriseJuly 27, 2023

Attacks estimated to surge 996% by 2030 — with the cost per breach rising to $14.5 million APIs have revolutionized every industry. They fuel digital transformation and power the web, making up more than 83% of global internet traffic. And API adop

Kong

# Balancing Innovation and Security With API Automation

[Enterprise](/blog/tag)EnterpriseSeptember 16, 2021

Automating digital transformation API deployments can help speed time to market and minimize the resources required for the deployments — if developers can be assured that the automated process meets all necessary security requirements. It's a topic

Josh Molina

# Kong Bot Detector for Dedicated Cloud Gateways

[Product Releases](/blog/tag)Product ReleasesOctober 7, 2026

Bots make up more than a third of internet traffic, and API endpoints attract more of it than web pages do. Scanners hunting for .env files, credential-stuffing scripts, LLM training crawlers, and the long tail of low-effort probes all hit your gate

Josh Wigginton

# Introducing Token Vault: Agents Access Everything. Hold Nothing.

[Product Releases](/blog/tag)Product ReleasesSeptember 30, 2026

Traditional applications generally have well-defined boundaries. They interact with a known set of services using credentials provisioned specifically for those connections. Agents are different. Their value comes from their ability to work across s

Alex Drag

# Automating Agreement Workflows with Kong Konnect and Docusign for Developers

[Engineering](/blog/tag)EngineeringApril 16, 2026

Traditional agreement processes were slow and heavily manual. Documents were often created in office tools, shared through email, printed, signed physically, and stored across multiple systems. Tracking the status of agreements required manual follo

Paige Rossi

## Ready to see Kong in action?

Get a personalized walkthrough of Kong's platform tailored to your architecture, use cases, and scale requirements.

[Get a Demo](/contact-sales)Get a Demo
## step-0
    • Company
    • [About Kong ](/company)About Kong
    • [Customers ](/customer-stories)Customers
    • [Careers ](/company/careers)Careers
    • [Press ](/company/press-room)Press
    • [Events ](/events)Events
    • [Contact ](/company/contact-us)Contact
    • [Pricing ](/pricing)Pricing
      •    * [Terms](/legal/terms-of-use)
      •    * [Privacy](/legal/privacy-policy)
      •    * [Trust and Compliance](https://trust.konghq.com/)
    • Platform
    • [Kong AI Gateway ](/products/kong-ai-gateway)Kong AI Gateway
    • [Kong Konnect ](/products/kong-konnect)Kong Konnect
    • [Kong Gateway ](/products/kong-gateway)Kong Gateway
    • [Kong Event Gateway ](/products/event-gateway)Kong Event Gateway
    • [Kong Insomnia ](/products/kong-insomnia)Kong Insomnia
    • [Documentation ](https://developer.konghq.com)Documentation
    • [Book Demo ](/contact-sales)Book Demo
    • Compare
    • [AI Gateway Alternatives ](/performance-comparison/ai-gateway-alternatives)AI Gateway Alternatives
    • [Kong vs Apigee ](/performance-comparison/kong-vs-apigee)Kong vs Apigee
    • [Kong vs AWS ](/performance-comparison/kong-vsaws)Kong vs AWS
    • [Kong vs IBM ](/performance-comparison/ibm-api-connect-vs-kong)Kong vs IBM
    • [Kong vs Mulesoft ](/performance-comparison/kong-vs-mulesoft)Kong vs Mulesoft
    • [Kong vs Postman ](/performance-comparison/kong-vs-postman)Kong vs Postman
    • [Kong vs LiteLLM ](/performance-comparison/kong-vs-litellm)Kong vs LiteLLM
    • Explore More
    • [Kong for Startups ](/solutions/startup-program)Kong for Startups
    • [Open Banking API Solutions ](/solutions/open-banking)Open Banking API Solutions
    • [API Governance Solutions ](/solutions/api-governance)API Governance Solutions
    • [Istio API Gateway Integration ](/solutions/istio-gateway)Istio API Gateway Integration
    • [Kubernetes API Management ](/solutions/build-on-kubernetes)Kubernetes API Management
    • [API Gateway: Build vs Buy ](/campaign/secure-api-scalability)API Gateway: Build vs Buy
    • Open Source
    • [Kong Gateway ](https://developer.konghq.com/gateway/install/)Kong Gateway
    • [Kuma ](https://kuma.io/)Kuma
    • [Insomnia ](https://insomnia.rest/)Insomnia
    • [Kong Community ](/community)Kong Community

Kong enables the connectivity layer for the agentic era – securely connecting, governing, and monetizing APIs and AI tokens across any model or cloud.

  • English
  • Japanese
  • Frenchcoming soon
  • Spanishcoming soon
  • Germancoming soon
[Everything is 200 OK](https://status.konghq.com/)
© Kong Inc. 2026
Interaction mode