How to use API and operate it with toolbox items - MPGH