National Imaging Registry API
The National Imaging Registry (NIR) API allows authorised systems to view a patient’s imaging history, including examinations, diagnostic reports, and imaging studies.
Overview
Use this API to access patient imaging records across NHS and private healthcare networks. The National Imaging Registry (NIR) API allows authorised systems to view a patient’s imaging history, including examinations, diagnostic reports, and imaging studies.
The NIR helps clinicians deliver faster, safer care by reducing unnecessary repeat imaging, improving decision-making, and supporting continuity of care when patients move between providers.
Key features include:
-
access to a patient’s imaging history across NHS and private healthcare networks
-
linked diagnostic reports with imaging studies
-
retrieval of imaging studies for authorised use in direct care
-
secure access with full governance in line with NHS data protection requirements
For more information about the service, including why the NIR has been developed and the wider vision, visit the National Imaging Registry service page.
How NIR works across regional imaging networks

High-level federated discovery and retrieval: a consumer queries NIR once, NIR queries multiple regional networks, and the selected document is retrieved from the source network and returned to the consumer
Who can use this API
This API is available for integration by imaging system suppliers. Suppliers may only connect to the NIR once they have:
-
confirmed authorisation from their NHS or private healthcare customer organisation
-
completed the required NHS assurance, security, and data governance checks
-
implemented appropriate access controls in line with NHS data protection requirements
Healthcare organisations (NHS and private) are the end users of the service, but integration with the API can only be performed by their imaging system suppliers on their behalf.
Access modes
The NIR API operates under a federated trust and governance model, as follows:
-
access is only available to imaging system suppliers who have been authorised by their customer organisations and approved through NHS England’s Digital onboarding service
-
participating organisations must accept and comply with the National Imaging Registry terms and conditions, which set out responsibilities for data protection, confidentiality, and appropriate use of shared imaging data
-
oversight during the private beta phase is provided by the Diagnostics Digital Capabilities (DDC) programme, which confirms organisational readiness and manages onboarding
-
all activity is subject to NHS England assurance, security, and compliance frameworks
This governance model ensures that imaging data is only accessed and shared for direct care purposes, under clear legal and operational controls.
API status
This API is in beta.
If you have any other queries, contact us.
Service level
This API is a bronze service, meaning it is operational and supported only during business hours (8am to 6pm), Monday to Friday excluding bank holidays.
For more details, see service levels.
Technology
This API is built on internationally recognised interoperability standards to enable the secure exchange of imaging records across NHS and private healthcare networks. It uses IHE profiles such as Cross-Community Access (XCA) and relies on established messaging frameworks (SOAP web services) to ensure consistent and reliable communication between systems.
Cross-Community Access (XCA)
The IHE Cross-Community Access (XCA) profile provides a standardised way for health IT systems to query and retrieve clinical documents, including imaging studies and reports, across organisational and network boundaries.
This supports the API in:
-
providing a federated query model for discovering imaging records across multiple networks
-
using SOAP-based messaging to ensure structured, reliable, and secure request/response interactions
-
building on existing document sharing principles (via XDS) but extends them across community boundaries
-
enabling NHS and private healthcare providers on this technology to access patient imaging data without bespoke point-to-point connections
XCA supports the NIR’s ability to act as a national broker of imaging records, supporting both discovery and retrieval functions.
IHE profiles (XCA endpoint)
The NIR API XCA endpoint makes use of the following IHE transactions:
-
ITI-38 Cross Gateway Query – enables an imaging system supplier to issue a query across community boundaries to discover documents (for example, imaging study metadata and diagnostic reports) for a given patient
-
ITI-39 Cross Gateway Retrieve – enables the requesting system to retrieve selected documents (for example, imaging studies and reports) from a remote community once they have been located
These transactions form the backbone of the NIR’s interoperability model, allowing imaging system suppliers to query and retrieve a patient’s imaging records across different NHS and private healthcare networks through a standardised, SOAP-based interface.
Network access
The NIR API can be accessed either:
-
directly over the public internet using secure and authenticated connections, or
-
indirectly via the Health and Social Care Network (HSCN), where connectivity is provided through participating local imaging networks
Key points:
-
imaging system suppliers must onboard through their customer organisation’s approved access route (internet or HSCN via local network)
-
direct HSCN connectivity is not currently supported; access through HSCN is only available indirectly via connected local networks
-
all traffic must use secure, encrypted connections with approved certificates and endpoint protection
-
the same access model applies for both test and live environments
Internet access is recommended for suppliers, while HSCN access is available indirectly for organisations connecting via their local networks.
Errors
NIR Error Handling is a technical guide to how error codes, error severities and HTTP statuses are determined and returned to the client.
The primary purpose of this document is to provide a technical reference for teams that are either developing or supporting NIR. However, it may also be used to inform content that will eventually be uploaded to the NIR API website.
Note: This is a living document and may be updated as new functionality and features are added to NIR - check with a member of the NIR delivery squad for the most up to date information.
In scope
- How IHE error codes are consolidated and reported to the client from NIR.
- How ResponseStatusType is determined.
- How HTTP status codes are determined.
- How error severity is determined.
- Sample error messages.
Out of scope
- Specific instructions for how the requesting systems display or handle these errors.
- Guidance on what to do in the event of an incident.
Environments and testing
| Environment | Base URL |
| Sandbox | https://sandbox.nir.national.nhs.uk |
| Production | https://nir.national.nhs.uk |
| Integration test | https://int.nir.national.nhs.uk |
Sandbox testing
Our sandbox environment:
- is for early developer testing
- only covers a limited set of scenarios
- is stateless, so does not actually persist any updates
- is open access, so does not allow you to test authorisation
You can try out the sandbox using our Postman Collection.
Right click the link above and save link as... to save the Postman Collection to your device.
Integration testing
Our integration test environment:
- is for formal integration testing
- is stateful, so persists updates
- includes authorisation
For testing, you can use our test data packs.
For testing you may need to load the data in our test packs (for example, patient details) into your local system.
You will need to test using your own synthetic diagnostic reports and images.
Production smoke testing
You must not use real patient data for smoke testing in the production environment. You must use 9 series NHS numbers created by [email protected].
Onboarding
Onboarding to the NIR API is managed through the developer and integration hub. This service ensures that all suppliers and organisations meet the required assurance, security, and governance standards before being granted access.
While the NIR is in private beta, organisations must first engage with the Diagnostics Digital Capabilities (DDC) programme before beginning the onboarding process. For further details, email England diagnostics and add "National Imaging Registry" in the subject line.
Once approved, suppliers can proceed with the Digital Onboarding Service to complete the necessary checks and gain access to the NIR API in the test and live environments.
Further information
The National Imaging Registry (NIR) allows for the sharing of imaging data across clinical organisations.
Last edited: 13 March 2026 11:46 am