# Error with CIS2 authentication

**URL:** <https://developer.community.nhs.uk/t/error-with-cis2-authentication/2676>\
**Category:** e-Referral Service (e-RS)\
**Created:** [14 October 2024 14:26 UTC](https://developer.community.nhs.uk/t/error-with-cis2-authentication/2676 "2024-10-14T14:26:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![devendra.soni](https://avatars.discourse-cdn.com/v4/letter/d/f1d935/32.png) [@devendra.soni](https://developer.community.nhs.uk/u/devendra.soni)\
**Post date:** [14 October 2024 14:26 UTC](https://developer.community.nhs.uk/t/error-with-cis2-authentication/2676/1 "2024-10-14T14:26:06Z")

</div>

Hi, We are getting below error when trying to access token to call ERS APIs

{  
“error”: “access\_denied”,  
“error\_description”: “API Key supplied does not have access to this resource. Please check the API Key you are using belongs to an app which has sufficient access to access this resource.”,  
“message\_id”: “rrt-5336044281921236021-b-geu2-1158523-523942-1”  
}

Any suggestions please.

---

<div class="post-metadata">

**Author:** ![adam.oldfield](https://dub1.discourse-cdn.com/nhsdigitaldeveloper/user_avatar/developer.community.nhs.uk/adam.oldfield/32/327_2.png) [@adam.oldfield](https://developer.community.nhs.uk/u/adam.oldfield)\
**Post date:** [15 October 2024 07:11 UTC](https://developer.community.nhs.uk/t/error-with-cis2-authentication/2676/2 "2024-10-15T07:11:54Z")

</div>

Hi @devendra.soni,

As suggested by the error please check that the Application you are using has access to the API that you are trying to call.

Please see [2.2 Create and register your application](https://digital.nhs.uk/services/e-referral-service/api/integration-process/build#2-2-create-and-register-your-application) Section 5 for more details.

You may want to move this topic into the Care Identity Service 2 category if this is more related to CIS2 than it is the e-RS.

Regards,

Adam.
