The Obama administration is to propose a law banning the systematic collection of Americans’ phone records by the National Security Agency.

The legislation would prevent the spy agency from bulk-harvesting calling records from phone companies. Instead, companies would keep the data and the NSA would have to request it using a new kind of court order, according to The New York Times.

Re/code Newsletters

Re/code Daily Top stories of the day. Re/code Event Updates Our signature events sell out quickly. Be amongst the first to know. Re/code Product Updates Special series, exclusive interviews and new features.