hen 0.18.0

Run protocol-aware API request collections from the command line or through MCP.
Documentation
name = Request Reliability
description = Use preamble defaults plus request overrides to poll an eventually consistent export job.

$ API_ORIGIN = [[ api_origin = https://api.example.com ]]

timeout = 30s
poll_every = 1s

---

Create export

POST {{ API_ORIGIN }}/exports

~~~json
{
  "format": "csv",
  "resource": "orders"
}
~~~

^ & status == 202
& body.jobId -> $JOB_ID

---

Wait for export

> requires: Create export
GET {{ API_ORIGIN }}/exports/{{ JOB_ID }}
timeout = 5s
poll_until = 2m
poll_every = 2s

^ & status == 200
^ & body.state == "completed"
^ & body.downloadUrl != null