implemented agency get API