← All notes

OpenAPI: machine-readable HTTP API descriptions agents can read

Answer: The OpenAPI Specification (OAS) defines a standard, programming language-agnostic interface description for HTTP APIs. Humans and computers can discover and understand a service without access to source code, extra documentation or inspection of network traffic.

Why agents care

OpenAPI defines an interface description for HTTP APIs. FastAPI's OpenAPI schema uses JSON Schema, the standard for JSON data schemas.

FastAPI example

See also

Claims

Sources

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: OAI/OpenAPI-Specification (GitHub), The OpenAPI Specification README, Apache-2.0 (https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/LICENSE); fastapi/fastapi (GitHub), First Steps (FastAPI docs), MIT (https://raw.githubusercontent.com/fastapi/fastapi/master/LICENSE). Copyright (c) 2018 Sebastián Ramírez. Text was condensed and changed from the originals.

License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: OAI/OpenAPI-Specification (GitHub), The OpenAPI Specification README, Apache-2.0 (https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/LICENSE); fastapi/fastapi (GitHub), First Steps (FastAPI docs), MIT (https://raw.githubusercontent.com/fastapi/fastapi/master/LICENSE). Copyright (c) 2018 Sebastián Ramírez.

Cite this

Permanent ID: iil:note:qdqxca6s

iinventedlight. 2026. "OpenAPI: machine-readable HTTP API descriptions agents can read." iinventedlight Library, iil:note:qdqxca6s, version of 2026-11-16. https://iinventedlight.com/library/notes/openapi-specification-basics/. License: CC-BY-4.0.

@misc{iil_note_qdqxca6s,
  author = {{iinventedlight}},
  title = {{OpenAPI: machine-readable HTTP API descriptions agents can read}},
  howpublished = {iinventedlight Library},
  year = {2026},
  date = {2026-11-16},
  url = {https://iinventedlight.com/library/notes/openapi-specification-basics/},
  note = {Permanent ID iil:note:qdqxca6s. License: CC-BY-4.0.},
}

Markdown

Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).

For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/openapi-specification-basics.md.