Skip to content

Payload

Easy — everyone uses thisNetworking

ELI5 — The Vibe Check

Payload is the actual data carried in a request or response — the valuable cargo. Like a delivery truck: the truck, wheels, and label are overhead, but the package inside is the payload. In an HTTP POST request, the payload is the JSON (or form data) you're sending.

Real Talk

In networking, the payload is the data portion of a packet or message, as distinguished from the protocol overhead (headers, metadata). In HTTP, it refers to the request or response body. In APIs, 'payload' and 'body' are often used interchangeably.

Show Me The Code

// Request with payload (body)
fetch('/api/users', {
  method: 'POST',
  headers: { 'Content-Type': 'application/json' },
  body: JSON.stringify({       // This JSON is the payload
    name: 'Bob',
    email: 'bob@example.com'
  })
});

When You'll Hear This

"Log the request payload to debug the API." / "The payload is too large — the server rejected it."

Made with passive-aggressive love by manoga.digital. Powered by Claude.