# Message: 401 : Unauthorized, HTTP Error Code: 401

**URL:** <https://developer.sailpoint.com/discuss/t/message-401-unauthorized-http-error-code-401/78560>\
**Category:** SHF Discussion and Questions\
**Tags:** webservice-connector, apis, identity-security-cloud\
**Created:** [August 27, 2024, 7:47pm UTC](https://developer.sailpoint.com/discuss/t/message-401-unauthorized-http-error-code-401/78560 "2024-08-27T19:47:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jasmedina](https://avatars.discourse-cdn.com/v4/letter/j/9de0a6/32.png) [@jasmedina](https://developer.sailpoint.com/discuss/u/jasmedina)\
**Post date:** [August 27, 2024, 7:47pm UTC](https://developer.sailpoint.com/discuss/t/message-401-unauthorized-http-error-code-401/78560/1 "2024-08-27T19:47:14Z")

</div>

Hi All,

We are onboarding an application using a webservice connector. It uses an API token and custom authentication. In the custom authentication http operation, it has a response mapping of api-key which I then use in the header of the Test Connection http operation.

It was working previously when I perform the Test Connection, however, when the API token expired and I have to generate a new token, I keep on getting the 401 Unauthorized error when doing the test connection. It is also working in Postman using the new API token. I don’t know what I seem to be missing in the configuration. If anyone has faced similar issue, please let me know how were you able to resolve it.

Thank you!

---

<div class="post-metadata">

**Author:** ![shaileeM](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/shaileem/32/15314_2.png) [@shaileeM](https://developer.sailpoint.com/discuss/u/shaileeM)\
**Post date:** [August 28, 2024, 1:57am UTC](https://developer.sailpoint.com/discuss/t/message-401-unauthorized-http-error-code-401/78560/2 "2024-08-28T01:57:25Z")

</div>

Hi @jasmedina ,

You can check if there are any typo’s while copying the new token value in the connector. Another thing is after you update the source on the ISC/IDN UI, you can query the source from postman using API - [get-source | SailPoint Developer Community](https://developer.sailpoint.com/docs/api/v3/get-source/) to confirm the update is done successfully.

Thanks,  
Shailee

---

<div class="post-metadata">

**Author:** ![hreimert](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/hreimert/32/2792_2.png) [@hreimert](https://developer.sailpoint.com/discuss/u/hreimert)\
**Post date:** [August 28, 2024, 3:47am UTC](https://developer.sailpoint.com/discuss/t/message-401-unauthorized-http-error-code-401/78560/3 "2024-08-28T03:47:08Z")

</div>

Similar to what @shaileeM said you could also create a new test source with the new token details and compare them both for differences to see what is missing.

---

<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 27, 2024, 3:47am UTC](https://developer.sailpoint.com/discuss/t/message-401-unauthorized-http-error-code-401/78560/4 "2024-10-27T03:47:35Z")

</div>

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