See this documentation page: https://world.mendix.com/display/apidocs/Deploy+API#DeployAPI-Retrieveapps The call:
HTTP Method: GET
URL: https://deploy.mendix.com/api/1/apps/
Will return the names and appid's for the apps the user performing the get call has access to.