Legato whith api

Hello
I want to pass the termination data through API calls.
and i have tow question.

  1. an example of using this syntax?
    https://docs.legato.io/latest/apiFilesSyntax.html
  2. posible application typedef?

probably you can refer to modemdemo sample application GoOffline() function.