The American Airlines Boeing 787 was flying from New York to India's capital, New Delhi, when the threat was made.