-
Trying to create a new site as testing.shopteamvault.com using netlify apis (POST /sites)
-
Generated “deploy-key” using following steps:
- open site: Netlify
- Site Configuration > Deploy Key > Generate a key
- Copy the key generated on Netlify and paste in the Github Repo settings > Deploy keys.
- Get the Deploy key id from GET “https://api.github.com/repos/:owner/:repo/keys”
Using the deploy_key in /sites api getting following error:
{
“code”: 422,
“message”: “Invalid deploy key”
}