In the early ninth century, Emperor Saga newly created the Kurododokoro (Board of Archivists) (also known as Kurodo no to (Head Chamberlain)) in 810 which was responsible for handling classified documents as a secretary of the Emperor.
9世紀前期には、嵯峨天皇が天皇の秘書官として機密文書を取り扱う蔵人所（蔵人頭）が810年に新設された。