The Second Continental Congress produced The Articles of Confederation on November 15, 1777
This is the first Confederation which used the name "The United States of America".
The Articles of Confederation - March 1, 1781.html
This is from after the intended revision of the Articles of Confederation.
The Constitution of the United States of America was technically written illegally.
Nevertheless, it was ratified by the number of States required.
Constitution of the United States of America
It was adopted on March 11, 1861 to form the Confederate States of America.
It was in effect from February 22, 1862 to the conclusion of the American Civil War.
Constitution of the Confederate States of America