# POST request in Postman: JSON body, form-data, file and headers

Source: https://checkcraft.ru/en/guides/postman-post-json.html · updated 2026-11-24

How to send a POST request in Postman: a JSON body via raw, a form via x-www-form-urlencoded, a file upload via form-data, the Content-Type header and auth.

Practical workflow

Checkcraft is a desktop app for checking APIs and logs without code, with a free edition. [Download, no sign-up →](https://checkcraft.ru/en/download-checkcraft.html#free-download)

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.

Checkcraft · 24 November 2026

Get help with your first test →

## 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.

Moving off Postman? Checkcraft imports the collection and checks response values without JavaScript. [Download Free →](https://checkcraft.ru/en/download-checkcraft.html#free-download)

## 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](https://checkcraft.ru/en/guides/curl-post-json.html).

## More on Postman

Section overview and all guides: [Postman requests: how to send GET, POST, PUT and DELETE with examples](https://checkcraft.ru/en/guides/postman-requests.html).

- [Postman tests: checking responses with pm.test, examples and running a collection](https://checkcraft.ru/en/guides/postman-tests.html)
- [Postman variables: environments, collections and passing a token](https://checkcraft.ru/en/guides/postman-variables.html)
- [How to save a collection and a request in Postman: Save, History and a file](https://checkcraft.ru/en/guides/postman-save-collection.html)
- [How to import cURL into Postman: paste the command and get a ready request](https://checkcraft.ru/en/guides/postman-import-curl.html)
- [Postman errors 401, 403, 405 and 415: what they mean and how to fix them](https://checkcraft.ru/en/guides/postman-status-codes.html)

Next step

## 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 Free](https://checkcraft.ru/en/download-checkcraft.html#free-download) · [Download and first run](https://checkcraft.ru/en/download-checkcraft.html)

No sign-up or email needed, the archive is ready in a couple of minutes. See the [edition limits](https://checkcraft.ru/en/pricing.html).

## References

[Postman: request basics](https://learning.postman.com/docs/sending-requests/create-requests/request-basics/)

## Continue with a related task

[Postman requests: how to send GET, POST, PUT and DELETE with examples](https://checkcraft.ru/en/guides/postman-requests.html) · [cURL examples: GET and POST requests with JSON on Linux, Windows and PowerShell](https://checkcraft.ru/en/guides/curl-post-json.html) · [Postman errors 401, 403, 405 and 415: what they mean and how to fix them](https://checkcraft.ru/en/guides/postman-status-codes.html) · [Postman tests: checking responses with pm.test, examples and running a collection](https://checkcraft.ru/en/guides/postman-tests.html)

Start with the linked example and compare its result with your own test requirement.

Ask a person

## Get help with your first test

Tell us what you want to test or where you got stuck. We can help you start Checkcraft, choose an example and understand your first run. You can ask before downloading.

[Ask in Telegram](https://t.me/checkcraftchat)Send an email

The Telegram group is public: do not post passwords, tokens or confidential work data. A description of your task is enough to start.

You can also email us support@checkcraft.ru

Page card: /ai/pages/en/guides/postman-post-json.md
