How do I use the Vercel API to deploy private GitHub Repository?

Ahhhhhhhhhh. So there is currently no way for someone who’s never used vercel to deploy a private repo? For example you login to an app, select a private repo, and then try to push it to vercel to get a deploy URL. I would need to programatically set up a project/team and whatnot, and then do a deploy?

Should my app prompt the user to signup to vercel and follow some series of steps then return to my app before they can do a deploy from my app?

Only reason I’m using vercel is because I can push a repository and it will auto detect the build and return a preview URL. I’m building an app that relies on deploying to vercel to generate a preview and getting a URL back.