A whistleblower from AT&T more or less revealed the details on that. The NSA‘s ability to collect all this data is well documented, and people are just now coming to terms with the legal loopholes used to justify this mass sweeping up of communications.