Calling the unsafelocation rest api. right now we verified that the rest api is called right