# Error while accessing REST API from Postman

**URL:** <https://community.open-emr.org/t/error-while-accessing-rest-api-from-postman/24285>\
**Category:** Support\
**Created:** [January 15, 2025, 12:12pm UTC](https://community.open-emr.org/t/error-while-accessing-rest-api-from-postman/24285 "2025-01-15T12:12:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![vkoppuravuri](https://community.open-emr.org/letter_avatar_proxy/v4/letter/v/e480ec/32.png) [@vkoppuravuri](https://community.open-emr.org/u/vkoppuravuri)\
**Post date:** [January 15, 2025, 12:12pm UTC](https://community.open-emr.org/t/error-while-accessing-rest-api-from-postman/24285/1 "2025-01-15T12:12:31Z")

</div>

**Situation**  
I am new to OpenEMR and working on integrating it with Mirth Connect. Before proceeding, I wanted to test the REST API using OpenEMR’s demo site. I have registered a client app and obtained the client ID and secret. While I can successfully authorize the FHIR APIs in Swagger, I encounter a `401 Unauthorized` error when trying to access the Standard APIs. What might I be missing?

**OpenEMR Version**  
I’m using OpenEMR version **7.0.2 (3)**

**Browser** :  
I’m using: Chrome

**Operating System**  
I’m using: [https://demo.openemr.io/openemr](https://demo.openemr.io/openemr)

**Search**  
Did you search the forum for similar questions? Yes but lo luck

**Logs**  
Did you check the logs? Not Available  
Was there anything pertinent in them?  
Please paste them here (surround with three backticks (```) for readability.  
You can also turn on User Debugging under Administration-\>Globals-\>Logging User Debugging Options=\>All

---

<div class="post-metadata">

**Author:** ![growlingflea](https://community.open-emr.org/user_avatar/community.open-emr.org/growlingflea/32/15498_2.png) [@growlingflea](https://community.open-emr.org/u/growlingflea)\
**Post date:** [January 16, 2025, 6:17am UTC](https://community.open-emr.org/t/error-while-accessing-rest-api-from-postman/24285/2 "2025-01-16T06:17:39Z")

</div>

Make sure you have the proper scope.

---

<div class="post-metadata">

**Author:** ![adunsulag](https://community.open-emr.org/user_avatar/community.open-emr.org/adunsulag/32/12606_2.png) [@adunsulag](https://community.open-emr.org/u/adunsulag)\
**Post date:** [January 16, 2025, 12:07pm UTC](https://community.open-emr.org/t/error-while-accessing-rest-api-from-postman/24285/3 "2025-01-16T12:07:23Z")

</div>

@vkoppuravuri if you used the GUI to register your client instead of the command line, the GUI only selects the FHIR api scopes. We’ve got an issue to extend the GUI (Smart App Registration page) to add in the standard scopes. You’ll have to use the oauth2 oidc registration endpoint to register standard scopes.

---

<div class="post-metadata">

**Author:** ![vkoppuravuri](https://community.open-emr.org/letter_avatar_proxy/v4/letter/v/e480ec/32.png) [@vkoppuravuri](https://community.open-emr.org/u/vkoppuravuri)\
**Post date:** [January 16, 2025, 2:33pm UTC](https://community.open-emr.org/t/error-while-accessing-rest-api-from-postman/24285/4 "2025-01-16T14:33:08Z")

</div>

Thanks @adunsulag.  
Registering App with end point is considering standard API scopes too and it’s working now.
