Exposing api with timeout