Quick Summary — TL;DR
A payload is the data sent in the body of an HTTP request. When you POST to an API, the payload is the JSON (or form data) that carries the information the server needs to process the request. In webhooks and background jobs, the payload contains the event data or job parameters.
An HTTP request has three places to put data:
?page=2&sort=date)GET requests usually don't have a payload. POST, PUT, and PATCH requests almost always do.
| Format | Content-Type | Use case |
|---|---|---|
| JSON | application/json | APIs, webhooks, background jobs |
| Form data | application/x-www-form-urlencoded | HTML form submissions |
| Multipart | multipart/form-data | File uploads |
| XML | application/xml | Legacy SOAP APIs, some payment gateways |
| Plain text | text/plain | Simple notifications, logs |
JSON is the standard for modern APIs and webhooks. Unless you have a specific reason to use another format, use JSON.
Payloads have practical limits:
If your payload exceeds the limit, the request will fail with a 413 (Payload Too Large) status code. For large data, store it externally (S3, database) and pass a reference URL in the payload instead.
The payload is the data in the request body — typically JSON — that carries the information needed to process the request. It's the "content" as opposed to the metadata (headers) and address (URL).
Technically the HTTP spec doesn't forbid it, but in practice GET requests send data via URL query parameters, not a body. Most servers and frameworks ignore or reject GET request bodies.
The server returns a 413 Payload Too Large status code. The fix is to reduce the payload size or store the data externally and reference it by URL or ID.
Payloads carry the data for webhooks, webhook events, and background jobs. They should be verified via webhook signatures when receiving external events. The server's response to a payload is indicated by an HTTP status code, and oversized payloads can cause timeouts.
Recuro handles cron scheduling, retries, alerts, and execution logs -- so you can focus on building your product.
No credit card required