Indirect Hamiltonian Identification through a small gateway