Using POST /sites endpoint to create new site but getting error

  • Trying to create a new site as testing.shopteamvault.com using netlify apis (POST /sites)

  • Generated “deploy-key” using following steps:

Using the deploy_key in /sites api getting following error:
{
“code”: 422,
“message”: “Invalid deploy key”
}

Issue has been resolved.
But in request body we are sending:
“build_settings”: {
“cmd”: “CI= npm run build”,
“dir”: “build”
},

but its not getting set

Issue is resolved, please close the ticket.

thanks for writing back in and letting us know your issue was resolved.