     data['client'] = client
     data['check'] = msg.match[2]
 
-    robot.http(config.sensu_api + '/resolve')
+    robot.http(config.sensu_api + '/resolve').header("Authorization", config.sensu_auth_basic)
       .post(JSON.stringify(data)) (err, res, body) ->
         if err
           msg.send "Sensu says: #{err}"

########################
  robot.respond /sensu clients/i, (msg) ->
    validateVars
    robot.http(config.sensu_api + '/clients')
      .get() (err, res, body) ->
        if err
          msg.send "Sensu says: #{err}"

    data['expire'] = expiration
    data['path'] = 'silence/' + path

    robot.http(config.sensu_api + '/stashes').header("Authorization", config.sensu_auth_basic)
      .post(JSON.stringify(data)) (err, res, body) ->
        if res.statusCode is 201
          msg.send path + ' silenced for ' + human_d
