Where a call is connected between two FreeSWITCHes can I run an api request on one FreeSWITCH instigated on the other

I have an application that will make a call between two FreeSWITCH servers - I would like to be able to trigger an api request on the destination FreeSWITCH from a command executed on the originating FreeSWITCH.

I have looked in the code and this functionality seems to be implemented using uuid_send_info with freeswitch/api-request content type. I cannot, however, seem to get this to work - should this function work?

Is there another way to achieve this?

sure it will, but it would be unsafe.

look mod_esl instead.