WASHINGTON — The political action committee founded by John R. Bolton, President Trump’s incoming national security adviser, was one of the earliest customers of Cambridge Analytica, which it hired specifically to develop psychological profiles of voters with data harvested from tens of millions of Facebook profiles, according to former Cambridge employees and company documents.

Mr. Bolton’s political committee, known as The John Bolton Super PAC, first hired Cambridge in August 2014, months after the political data firm was founded and while it was still harvesting the Facebook data.

In the two years that followed, Mr. Bolton’s super PAC spent nearly $1.2 million primarily for “survey research,” which is a term that campaigns use for polling, according to campaign finance records.

But the contract between the political action committee and Cambridge, a copy of which was obtained by The New York Times, offers more detail on just what Mr. Bolton was buying. The contract broadly describes the services to be delivered by Cambridge as “behavioral microtargeting with psychographic messaging.”