The complete integrability of the Kadomtsev-Petviashivili I equation as a system of Hamiltonian type has been shown. Canonical variables are introduced in terms of the scattering data. The trace identities for the integrals of motion and the set of Manakov's constraints are presented.