sample api