Enable Identity via Netlify API

It would be nice to be able to deploy sites, and enable Identity without having to go to the UI of a deployed site and enable Identity. Whether this is some API endpoint or a netlify configuration option. Currently I have many clients and I can automate the build, deployment, but still have to go into the deployed site and enable identity by clicking a button.

@David_Davis, the Netlify web UI is using the same API. One of the best ways to find out how to make the API call in your code, is to view the network tab and examine the API call in the browser developer tools.

The “Copy as CURL” and “Copy all as CURL” options in Chrome can be incredibly helpful to see exactly how the UI is making these API calls. Using this, it should be possible to generalize the API call so you can programmatically make the same API calls using your own code.

If there are other questions about this, please let us know.