WHY GARTNER’S “CONTEXT MESH” CHANGES EVERYTHING AI CONNECTIVITY: THE ROAD AHEAD DON’T MISS API + AI SUMMIT 2026 SEPT 30 – OCT 1
    • Explore the unified API Platform
        • BUILD APIs
        • [
          Kong Insomnia](/en-gb/products/kong-insomnia)
          Kong Insomnia
        • [
          API Design](/en-gb/products/kong-insomnia/api-design)
          API Design
        • [
          API Testing and Debugging](/en-gb/products/kong-insomnia/api-testing-and-debugging)
          API Testing and Debugging
        • RUN APIs
        • [
          API Gateway](/en-gb/products/kong-gateway)
          API Gateway
        • [
          AI Gateway](/en-gb/products/kong-ai-gateway)
          AI Gateway
        • [
          Event Gateway](/en-gb/products/event-gateway)
          Event Gateway
        • [
          Kubernetes Operator](/products/kong-gateway-operator)
          Kubernetes Operator
        • [
          Service Mesh](/en-gb/products/kong-mesh)
          Service Mesh
        • [
          Ingress Controller](/en-gb/products/kong-ingress-controller)
          Ingress Controller
        • [
          Runtime Management](/products/kong-konnect/features/runtime-management)
          Runtime Management
        • DISCOVER APIs
        • [
          Developer Portal](/en-gb/products/kong-konnect/features/developer-portal)
          Developer Portal
        • [
          Service Catalog](/en-gb/products/kong-konnect/features/api-service-catalog)
          Service Catalog
        • GOVERN APIs
        • [
          Analytics](/products/kong-konnect/features/advanced-analytics)
          Analytics
        • [
          APIOps and Automation](/en-gb/products/apiops-automation)
          APIOps and Automation
        • [
          API Observability](/en-gb/products/kong-konnect/features/api-observability)
          API Observability
        • [Why Kong?](/en-gb/company/why-kong)Why Kong?
      • CLOUD
      • [Cloud API Gateways](/products/kong-konnect/features/dedicated-cloud-gateways)Cloud API Gateways
      • [Need a self-hosted or hybrid option?](/products/kong-enterprise)Need a self-hosted or hybrid option?
      • COMPARE
      • [Kong vs. Postman](/en-gb/performance-comparison/kong-vs-postman)Kong vs. Postman
      • [Kong vs. MuleSoft](/en-gb/performance-comparison/kong-vs-mulesoft)Kong vs. MuleSoft
      • [Kong vs. Apigee](/en-gb/performance-comparison/kong-vs-apigee)Kong vs. Apigee
      • [Kong vs. IBM](/performance-comparison/ibm-api-connect-vs-kong)Kong vs. IBM
      • GET STARTED
      • [Sign Up for Kong Konnect](/products/kong-konnect/register)Sign Up for Kong Konnect
      • [Documentation](https://developer.konghq.com/)Documentation
      • FOR PLATFORM TEAMS
      • [Developer Platform](/en-gb/solutions/building-developer-platform)Developer Platform
      • [Kubernetes and Microservices](/en-gb/solutions/build-on-kubernetes)Kubernetes and Microservices
      • [Observability](/en-gb/solutions/observability)Observability
      • [Service Mesh Connectivity ](/solutions/service-mesh-connectivity)Service Mesh Connectivity
      • [Kafka Event Streaming](/en-gb/solutions/kafka-stream-api-management)Kafka Event Streaming
      • FOR EXECUTIVES
      • [Open Banking](/en-gb/solutions/open-banking)Open Banking
      • [Legacy Migration](/en-gb/solutions/legacy-api-management-migration)Legacy Migration
      • [Platform Cost Reduction](/en-gb/solutions/api-platform-consolidation)Platform Cost Reduction
      • [Kafka Cost Optimization](/en-gb/solutions/reduce-kafka-cost)Kafka Cost Optimization
      • [Real-time Business](/solutions/real-time-business)Real-time Business
      • [API Productization](/solutions/api-productization)API Productization
      • FOR AI TEAMS
      • [AI Governance](/en-gb/solutions/ai-governance)AI Governance
      • [AI Security](/en-gb/solutions/ai-security)AI Security
      • [AI Cost Control](/en-gb/solutions/ai-cost-optimization-management)AI Cost Control
      • [Agentic AI](/solutions/agentic-ai-workflows)Agentic AI
      • [MCP Traffic Gateway](/en-gb/solutions/mcp-governance)MCP Traffic Gateway
      • FOR DEVELOPERS
      • [Mobile App API Development](/en-gb/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](/en-gb/solutions/financial-services-industry)Financial Services
      • [Healthcare](/en-gb/solutions/healthcare)Healthcare
      • [Higher Education](/solutions/api-platform-for-education-services)Higher Education
      • [Insurance](/en-gb/solutions/insurance)Insurance
      • [Manufacturing](/en-gb/solutions/manufacturing)Manufacturing
      • [Retail](/en-gb/solutions/retail)Retail
      • [Software & Technology](/en-gb/solutions/software-and-technology)Software & Technology
      • [Transportation](/en-gb/solutions/transportation-and-logistics)Transportation
      • [See all Solutions](/en-gb/solutions)See all Solutions
  • [Customers](/customers)Customers
      • 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 Insomnia](https://developer.konghq.com/insomnia/)Kong Insomnia
      • [Plugin Hub](https://developer.konghq.com/plugins/)Plugin Hub
      • Explore
      • [Blog](/en-gb/blog)Blog
      • [Learning Center](/en-gb/blog/learning-center)Learning Center
      • [eBooks](/resources/e-book)eBooks
      • [Reports](/resources/reports)Reports
      • [Demos](/resources/demos)Demos
      • [Case Studies](/resources/case-study)Case Studies
      • [Videos](/resources/videos)Videos
      • Events
      • [API Summit](/events/conferences/api-summit)API 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
      • [Get Started](https://developer.konghq.com/)Get Started
      • [Community](/community)Community
      • [Certification](/academy/certification)Certification
      • [Training](https://education.konghq.com)Training
  • [Pricing](/pricing)Pricing
  • [](/search)
  • [Login](https://cloud.konghq.com/login)Login
  • [Get a Demo](/contact-sales)Get a Demo
  • [Start for Free](/products/kong-konnect/register)Start for Free
[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
    • [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/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. Best Practices for API Design Guidelines
[Engineering](/blog/engineering)Engineering
May 3, 2023
8 min read

# Best Practices for API Design Guidelines

Jordi Fernandez Moledo
Principal Architect, Kong

Creating API design guidelines is a common practice for many enterprises. The goal? Ensuring that all teams involved in API development will adhere to them. However, this goal is often not achieved, as developers may not take the time to read, study, and apply these guidelines.

To address this issue, API design guidelines should be seen as the foundation to [create high-level tools and services](https://konghq.com/blog/enterprise/service-design-guidelines-with-openapi-and-kong-part-i)create high-level tools and services that enable developers to focus more on business logic and less on API integration boilerplate. These tools and services should be offered as self-service artifacts that automate low-level and non-value-add activities, thereby enabling developers to be more productive.

## What are API design guidelines?

The API design guidelines are a collection of API design patterns and principles that all API teams within an organization should adhere to when developing APIs. The definition and implementation of API design guidelines are among the most influential drivers of an API strategy — fostering a consistent approach to the creation of an API platform across the enterprise.

At the highest level, there are three main sections you should cover in an API design guidelines document:

  • - **General guidelines** are independent of the particular style chosen to implement the API.
  • - **Style-specific guidelines** for REST, GraphQL, gRPC, and other styles.
  • - **Governance guidelines** to explain how the overall API design guidelines document should be updated.

### General API Design Best Practices

This section describes the rules and recommendations that have to be followed along the entire API lifecycle of any API regardless of the implementation style. The principles we recommend in this section are the following:

  • - **API first**. Start always designing the API contract in close collaboration with your stakeholders. It is imperative to get the contract right if we want stable and long-lasting APIs.
  • - **Don't break your clients.** No matter what API style you chose, any modifications must maintain backward compatibility and avoid breaking changes.
  • - **Security by design.** Be clear on security expectations for all APIs. You should cover topics like authentication, authorization, access control, HTTP Headers, session management, validations, [CORS](https://konghq.com/blog/learning-center/what-is-cors-cross-origin-resource-sharing)CORS, TLS ciphers, certificates management, and penetration testing. The [OWASP API security project](https://owasp.org/www-project-api-security/)OWASP API security project is an excellent resource for topics to cover in this area.

### API Style Specific Best Practices

This is where you'll provide guidelines for specific API styles. (RESTful APIs are the most popular.) But irrespective of the style, what topics should be covered? Here's a list of the guidelines you may find most relevant:

  • -
    • - **API specification**. All API contracts should be described following an API specification format. Use this section to specify which one should be used: OpenAPI, AsyncAPI, or others.
    • - **APIOps**. As part of a platform enablement function, you may want to provide guidelines on tools to use for certain steps of the APIOps pipeline: CI/CD toolchain, git repository layout, testing framework, etc.
    • - **Protocol management**. Define the criteria for using HTTP vs HTTPS, how to define URIs, and how to use protocol methods, status codes, headers, and other metadata.
    • - **Message formats**. There are many message formats available for APIs. XML, JSON, or YAML are some of the most common text formats, but there are also binary formats and some specialized formats, like the ones used to report problems. Which ones should be used in your organization and under what circumstances?
  • - **Data types.** How you represent common data types such as date and time, language codes, country codes or currencies should be a no-brainer.
  • - **Common operations.** Almost all non-trivial APIs will offer features like pagination, search, long-running tasks, batch operations, query requests with many parameters, localization, or [rate-limiting](https://konghq.com/blog/engineering/how-to-design-a-scalable-rate-limiting-algorithm)rate-limiting. It's important that all APIs offer those features in a consistent manner. The potential to cache responses and excel in performance optimization is directly related to consistency in common operations.
  • - **Evolution (**[**versioning**](https://konghq.com/blog/engineering/service-design-guidelines-api-versioning)**versioning****).** How to deal with changes in a way that is backward compatible is essential. (Remember the "don't break your clients" principle?) This is the section in which to talk about how to design URIs, naming conventions, and how to deal with changes and transition from old to new versions.

### API Design and Governance Best Practices

The API design guidelines is a living document that should be evolved and enriched with feedback from all stakeholders impacted by it.

Corporations typically set up institutions to channel the feedback and evolve the guidelines accordingly. Some call it the API guild; others the API community of practice. Irrespective of the name you chose, make sure to explain what is the governance process to modify and evolve the guidelines, and how ownership should be assigned to the services and tools derived from the guidelines.

There are many [good API design guidelines](http://apistylebook.com/design/guidelines/)good API design guidelines that you can use as real-world examples. Use them as a starting point to develop your own set.

## Who's going to benefit from API design guidelines?

Many stakeholders will benefit from having an API platform developed following the same set of API design guidelines. Let's take a look at how API consumers, API producers, the security operations center, and enterprise architecture benefit from a coherent set of guidelines applied across all APIs.

#### API consumers: I want a consistent and intuitive experience

All users want to interact with an intuitive interface. The same is true for APIs. The community of software developers that will use your APIs expect an intuitive and consistent experience.

API consumers expect all your APIs to look like they have been developed by the same person — all usage patterns should be consistent across your APIs. The less they have to learn, the more they will adopt your APIs. The following are some of the guidelines that contribute to a consistent and intuitive API developer experience:

  • - The principle of "don't break your clients" gives API consumers the peace of mind that their integrations will not break and changes in the API contract will be backward compatible.
  • - Standardizing on message formats, data types, and common operations offers a consistent interaction style that can be learned once and used many times across all APIs.

#### API producers: Tell me best practices for common use cases

API producers want to focus as much as possible on business logic, not on API boilerplate. They shouldn't invest time in thinking about how to solve common API interaction scenarios (e.g., How to deal with pagination? How should we expose batch operations? What is the message format when returning an error message? What security elements should be incorporated in the design?)

Not all developers are API experts, so these topics — and many others — must be clarified in the API design guidelines.

#### Security operations center: Make APIs secure by design

The more we standardize how security concerns should be addressed in our APIs, the easier to validate that security standards are applied during implementation time and audited at runtime. Many of the OWASP API top 10 threats will benefit from clear security-related API design guidelines around authentication, authorization, rate-limiting, TLS enforcement, query parameters management, and message format specification.

#### Enterprise architecture: All APIs follow our design guidelines

Governance is an essential part of an API strategy. Establishing an API community of practice aids in discussing and evolving the organization's API design guidelines. This approach makes creating and evolving API design guidelines an inclusive process that improves the acceptance and commitment from all stakeholders. It will help as well in assigning ownership to the artifacts and services that will derive from the design guidelines.

## Who is going to read our API design guidelines?

Forcing everyone in the organization to read the API design guidelines document and mandate that all APIs have to follow them is probably not the best strategy.

We need to enable the developers — not force them. APIs will only be developed "the right way" if that's the easiest way to do it. More than being a document that everyone should read and study, API guidelines are there to guide the creation of artifacts that will enable the API community to focus on value add work. Those artifacts take many shapes and forms. Let's take a look at some of them.

### Software development kits (SDK)

Many of the elements that shape your API design guidelines can be materialized in an SDK that you provide to API clients. The SDK offers high-level use cases and takes care of translating those calls to the right message formats, data types, and common operations as specified in the guidelines. Hence, you offer your clients a fast path to value with a use-case-driven interface and at the same time make sure that low-level interactions are conformant to the design guidelines

### Templates and sample code

Another productivity booster for API clients and API producers is to offer templates and sample code that are guidelines conformant. Those templates can be source code in different programming languages or OpenAPI specification fragments. Few things are more clarifying than good examples of how the guidelines should be applied in real-world scenarios. You can even go one step further and create IDE extensions for popular development environments to provide project templates and code fragments to bootstrap API development.

### Golden images and hardening

One way to make sure about security adherence in API management is to create golden images for API gateway infrastructure and API implementations that are conformant with the security and hardening guidelines. By storing those images in artifact repositories and distributing them to API teams, you make sure that security guidelines are enforced during the API lifecycle.

### Identity and access setup

Another essential element of security compliance is making sure that identity and access management are enforced for all API calls. The API guidelines should provide the criteria by which identity provider solutions are selected and deployed in the API landscape. API gateways can already be pre-configured with the relevant authentication and authorization plugins, and distributed as a golden image.

### Linting and APIOps

API guidelines specifications around protocol management, message formats, or data types can be validated in APIOps pipelines by using linting rules in a format like spectral.

API guidelines should dictate what rules to validate to ensure that APIs deployed are conformant to the guidelines. But linting is just one step of a full APIOps pipeline. Providing git repository templates with a pre-defined pipeline setup that can be later customized and expanded is a great help to API teams. The API design guidelines should explain what is the rationale behind the pipeline structure and how teams are expected to use it.

#### Conclusion

API design guidelines are a core element of an API strategy. Based on the API principles and patterns outlined, the API community will be able to derive a set of tools and services that will be used to promote a consistent approach to building an API platform across the enterprise. With the right governance structure in place, all stakeholders will feel represented and committed to creating and evolving the guidelines.

- [API Design](/blog/tag/api-design)API Design- [API Documentation](/blog/tag/api-documentation)API Documentation- [Open Source](/blog/tag/open-source)Open Source

## More on this topic

_Reports_

## Kong Insomnia: Collaborative open source API development platform for design-first organizations

_Videos_

## Native API Mocking in Insomnia

## See Kong in action

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

[Get a Demo](/contact-sales)Get a Demo
**Topics**
- [API Design](/blog/tag/api-design)API Design- [API Documentation](/blog/tag/api-documentation)API Documentation- [Open Source](/blog/tag/open-source)Open Source
Jordi Fernandez Moledo
Principal Architect, Kong

Recommended posts

# Build with Confidence: Beta API Specs Available Now

Kong Logo
[Engineering](/blog)EngineeringSeptember 8, 2023

Few things are more frustrating than encountering a product with either no documentation or worse: documentation that leads you astray. When it comes to developing APIs, schemas typically define how requests and responses are formatted and guide how

Angel Guarisma
[](https://konghq.com/blog/engineering/beta-api-specs)

# How to Fix a SIGILL Kong Crash on Arm64

[Engineering](/blog)EngineeringJuly 27, 2023

Kong will crash on the ARM64 platform (the machine with Mac M1/M2 chips or any ARM64 platform). The error message shows the crash is triggered by the SIGILL signal, which means there is an illegal instruction in the Kong binary code. And it turns out

Zhongwei Yao
[](https://konghq.com/blog/engineering/sigill-kong-crash-on-arm64)

# Multi-Tenancy and Kong: An Architectural Guide

[Enterprise](/blog)EnterpriseMarch 2, 2023

Engineering organizations building modern API-driven systems have different priorities when it comes to their API management solution. These priorities will drive design decisions about the deployment of various components for API gateways. Some org

Rick Spurgeon
[](https://konghq.com/blog/enterprise/multi-tenancy)

# Introducing Insomnia Designer: An Open Source Collaborative Editor for API Design

[Product Releases](/blog)Product ReleasesApril 29, 2020

Read the latest version: Announcing Insomnia 2021.1 Archived post below. Today, we're thrilled to announce the release of a major expansion to the Insomnia family of open source developer tools — Insomnia Designer ! Providing a collaborative envir

Kong
[](https://konghq.com/blog/product-releases/introducing-insomnia-designer-an-open-source-collaborative-editor-for-api-design)

# 6 Reasons Why Kong Insomnia Is Developers' Preferred API Client

[Engineering](/blog)EngineeringAugust 8, 2025

So, what exactly is Kong Insomnia? Kong Insomnia is your all-in-one platform for designing, testing, debugging, and shipping APIs at speed. Built for developers who need power without bloat, Insomnia helps you move fast whether you’re working solo,

Juhi Singh
[](https://konghq.com/blog/engineering/why-kong-insomnia-is-developers-preferred-api-client)

# Implementing an Open Source Vulnerability Management Strategy

[Engineering](/blog)EngineeringApril 28, 2025

Open source software has become an indispensable component of modern software development. With its easy accessibility, it offers numerous benefits such as cost savings, flexibility, and collaborative innovation. Since the use of open source componen

Kong
[](https://konghq.com/blog/engineering/implementing-an-open-source-vulnerability-management-strategy)

# How to Implement Secure Access Control with OPA and Kong Gateway

[Engineering](/blog)EngineeringJanuary 8, 2025

Ensuring secure access to applications and APIs is critical. As organizations increasingly adopt microservices architectures and cloud native solutions, the need for robust, fine-grained access control mechanisms becomes paramount. This is where the

Raja Ravi Varman
[](https://konghq.com/blog/engineering/secure-access-control-with-opa-and-kong)

## 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
Ask AI for a summary of Kong
  • [](https://chatgpt.com/s/t_69b981cfa37081919ce25ce107c431c1)
  • [](https://share.google/aimode/hyefOiNwl8pg8W99d)
  • [](https://www.perplexity.ai/search/what-solutions-does-kong-offer-VsYWPddxQjajgvLA4B9hjQ)
Stay connected

## step-0

    • Company
    • [About Kong](/company/about-us)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
    • Legal
    • [Terms](/legal/terms-of-use)Terms
    • [Privacy](/legal/privacy-policy)Privacy
    • [Trust and Compliance](https://trust.konghq.com)Trust and Compliance
    • 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 IBM](/performance-comparison/ibm-api-connect-vs-kong)Kong vs IBM
    • [Kong vs Postman](/performance-comparison/kong-vs-postman)Kong vs Postman
    • [Kong vs Mulesoft](/performance-comparison/kong-vs-mulesoft)Kong vs Mulesoft
    • Explore More
    • [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
    • [Kong vs Apigee](/performance-comparison/kong-vs-apigee)Kong vs Apigee
    • 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.

  • Japanese
  • Frenchcoming soon
  • Spanishcoming soon
  • Germancoming soon
© Kong Inc. 2026
Interaction mode