OpenAPI 3.1 Specification Complete Guide

OpenAPI is the industry standard for describing HTTP APIs. Maintained by the OpenAPI Initiative under the Linux Foundation, it provides a structured, machine-readable format that tools can use to generate documentation, client libraries, tests, mock servers, and more.

This guide covers every aspect of the OpenAPI 3.1 specification, from the basics of document structure to advanced topics like security, webhooks, and overlays. A 3.2 version of this guide is also available.

Introduction #

Understanding OpenAPI structure #

The core building blocks of every OpenAPI document.

Defining data models #

Advanced topics #

Documenting APIs #

Extending OpenAPI #

Workflow and best practices #

Quick reference #

What is OpenAPI?