POST request in Postman: JSON body, form-data, file and headers
Checkcraft is a desktop app for checking APIs and logs without code, with a free edition. Download, no sign-up →
For POST in Postman the Body tab and the body type matter most. The wrong type is the most common reason for 400 and 415 responses: the server expects JSON and gets a form, or the other way round. Below is which type to pick, a body example and how to check what reached the server.
Which body type to choose
raw with JSON for most REST APIs. x-www-form-urlencoded for classic forms and some OAuth calls. form-data when you send a file or mix a file and fields. binary when the body itself is a file. GraphQL for GraphQL servers.
How to see what reached the server
Open the Postman Console (Console at the bottom or View, Show Postman Console). It shows the final URL, all headers including automatic ones, and the body. On a 415 check Content-Type there first.

Repeat the request outside Postman
The Code button on the right shows the same request as curl or code in your language. If it works in curl but not in Postman, check Postman settings: proxy, certificates or an extra header.
Body types and Content-Type
| Body type | Content-Type | Used for |
|---|---|---|
| raw → JSON | application/json | REST APIs |
| x-www-form-urlencoded | application/x-www-form-urlencoded | Forms, some OAuth |
| form-data | multipart/form-data | Files with fields |
| binary | file type | The body is the file |
| GraphQL | application/json | GraphQL queries |

Sample JSON body
{
"customerId": 7,
"items": [
{ "sku": "MON-24", "qty": 2, "price": 15900 },
{ "sku": "KB-01", "qty": 1, "price": 2490 }
],
"discount": 300
}Variables work in the body: "customerId": {{customerId}}. Without quotes the value goes in as a number, with quotes as a string.
POST errors
| Response | Common cause |
|---|---|
| 400 Bad Request | Trailing comma, single quotes or wrong field types in JSON |
| 415 Unsupported Media Type | Wrong body type, Content-Type is not application/json |
| 413 Payload Too Large | The file exceeds the server limit |
| 422 Unprocessable Entity | Valid JSON, but the server rejected the data |
If the body looks right, compare with a working curl: curl POST with JSON.
More on Postman
Section overview and all guides: Postman requests: how to send GET, POST, PUT and DELETE with examples.
- Postman tests: checking responses with pm.test, examples and running a collection
- Postman variables: environments, collections and passing a token
- How to save a collection and a request in Postman: Save, History and a file
- How to import cURL into Postman: paste the command and get a ready request
- Postman errors 401, 403, 405 and 415: what they mean and how to fix them
Frequently asked questions
How do I POST JSON in Postman?
POST, Body → raw → JSON, paste the body, Send; Postman sets Content-Type.
How do I send a file?
Body → form-data, switch the field type to File.
Why does Postman return 415?
The body type does not match what the server expects.
Repeat this on your own API
Checkcraft is a desktop app that saves API response checks without code and shows what did not match. Start with a sample, then use your own sanitized data. Free runs on Windows and Linux with no time limit.
Download FreeDownload and first runNo sign-up or email needed, the archive is ready in a couple of minutes. See the edition limits.
References
Start with the linked example and compare its result with your own test requirement.