Calling API based on the returned response - Theo's Typesafe Cult