API with input template