Use endpoints to determine whether sending is allowed.