Find out what NHS Digital is doing to support the response on our Coronavirus update page.
If you are a patient needing advice visit the coronavirus page on NHS.UK
Many of our APIs give access to sensitive or personal data. This page explains the various techniques or 'patterns' we use to keep them secure.
We use three types of security pattern in the APIs we produce and manage.
- open-access
- application-restricted
- user-restricted
You can find our which security pattern applies to a particular API in the API catalogue.
Open-access APIs
Some of our APIs are open-access, which means:
- the calling application is not authenticated - we don't care who it is
- the end user is not authenticated - we don't care who it is - or even whether they are present
Here's an illustration:

Open-access APIs generally give access to public data.
All our open-access APIs are RESTful APIs. For more details on how to access them, see our open-access REST API tutorial.
Application-restricted APIs
Some of our APIs are application-restricted, which means:
- the calling application is authenticated - we do care who it is
- the end user is not authenticated - we don't care who it is - or even whether they are present
- API calls are generally encrypted to keep data secure in transit
Here's an illustration:

Details of application-restricted API security patterns are coming soon.
User-restricted APIs
Some of our APIs are user-restricted, which means:
- the calling application is authenticated - we do care who it is
- the end user is authenticated - we do care who it is - and that they are present
- API calls are generally encrypted to keep data secure in transit.
Here's an illustration:

Currently we only support authentication of healthcare professionals.
In the future we plan to support authentication of citizens using NHS Login.
We support the following security patterns for user-restricted APIs:



