AI engineering glossary · Web APIs HTTP

What is request body?

Request body (also called Payload): The data a client sends after the headers of a request, used mainly with POST, PUT and PATCH. Its format is declared by the Content-Type header, and JSON is the most common choice for APIs.

Level: beginnerTopic: Web APIs HTTP

Request body: an example

{"model": "small", "prompt": "Hello"} sent with a POST is a JSON request body.

Related terms

More Web APIs HTTP terms

Where you learn it

Request body is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.