Overview - Raw body (text, XML)
What is it?
Raw body in Postman is a way to send data in HTTP requests exactly as you type it, without any automatic formatting. You can write plain text, XML, JSON, or other formats directly in the request body. This lets you test APIs that expect specific data formats or structures. Using raw body helps you control the exact content sent to the server.
Why it matters
Without raw body support, testers would struggle to send precise data formats required by many APIs, especially XML or custom text. This would make testing unreliable or impossible for APIs that need exact input. Raw body lets you simulate real client requests exactly, ensuring the API behaves correctly with real-world data. It helps catch bugs early and improves API quality.
Where it fits
Before using raw body, you should understand basic HTTP requests and how APIs work. After mastering raw body, you can learn about automated API testing, scripting in Postman, and validating responses. Raw body is a foundation for advanced API testing techniques.