# FastAPI vocabulary

50 FastAPI terms, from Novice to Master. Start with the basics or jump to a level.

Updated: November 19, 2026

## Novice

- [Endpoint](https://www.ask-codey.com/glossary/endpoint): One address of an API that a client can call.
- [FastAPI](https://www.ask-codey.com/glossary/fastapi): A modern Python framework for building APIs using type hints.
- [fastapi dev](https://www.ask-codey.com/glossary/fastapi-dev): Runs the app locally with auto-reload for development.
- [Interactive Docs](https://www.ask-codey.com/glossary/interactive-docs): Automatic API docs at \`/docs\` where you can try every endpoint.
- [Path Operation](https://www.ask-codey.com/glossary/path-operation): A URL path plus HTTP method, and the function that handles it.
- [Uvicorn](https://www.ask-codey.com/glossary/uvicorn): The server that runs FastAPI apps.

## Apprentice

- [async def](https://www.ask-codey.com/glossary/async-def): Declares an endpoint that can \`await\` slow work without blocking the server.
- [Automatic Validation](https://www.ask-codey.com/glossary/automatic-validation): Bad input is rejected with a clear 422 error before your code runs.
- [BaseModel](https://www.ask-codey.com/glossary/basemodel): The Pydantic base class for data models.
- [EmailStr](https://www.ask-codey.com/glossary/emailstr): Pydantic's type for an email address: text that must have the shape of one, an @ and a domain after it, though it can't tell whether the mailbox exists.
- [HTTPException](https://www.ask-codey.com/glossary/httpexception): Raised to send an error response with a status code and message.
- [OpenAPI](https://www.ask-codey.com/glossary/openapi): The standard API description FastAPI generates at \`/openapi.json\`.
- [Path Parameter](https://www.ask-codey.com/glossary/path-parameter): A changing part of the URL, converted and checked using its type hint.
- [Pydantic](https://www.ask-codey.com/glossary/pydantic): The library FastAPI uses to define and check data shapes.
- [Query Parameter](https://www.ask-codey.com/glossary/query-parameter): Function parameters read from the \`?key=value\` query string.
- [Request Body](https://www.ask-codey.com/glossary/request-body): The JSON a client sends, read into a Pydantic model.
- [Response Model](https://www.ask-codey.com/glossary/response-model): The shape an endpoint returns; extra fields are filtered out.
- [Status Code in FastAPI](https://www.ask-codey.com/glossary/status-code-in-fastapi): Set with \`status_code=\` on the decorator, such as 201 for created.
- [Type Hints in FastAPI](https://www.ask-codey.com/glossary/type-hints-in-fastapi): Type annotations FastAPI uses to check input and write docs.

## Journeyman

- [Annotated](https://www.ask-codey.com/glossary/annotated): Attaches extra info like \`Query\` or \`Depends\` to a type hint.
- [APIRouter](https://www.ask-codey.com/glossary/apirouter): Groups related endpoints so the app can be split into files.
- [Background Tasks](https://www.ask-codey.com/glossary/background-tasks): Work that runs after the response is sent, like sending an email.
- [CORS Middleware](https://www.ask-codey.com/glossary/cors-middleware): Lets web pages on other domains call the API.
- [Dependency Injection in FastAPI](https://www.ask-codey.com/glossary/dependency-injection-in-fastapi): FastAPI running helper functions and passing their results into endpoints.
- [Depends()](https://www.ask-codey.com/glossary/depends): Marks a parameter whose value comes from calling a dependency function.
- [Exception Handler](https://www.ask-codey.com/glossary/exception-handler-fastapi): A function registered with @app.exception_handler(SomeError) that FastAPI calls whenever that exception reaches it from any route, and that returns the answer to send.
- [Field Validation](https://www.ask-codey.com/glossary/field-validation): Rules on a model field, like min, max or length, added with \`Field()\`.
- [File Upload](https://www.ask-codey.com/glossary/file-upload): Accepts uploaded files with \`UploadFile\`.
- [Form Data](https://www.ask-codey.com/glossary/form-data): Reads HTML form fields instead of JSON.
- [Middleware](https://www.ask-codey.com/glossary/middleware): Code that runs around every request, before and after the endpoint.
- [Nested Model](https://www.ask-codey.com/glossary/nested-model): A Pydantic model used as the type of another model's field, so a JSON object inside a request body is checked by its own model, such as home: Home.
- [Settings with pydantic-settings](https://www.ask-codey.com/glossary/settings-with-pydantic-settings): Loads environment variables into a typed settings class.
- [SQLModel](https://www.ask-codey.com/glossary/sqlmodel): A library where one class is both a database table and an API model.
- [Tags](https://www.ask-codey.com/glossary/tags): Labels that group endpoints under headings in the docs.
- [TestClient](https://www.ask-codey.com/glossary/testclient): Sends requests to the app in tests without a server.

## Freelancer

- [Custom Validator](https://www.ask-codey.com/glossary/custom-validator-fastapi): Your own Pydantic validation rule for a field or the whole model.
- [Dependency Override](https://www.ask-codey.com/glossary/dependency-override): Replacing a real dependency with a fake one in tests.
- [Dependency with yield](https://www.ask-codey.com/glossary/dependency-with-yield): A dependency that yields a value and then runs cleanup after the response.
- [JWT in FastAPI](https://www.ask-codey.com/glossary/jwt-in-fastapi): A signed token carrying user info, created and checked with a library like PyJWT.
- [Lifespan Events](https://www.ask-codey.com/glossary/lifespan-events): Setup and cleanup code that runs when the app starts and stops.
- [OAuth2 Password Flow](https://www.ask-codey.com/glossary/oauth2-password-flow): A login flow that trades a username and password for a token.
- [RequestValidationError](https://www.ask-codey.com/glossary/requestvalidationerror): The exception FastAPI raises before a route runs when a request breaks its model's rules; a handler for it can reshape the 422 answer.
- [Security Dependencies](https://www.ask-codey.com/glossary/security-dependencies): Dependencies that check credentials and return the current user.
- [slowapi](https://www.ask-codey.com/glossary/slowapi): A package that adds rate limits to FastAPI routes, such as 5 sign-in tries a minute from one address, and raises RateLimitExceeded for the rest.
- [Streaming Response](https://www.ask-codey.com/glossary/streaming-response): Sends data in pieces as it is produced.
- [WebSocket](https://www.ask-codey.com/glossary/websocket): A connection that stays open for two-way messages, such as chat.

## Master

- [ASGI](https://www.ask-codey.com/glossary/asgi): The async standard interface between Python web apps and servers.
- [Event Loop and Blocking Calls](https://www.ask-codey.com/glossary/event-loop-and-blocking-calls): Blocking calls inside async endpoints freeze the shared event loop.
- [Serialization Aliases](https://www.ask-codey.com/glossary/serialization-aliases): Letting JSON field names differ from Python attribute names.
- [Starlette](https://www.ask-codey.com/glossary/starlette): The ASGI framework underneath FastAPI.

[More subjects in Back-End Frameworks](https://www.ask-codey.com/glossary/groups/back-end-frameworks)

Source: https://www.ask-codey.com/glossary/subjects/fastapi
