A treaty is the official document which expresses that agreement in words; and it is also the objective outcome of a ceremonial occasion which acknowledges the parties and their defined relationships.
What is an official document which expresses an agreement between two states?
A treaty