getAgency method api