hen 0.16.0

Run protocol-aware API request collections from the command line or through MCP.
Documentation
name = Redaction Rules Example
description = Extend Hen's default safe-output masking with explicit header, capture, and body-path rules.

$ API_ORIGIN = https://api.example.com
$ API_TOKEN = secret.env("HEN_API_TOKEN")

redact_header = X-Session-Token
redact_capture = SESSION_ID
redact_body = body.session.accessToken

---

Login

POST {{ API_ORIGIN }}/login

* Authorization = Bearer {{ API_TOKEN }}

~~~ application/json
{
  "username": "[[ username ]]",
  "password": "[[ password ]]"
}
~~~

& body.session.id -> $SESSION_ID

^ & status == 200

---

Get session

GET {{ API_ORIGIN }}/session

> requires: Login

* X-Session-Token = {{ SESSION_ID }}

^ & body.session.accessToken != null
^ & status == 200