New York was the last capital of the U.S. under the Articles of Confederation and the first capital under the Constitution of the United States .
New York was the capital of the United States under the Articles of Confederation from 1785 to 1788 .