For anyone else that finds this, the answer is to add your parameters as variables in the query pane.
In my case this meant I needed to enter {{client_healthcheck_name}}
into the client_healthcheck_name
parameter field on the distinction_healthchecks
REST query.
This will show red as an unknown variable but will work when called from the JS query.
This is super counter-intuitive and not covered in the official documentation.