The Vienna Convention on the Law of Treaties is commonly referred to as the VCLT, and is an international treaty that agrees upon the legal basis of agreements made between members of signatory countries.
The VCLT is subscribed to by almost every country in the world, and includes treaties made between states. In essence, it allows for a legal boundary for treaties between countries and clarifies the terms that countries can be legally obliged to one another for.