The first special agents in the United States were appointed in 1791 when the Secretary of the Treasury was authorized to employ "special agents" for the purpose of examining the accounts and books of the Collectors of Customs.