Api validation