added api key, but still send message method not working correctly