Blog
  • AI Gateway
  • AI Security
  • AIOps
  • API Security
  • API Gateway
|
    • API Management
    • API Development
    • API Design
    • Automation
    • Service Mesh
    • Insomnia
    • View All Blogs
  1. Home
  2. Blog
  3. Engineering
  4. Build with Confidence: Beta API Specs Available Now
Engineering
September 8, 2023
3 min read

Build with Confidence: Beta API Specs Available Now

Angel Guarisma

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 clients and services exchange data. Commonly, schemas aren't used to generate documentation or software development kits (SDKs), allowing them to become stale and inaccurate.

At Kong, we're committed to a different approach — having a single source of truth for our schemas. These schemas power both our code and our documentation, guaranteeing its accuracy and timeliness.

As a step forward, we're excited to announce the availability of our beta OpenAPI specifications for both the Kong Gateway Admin API and Konnect Runtime Groups configuration API. These specifications are designed to provide everything you need, all presented in a standardized format you’re already familiar with. The best part? They effortlessly integrate with your existing toolchain.

What does this mean for you?

  • SDK Generation: The API specs enable more efficient SDK generation, ensuring you can interact with the Kong Gateway API regardless of your preferred platform or programming language.
  • Kong Insomnia Integration: The API specifications seamlessly integrate with Kong Insomnia, or another API development platform, allowing you to test and interact with our APIs in an easy way.
  • Version comparisons: With our APIs hosted on the Kong Konnect Dev Portal, you can compare different versions of the API specs, so you can track changes and updates effectively.
  • Validation testing: You can now create automated tests that validate endpoint functionality. This enables you to take a proactive approach to testing related to the Kong Admin API or Kong Konnect.

Why now?

In an ideal world, all of our APIs would follow a design-first approach where the OpenAPI specification is the source of truth. Whilst this is true for our new Konnect APIs, Kong Gateway is a long-running open source project that treats Lua schemas as its source of truth.

Lua schemas being the source of truth with handwritten markdown documentation meant that API documentation lagged behind code changes, leading to confusion and frustration both internally and externally. To address this, we decided to make the Kong Gateway code the single source of truth for our API documentation and generate JSON schema entities from the code. Every endpoint, parameter, and response is now derived from and defined in the Kong Gateway code. This is to ensure that our API remains accurate and up to date.

Using the code as the source of truth didn't mean that we got everything for free. API documentation that's missing descriptions about what each field in the API is used for is almost useless. This led us to upgrade the underlying Lua schemas to contain description fields for every entity and create a generator that extracts all of the parameters, constraints, and descriptions when generating an Open API spec.

While our specs are robust and reliable enough that we're using them internally, we're still actively working on the generation process. But we wanted to give everyone access to these tools to empower them in the Kong ecosystem. Hopefully, this encourages you to explore, test, and provide any feedback related to these specs so that we can improve them to the point that they meet the same standard as the rest of our products.

Our long-term vision is to move to a design-first approach and treat OpenAPI as the source of truth for Kong Gateway. However, there are a lot of benefits from having a spec (even one generated from code) and we don't want perfect to be the enemy of better.You can find the specs hosted on our Docs site, and if you want to get started in Kong Insomnia, you can use these dedicated Kong Insomnia links for Kong Gateway and Kong Konnect.

If you spot any bugs, please let us know by emailing team-docs@konghq.com. And if you build anything cool with the specs, come tell us in the Kong Community Slack.

API DocumentationOpen SourceAPI Development

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
Topics
API DocumentationOpen SourceAPI Development
Share on Social
Angel Guarisma

Recommended posts

Docs as Code: Screenshot Automation at Kong

Kong Logo
EngineeringOctober 24, 2023

Imagine this: You're documenting an unreleased feature, and your documentation requires screenshots. However, you're working in an internal environment that includes features you don't want to reveal to the public. What do you do? We faced this exac

Angel Guarisma

How to Fix a SIGILL Kong Crash on Arm64

Kong Logo
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

Best Practices for API Design Guidelines

Kong Logo
EngineeringMay 3, 2023

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

Jordi Fernandez Moledo

How and Why to Migrate from Kong Open Source to Kong Konnect

Kong Logo
EngineeringMarch 1, 2023

Kong Konnect is a powerful SaaS-based API lifecycle management platform that provides a fast path for people looking to get started with Kong API Gateway. For existing users of Kong’s open-source gateway, it offers a way to rapidly take advantage of

Jerry Hency

How and Why to Migrate From Kong Open Source to Kong Enterprise API Gateway

Kong Logo
EngineeringJanuary 10, 2023

Kong’s open-source API Gateway is a highly successful project with over 33k stars on GitHub and 293 contributors. Kong provides a powerful platform that can be extended using hundreds of plugins provided by Kong, ecosystem partners, and the community

Jerry Hency

How Spring Changed Java Application Development

Kong Logo
EngineeringMarch 23, 2022

In this Kongcast episode , Josh Long, Spring Developer Advocate at VMware, dives into how Spring changed the way developers build Java applications and introduces you to Spring Native. Check out the transcript and video from our conversation below

Viktor Gamov

Guide to API Testing: Understanding the Basics

Kong Logo
EngineeringSeptember 1, 2025

Key Takeaways API testing is crucial for ensuring the reliability, security, and performance of modern applications. Different types of testing, such as functional, security, performance, and integration testing, should be employed to cover all aspe

Adam Bauman

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
Powering the API world

Increase developer productivity, security, and performance at scale with the unified platform for API management, AI gateways, service mesh, and ingress controller.

Sign up for Kong newsletter

    • Platform
    • Kong Konnect
    • Kong Gateway
    • Kong AI Gateway
    • Kong Insomnia
    • Developer Portal
    • Gateway Manager
    • Cloud Gateway
    • Get a Demo
    • Explore More
    • Open Banking API Solutions
    • API Governance Solutions
    • Istio API Gateway Integration
    • Kubernetes API Management
    • API Gateway: Build vs Buy
    • Kong vs Postman
    • Kong vs MuleSoft
    • Kong vs Apigee
    • Documentation
    • Kong Konnect Docs
    • Kong Gateway Docs
    • Kong Mesh Docs
    • Kong AI Gateway
    • Kong Insomnia Docs
    • Kong Plugin Hub
    • Open Source
    • Kong Gateway
    • Kuma
    • Insomnia
    • Kong Community
    • Company
    • About Kong
    • Customers
    • Careers
    • Press
    • Events
    • Contact
    • Pricing
  • Terms
  • Privacy
  • Trust and Compliance
  • © Kong Inc. 2025