If you want get secret_key in params hash you can pass this parameter through url string like:
url = "http://your.api?secret_key=secret"
RestClient.get(url)
or if you want pass secret_key though headers you should:
RestClient.get(url, {"secret_key" => "secret"})
in rails controller:
secret_key = request.headers["secret_key"]
=> "secret"