API respects validation rules