# Enable Identity via Netlify API

**URL:** <https://answers.netlify.com/t/enable-identity-via-netlify-api/5456>\
**Category:** Features\
**Created:** [November 23, 2019, 8:44pm UTC](https://answers.netlify.com/t/enable-identity-via-netlify-api/5456 "2019-11-23T20:44:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![David\_Davis](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/david_davis/32/3239_2.png) [@David\_Davis](https://answers.netlify.com/u/David_Davis)\
**Post date:** [November 23, 2019, 8:44pm UTC](https://answers.netlify.com/t/enable-identity-via-netlify-api/5456/1 "2019-11-23T20:44:55Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![luke](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/luke/32/39_2.png) [@luke](https://answers.netlify.com/u/luke)\
**Post date:** [November 25, 2019, 10:47am UTC](https://answers.netlify.com/t/enable-identity-via-netlify-api/5456/2 "2019-11-25T10:47:10Z")

</div>

@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.

---

<div class="post-metadata">

**Author:** ![David\_Davis](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/david_davis/32/3239_2.png) [@David\_Davis](https://answers.netlify.com/u/David_Davis)\
**Post date:** [December 24, 2019, 1:49pm UTC](https://answers.netlify.com/t/enable-identity-via-netlify-api/5456/3 "2019-12-24T13:49:20Z")

</div>

Hi @luke, if I’m using netlify-cli, I’d like to authenticate a user to my site without enabling Itentity through the UI which I previously stated. You mentioned being able to do this through the API. I run `netlify api --list` and I don’t see an api method that would allow me to add user to Identity. Does this mean I can’t use the cli to accomplish this or correct me if I’m wrong. Thanks Luke.

---

<div class="post-metadata">

**Author:** ![fool](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/fool/32/37_2.png) [@fool](https://answers.netlify.com/u/fool)\
**Post date:** [December 25, 2019, 6:21pm UTC](https://answers.netlify.com/t/enable-identity-via-netlify-api/5456/4 "2019-12-25T18:21:15Z")

</div>

Indeed, our api definition that you can find that way or at [https://open-api.netlify.com](https://open-api.netlify.com) does not include all possible and existing calls, including that one.

What Luke was trying to describe is that you would use the UI to do the operation one time, and watch in the browser dev tools, and take the call we made and you can reproduce it on other sites to programatically enable.

This article has a more thorough description of how to do this: [[Support Guide] Understanding and using Netlify's API](https://answers.netlify.com/t/common-issue-understanding-and-using-netlifys-api/160)
