Request Body
The Body tab lets you send data with POST, PUT, and PATCH requests.
Body Modes
None
No body is sent. Use for GET, HEAD, DELETE requests.
Raw
Send a raw text body with a specified language/format. Select the language from the dropdown:
| Language | Content-Type set automatically |
|---|---|
| JSON | application/json |
| XML | application/xml |
| HTML | text/html |
| Text | text/plain |
| JavaScript | application/javascript |
The editor provides syntax highlighting and formatting for the selected language.
JSON Body Example
Select Raw → JSON and enter:
{
"name": "{{$randomFirstName}} {{$randomLastName}}",
"email": "{{userEmail}}",
"role": "admin"
}
Variables in the body are resolved before the request is sent.
Tips
- Press
Ctrl+Enterto send without leaving the body editor - Use
{{$randomUUID}}as an ID field when creating test data - The body editor supports the Monaco editor with full IntelliSense for JSON
Content-Type
The Content-Type header is set automatically based on the body mode you select. You can override it manually in the Headers tab if needed.