Adding app permissions key
Adding idle API to app