Skip to main content

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

HeaderExample ValuePurpose
Content-Typeapplication/jsonBody format for POST/PUT/PATCH
AuthorizationBearer {{token}}Auth (use the Auth tab instead)
Acceptapplication/jsonRequested 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 selected
  • Content-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}}