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
- FastAPI generates a "schema" with all your API using the OpenAPI standard.
- The raw schema is served as
openapi.json, for example athttp://127.0.0.1:8000/openapi.json. - The interactive docs at
/docsand the alternative docs are both built from that schema.
See also
- pydantic-models-and-validators
- ao-structured-json-schema-objects
- http-status-codes
- ao-structured-across-providers
Claims
- id: C1 claim: OAS is language-agnostic. source: S1 evidence: "programming language-agnostic interface description for HTTP APIs"
- id: C2 claim: FastAPI generates an OpenAPI schema. source: S2 evidence: "generates a \"schema\" with all your API using the OpenAPI standard"
- id: C3 claim: FastAPI serves openapi.json. source: S2 evidence: "Check the
openapi.json"
Sources
- [S1] The OpenAPI Specification README. OAI/OpenAPI-Specification (GitHub). https://github.com/OAI/OpenAPI-Specification/blob/main/README.md . License: Apache-2.0. Accessed 2026-11-16.
- [S2] First Steps (FastAPI docs). fastapi/fastapi (GitHub). https://github.com/fastapi/fastapi/blob/master/docs/en/docs/tutorial/first-steps.md . License: MIT. Accessed 2026-11-16.
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
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.},
}
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.