add app id to app API
Merge pull request #3816 from dimagi/app-id-api

add app id to app API