API validations