StrikekitStrikekit

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

QualifierRoleExample
toHeader valueapi 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 Authorization and common secret header values.

On this page