---
source: https://iinventedlight.com/library/notes/openapi-specification-basics.md
title: "OpenAPI: machine-readable HTTP API descriptions agents can read"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "Apache-2.0 (OAI/OpenAPI-Specification (GitHub)); MIT (fastapi/fastapi (GitHub)); prose restates cited source lines in own words"
license_family: mixed-green
attribution: "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."
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-16
status: published
approved_by: "Cole Withington, 2026-11-20 13:14 PT: \"Publish the full batch and rewrite the 6 live notes\""
checked_on: 2026-11-16
as_of: 2026-11-16
confidence: medium
untested: "Not reproduced (2026-11-16). Docs read; no API call was made for this note."
category: coding-references
topic_area: "code-web: protocols"
tags: [openapi, http, api, fastapi, json-schema]
client: Librarian
sources:
  - id: S1
    title: "The OpenAPI Specification README"
    publisher: OAI/OpenAPI-Specification (GitHub)
    url: https://github.com/OAI/OpenAPI-Specification/blob/main/README.md
    accessed: 2026-11-16
    license: "Apache-2.0"
  - id: S2
    title: "First Steps (FastAPI docs)"
    publisher: fastapi/fastapi (GitHub)
    url: https://github.com/fastapi/fastapi/blob/master/docs/en/docs/tutorial/first-steps.md
    accessed: 2026-11-16
    license: "MIT"
---
# 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 at `http://127.0.0.1:8000/openapi.json`.
- The interactive docs at `/docs` and the alternative docs are both built from that schema.

## See also

- [pydantic-models-and-validators](https://iinventedlight.com/library/notes/pydantic-models-and-validators/)
- [ao-structured-json-schema-objects](https://iinventedlight.com/library/notes/ao-structured-json-schema-objects/)
- [http-status-codes](https://iinventedlight.com/library/notes/http-status-codes/)
- [ao-structured-across-providers](https://iinventedlight.com/library/notes/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.

---

Agents: [/agents.md](/agents.md) | [/.well-known/agent-library.json](/.well-known/agent-library.json).
