Headers
Adding Headers
Open the Headers tab in the request builder. Click + Add to add a new row.
Each row has:
- ✓ checkbox — enable/disable the header
- Key — header name (e.g.,
Content-Type) - Value — header value (supports
{{variables}}) - Delete — remove the row
Common Headers
| Header | Example Value | Purpose |
|---|---|---|
Content-Type | application/json | Body format for POST/PUT/PATCH |
Authorization | Bearer {{token}} | Auth (use the Auth tab instead) |
Accept | application/json | Requested response format |
X-API-Key | {{apiKey}} | API key authentication |
X-Request-ID | {{$randomUUID}} | Request tracing |
Auto-generated Headers
Some headers are added automatically by Rostyman:
Content-Type— set automatically based on the body mode selectedContent-Length— calculated from the body
Disabling Headers
Uncheck a header's checkbox to disable it without removing it. Useful for testing with and without a specific header.
Variables in Headers
Both key and value fields support {{variable}} syntax:
Key: Authorization
Value: Bearer {{accessToken}}