Skip to content

Glossary: Building APIs with FastAPI

APIKeyHeader

A ready-made FastAPI dependency, from `fastapi.security`, that reads an API key from a named header. It answers 401 if the header is missing and adds an Authorize button to `/docs`.

Where the book teaches it

Related terms

API keyDependencySwagger UI