Login to your OneSignal account, here: https://dashboard.onesignal.com/login
Select your app and go to "Settings > Keys & IDs" on your sidebar:
On this page you will be able to find and copy your App ID and Rest API Key: