# Taking JSON In: Your First Request Body

A POST route takes the JSON a request sends in its body through a small Pydantic model, a class that names each field and its type, then turns it into a dictionary with model_dump(), gives the new item the next id, and answers 201 with it.

![Cheat sheet: Taking JSON In: Your First Request Body](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/df98bbf3b80944f5b44b90f6015d13cf.webp)

- Category: FastAPI
- Level: Apprentice
- Tags: 201 Created, BaseModel, fastapi, POST, Pydantic, Request Body (fastapi), rest-api
- Author: Gregor Dzierzon
- Updated: November 23, 2026

Source: https://www.ask-codey.com/cheat-sheets/fastapi-first-request-body-cheat-sheet
