what word at the beginning of the declaration shows that all 13 states agreed
The word is “We.”
At the beginning of the Declaration of Independence, the phrase “We, therefore, the Representatives of the united States of America…” uses “We” to show that all 13 states, through their representatives, agreed together on the Declaration.