The Logan Act is a United States federal law that criminalizes the negotiation of a dispute between the United States and a foreign government by an unauthorized American citizen. From Wikipedia
Conflicting reports emerge over Musk’s involvement in a complex prisoner exchange between Italy and Iran.