General order 11
From FEInfobase
Starfleet officers with the rank of Captain or higher are granted full authority to negotiate conditions of agreement and/or treaties with legal representatives of non-Federation planets. In such circumstances, the acting officer carries de facto powers of a Federation Special Ambassador. Any and all agreements arranged in this manner are subject to approval by the Chief of Starfleet Operations and the Secretary of Starfleet.