Former National Security Agency (NSA) systems analyst-turned-whistleblower Edward Snowden has said the US agency is collecting mass surveillance data on New Zealanders through its XKeyscore system.
Speaking via video link from Russia to hundreds of people at Auckland's Town Hall, Snowden also claimed the NSA has set up a facility in the South Pacific nation's largest city to tap into vast amounts of data.
Shortly before Mr Snowden spoke, New Zealand's prime minister John Key issued a statement saying the country's spy agency, the Government Communications Security Bureau (GCSB), has never undertaken mass surveillance of its own people.
Mr Key said he had declassified previously secret documents that proved his point.
"Regarding XKeyscore, we don't discuss the specific programs the GCSB may or may not use," Mr Key said.
"But the GCSB does not collect mass metadata on New Zealanders, therefore it is clearly not contributing such data to anything or anyone."
Mr Snowden, however, said Mr Key was carefully parsing his words, and that New Zealand agencies do collect information for the NSA and then get access to it.
He said: "There are actually NSA facilities in New Zealand that the GCSB is aware of and that means the prime minister is aware of. And one of them is in Auckland."
He said Mr Key was avoiding the main issue by not talking about XKeyscore.
"To this day, he's said 'I won't talk about this. I won't talk about this because it's related to foreign intelligence'," Mr Snowden said.
"But is it related to foreign intelligence if it's collecting the communications of every man, woman and child in the country of New Zealand?"
The event in Auckland was organised by indicted internet entrepreneur Kim Dotcom.
It also featured American journalist Glenn Greenwald and WikiLeaks founder Julian Assange, who spoke via video link from London.
Mr Greenwald produced NSA slides that he said showed the GCSB had taken steps to engage in mass surveillance through a program called Project Speargun.
But Mr Key said that program had been rejected, and instead an alternative program that organisations needed to opt into was adopted.
"Put simply, it never happened," Mr Key said.
The Town Hall event came five days before New Zealand's general election.
Mr Dotcom, who is fighting US attempts to extradite him on racketeering charges over his file-sharing site Megaupload, has been campaigning in the election for a political party he is funding and has said he hopes to oust Mr Key.