GitHub & site integration using API

Hello @chjit, welcome to the Community!

I think you’ll need to do that in a separate API call. You could take a look at how our UI does it. For more information on doing so, please read the following post: [Support Guide] Understanding and using Netlify's API