- You are an OpenAPI 3.1 specification generator.
- You are an expert in API design and OpenAPI specifications.
Core Instructions
You are an expert API designer specializing in creating OpenAPI 3.1 specifications. Your task is to generate complete, valid, and well-structured OpenAPI 3.1 documents that follow industry best practices.
Output Format Requirements
<output_requirements>
Always output valid OpenAPI 3.1 specifications in YAML or JSON format as requested by the user (default to YAML if not specified).
Ensure the specification is complete and self-contained.
When generating YAML, use proper indentation (2 spaces) and formatting, with special attention to YAML's sensitivity to whitespace.
When generating title of the OpenAPI spec, use a clear and descriptive title that reflects the API's purpose.
When generating commentary:
use markdown
follow this template structure:
```markdown
# 📋 API Overview
Brief description of what this API does and its main purpose.
🌐 Major Endpoints
GET /endpoint1 - Description
POST /endpoint2 - Description
PUT /endpoint3/{id} - Description
🤖 Schema Models
ModelName1 - Description of the model
ModelName2 - Description of the model
✨ Special Features & Considerations
Feature 1 description
Feature 2 description
Any important considerations
When an existing OpenAPI spec is provided:
use it as a base and only modify the necessary parts to meet the user's request
the generated commentary should only reflect the changes made to the existing spec, not a summary of the entire spec.
Ensure all three required fields (yamlSpec, yamlSpecTitle, commentary) are present in the structured output.
Endpoint Generation:
Comprehensive Coverage: Include all required endpoints based on the API's described purpose, data models, and operations implied by the specification.
Collection Endpoints: When a resource is plural or naturally represents a collection (e.g., transfers, users, transactions), automatically generate a corresponding list endpoint.
Pagination:
Required for All Collection Endpoints
All list or collection endpoints must implement pagination from the start, regardless of dataset size—even for small collections.
Pagination Parameters
Use standard query parameters:
limit — Number of items per page (e.g., ?limit=25)
offset — Number of items to skip (e.g., ?offset=50)
Response Metadata
Include pagination metadata in the response under meta.page:
Define webhooks when the API supports them
```yaml
webhooks:
newItem:
post:
requestBody:
description: "Information about the new item"
content:
application/json:
schema:
$ref: "#/components/schemas/Item"
responses:
'200':
description: "Webhook processed successfully"
```
Quality is at the core of every product we build. To move fast without compromising on quality, we rely on an extensive set of test suites that tell us quickly whether a change has caused a regression. Those suites are large enough that a single ful
Datong Sun
# A Unified Gateway for APIs + Agentic Applications on VMware VKS with Kong Konnect
Built on top of Kong API Gateway, the Kong AI Gateway is designed to address key challenges in enterprise AI adoption. Modern AI applications rarely rely on a single model; instead, they orchestrate multiple GenAI providers, agent frameworks, Age
Anika Suri
# Building a Secure, Scalable AI Infrastructure with Kong and Akamai: A Technical Introduction
Together, the following components represent the three layers of the new AI platform: AI Gateway: Kong AI Gateway (including MCP support) controls both GenAI and MCP flow and orchestrates the existing services like Vector Databases, Event Streaming,
Marco Raffaelli
# Dynamic Kafka ACLs: Implementing Identity-Aware Policies with Kong Event Gateway
The Problem with Traditional Kafka ACLs
Kafka ACLs are powerful, but they come with significant tradeoffs:
Static Definition: They are defined at the broker level and lack context awareness (e.g., who the caller is, their role, or current environm
Hugo Guerrero
# Migrating Your Collections and Requests from Postman to Insomnia
Local-first: your data stays with you: Insomnia stores everything on your machine by default. No forced cloud sync, no account needed just to send a request. This is helpful if privacy or working in a regulated environment is a priority for you Fre
Juhi Singh
# Automating Agreement Workflows with Kong Konnect and Docusign for Developers
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
# Beyond Static Routing: Modernizing API Logic with Conditional Policy Execution
Imagine you have a single Service, order-api . You want to apply a strict rate limit to most traffic, but you want to bypass that limit—or apply a different one—if the request contains a specific X-App-Priority: High header. Previously, you had t
Hugo Guerrero
# How We Used Agentic AI to Fix Kong Gateway's Flakiest Tests
Quality is at the core of every product we build. To move fast without compromising on quality, we rely on an extensive set of test suites that tell us quickly whether a change has caused a regression. Those suites are large enough that a single ful
Datong Sun
# A Unified Gateway for APIs + Agentic Applications on VMware VKS with Kong Konnect
Built on top of Kong API Gateway, the Kong AI Gateway is designed to address key challenges in enterprise AI adoption. Modern AI applications rarely rely on a single model; instead, they orchestrate multiple GenAI providers, agent frameworks, Age
Anika Suri
# Building a Secure, Scalable AI Infrastructure with Kong and Akamai: A Technical Introduction
Together, the following components represent the three layers of the new AI platform: AI Gateway: Kong AI Gateway (including MCP support) controls both GenAI and MCP flow and orchestrates the existing services like Vector Databases, Event Streaming,
Marco Raffaelli
# Dynamic Kafka ACLs: Implementing Identity-Aware Policies with Kong Event Gateway
The Problem with Traditional Kafka ACLs
Kafka ACLs are powerful, but they come with significant tradeoffs:
Static Definition: They are defined at the broker level and lack context awareness (e.g., who the caller is, their role, or current environm
Hugo Guerrero
# Migrating Your Collections and Requests from Postman to Insomnia
Local-first: your data stays with you: Insomnia stores everything on your machine by default. No forced cloud sync, no account needed just to send a request. This is helpful if privacy or working in a regulated environment is a priority for you Fre
Juhi Singh
# Automating Agreement Workflows with Kong Konnect and Docusign for Developers
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
# Beyond Static Routing: Modernizing API Logic with Conditional Policy Execution
Imagine you have a single Service, order-api . You want to apply a strict rate limit to most traffic, but you want to bypass that limit—or apply a different one—if the request contains a specific X-App-Priority: High header. Previously, you had t
Hugo Guerrero
# How We Used Agentic AI to Fix Kong Gateway's Flakiest Tests
Quality is at the core of every product we build. To move fast without compromising on quality, we rely on an extensive set of test suites that tell us quickly whether a change has caused a regression. Those suites are large enough that a single ful
Datong Sun
# A Unified Gateway for APIs + Agentic Applications on VMware VKS with Kong Konnect
Built on top of Kong API Gateway, the Kong AI Gateway is designed to address key challenges in enterprise AI adoption. Modern AI applications rarely rely on a single model; instead, they orchestrate multiple GenAI providers, agent frameworks, Age
Anika Suri
# Building a Secure, Scalable AI Infrastructure with Kong and Akamai: A Technical Introduction
Together, the following components represent the three layers of the new AI platform: AI Gateway: Kong AI Gateway (including MCP support) controls both GenAI and MCP flow and orchestrates the existing services like Vector Databases, Event Streaming,
Marco Raffaelli
# Dynamic Kafka ACLs: Implementing Identity-Aware Policies with Kong Event Gateway
The Problem with Traditional Kafka ACLs
Kafka ACLs are powerful, but they come with significant tradeoffs:
Static Definition: They are defined at the broker level and lack context awareness (e.g., who the caller is, their role, or current environm
Hugo Guerrero
# Migrating Your Collections and Requests from Postman to Insomnia
Local-first: your data stays with you: Insomnia stores everything on your machine by default. No forced cloud sync, no account needed just to send a request. This is helpful if privacy or working in a regulated environment is a priority for you Fre
Juhi Singh
# Automating Agreement Workflows with Kong Konnect and Docusign for Developers
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
# Beyond Static Routing: Modernizing API Logic with Conditional Policy Execution
Imagine you have a single Service, order-api . You want to apply a strict rate limit to most traffic, but you want to bypass that limit—or apply a different one—if the request contains a specific X-App-Priority: High header. Previously, you had t
Hugo Guerrero
## Ready to see Kong in action?
Get a personalized walkthrough of Kong's platform tailored to your architecture, use cases, and scale requirements.