This answer states that I can get the installation ID through a webhook. I can’t seem to be able to find the documentation for such webhook that returns the installation ID. Could someone point me towards the right documentation for this?
You can see a list of webhook events and their payloads at https://developer.github.com/v3/activity/events/types/
They payloads include a
"installation" key which in turn has an
"id" key, this is your installation id