consolidated API validation