api set header
Set a default HTTP header on the Platform api session
Set a header that applies to subsequent API requests in the session (for example auth).
Syntax
When I api set header "<name>" to "<value>"Qualifiers
| Qualifier | Role | Example |
|---|---|---|
to | Header value | api set header "Authorization" to "Bearer $API_TOKEN" |
Examples
When I api set header "Authorization" to "Bearer $API_TOKEN"
When I api set header "Content-Type" to "application/json"Notes
- Values expand via shared resolve (
$ENV, slots,{{faker}}). - Reports redact
Authorizationand common secret header values.