API detect unexpected client disconnection

Yes, it is possible to have the app client reference when it calls a server API. The function is called: api_GetClientSessioRef();