A treaty is an agreement under international law entered into by actors in international law, namely sovereign states and international organizations.
Who are the actors in international law?
sovereign states and international organizations