The Secretary to the President (sometimes dubbed the president's Private Secretary or Personal Secretary) was a former 19th and early 20th century White House position that carried out all the tasks now spread throughout the modern White House Office. The Secretary would act as a buffer between the President and the public, keeping the President's schedules and appointments, managing his correspondence, managing the staff, communicating to the press as well as being a close aide and advisor to the President in a manner that often required great skill and discretion. In terms of rank it is a precursor to the modern White House Chief of Staff.
Every American President had a private secretary, but the position was not an official one until the McKinley administration. At the time of its peak the Secretary to the President was a much admired government office held by men of high ability and considered as worthy as a cabinet rank, it even merited an oath of office. Three private secretaries were later appointed to the Cabinet, these men being George B. Cortelyou, John Hay and Daniel S. Lamont.
During the nineteenth century, Presidents had few staff resources. Thomas Jefferson had one messenger and one secretary (referred to as an amanuensis in the common parlance of the time) at his disposal, both of whose salaries were paid by the President personally. In fact, all Presidents up to James Buchanan paid the salaries of their private secretaries out of their own pockets; these roles were usually fulfilled by their relatives, most often their sons or nephews. James K. Polk notably had his wife take the role.
It was during Buchanan's term at the White House in 1857 that the United States Congress created a definite office named the "Private Secretary at the White House" and appropriated for its incumbent a salary of $2,500. The first man to hold such office officially and to be paid by the Government instead of by the President, was Buchanan's nephew J. B. Henry. By Ulysses S. Grant's presidency, the White House staff had grown to three.