# User authentication for API calls

**URL:** <https://developer.sailpoint.com/discuss/t/user-authentication-for-api-calls/77040>\
**Category:** SHF Discussion and Questions\
**Tags:** apis, sailpoint-identity-security\
**Created:** [August 16, 2024, 11:01pm UTC](https://developer.sailpoint.com/discuss/t/user-authentication-for-api-calls/77040 "2024-08-16T23:01:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![BCyr](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/bcyr/32/2787_2.png) [@BCyr](https://developer.sailpoint.com/discuss/u/BCyr)\
**Post date:** [August 16, 2024, 11:01pm UTC](https://developer.sailpoint.com/discuss/t/user-authentication-for-api-calls/77040/1 "2024-08-16T23:01:46Z")

</div>

I am looking to create an application that will need to make API calls and I wanted to make it so that the user does not need to create and store a PAT and enter it into the application. What I want to do is to present the user with a login to ISC, capture their token, and use that to make subsequent API calls as that user. When we were first implementing ISC, the consultant we were using showed me a URL that I could use that would expose the current token, but I cannot remember how we did it.  
Is this possible?

---

<div class="post-metadata">

**Author:** ![patrickboston](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/patrickboston/32/5876_2.png) [@patrickboston](https://developer.sailpoint.com/discuss/u/patrickboston)\
**Post date:** [August 17, 2024, 12:16am UTC](https://developer.sailpoint.com/discuss/t/user-authentication-for-api-calls/77040/2 "2024-08-17T00:16:38Z")

</div>

It is possible using OAuth2 Authorization Code grant flow. The doc below should hopefully be what you need.

> **[Authentication | SailPoint Developer Community](https://developer.sailpoint.com/docs/api/authentication#request-access-token-with-authorization-code-grant-flow)**
>
> Authenticate to the ISC APIs.

If you are logged into ISC and want to expose the current access token in the session, go to: `https://[tenant].identitynow.com/ui/session`

---

<div class="post-metadata">

**Author:** ![colin\_mckibben](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/colin_mckibben/32/37182_2.png) [@colin\_mckibben](https://developer.sailpoint.com/discuss/u/colin_mckibben)\
**Post date:** [August 17, 2024, 1:35am UTC](https://developer.sailpoint.com/discuss/t/user-authentication-for-api-calls/77040/3 "2024-08-17T01:35:14Z")

</div>

The authorization code grant type is what you want to use. I would not recommend using the UI session token as it is not meant for this purpose.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/sailpoint/original/2X/f/f2136700ed5e3703e0b85e02f6be799dacca7735.png) [@system](https://developer.sailpoint.com/discuss/u/system)\
**Post date:** [October 16, 2024, 1:35am UTC](https://developer.sailpoint.com/discuss/t/user-authentication-for-api-calls/77040/4 "2024-10-16T01:35:37Z")

</div>

Closed on October 16, 2024, 1:35am UTC

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
