Unable to connect Hello World

Hi,

I am trying to use basic Hello World project, provided by NHS Digital on github (see link below), but getting 401 (Unauthorised) response.

https://github.com/NHSDigital/hello-world-auth-examples/tree/main/application-restricted-api-key-tutorials/csharp

I have created a sandbox application using my developer account, and have enabled Hello World APIs, see screenshot below.

I have tried the code provided in git hub, and used the postman but receving same 401 error, please see both screenshots below. I have checked multiple times and API Key is correct for the sandbox environment. Can someone please provide any insight why I am getting this error and how to fix it?

Thanks

This issue has been fixed.

I was using Application Id as clientId/apikey. I should have been using Api Key.

2 Likes

that trips up many, would be great if the UI was changed accordingly

2 Likes