v1

latestOpenAPI 3.0.02026-07-144080.8 KB
communication

Get details of NHS App users

Overview

Use this endpoint to get details of patients registered with the NHS App for a given GP surgery, and an indication of whether they have enabled push notifications on one or more devices. The response will only include patients who have had their identity verified to 'high' (P9) level.

Client applications must only invoke this endpoint as agreed with the NHS App team, typically to retrieve details of patients at GP practices where their service is available.

This information can be used by client applications to determine whether it is appropriate to attempt to use the NHS App API to send in-app messages and push notifications to patients, or if alternative communication channels should be used instead.

The information provided by this endpoint is generated by a daily batch process. Client applications should cache and refresh local copies of this data accordingly.

Pagination

To avoid returning excessively large response bodies, the results may be split across multiple pages. On retrieving the response for the first page of results, the Link header should be inspected to determine whether any additional pages of results exist. If so, these can be retrieved by making additional request(s) with the optional page parameter specified.

In order to test the pagination feature in the development and integration environments, use the ODS code T00001 to return a report with multiple pages.

get/communication/report/patients

Query parameters

ods-organisation-codestring required

The Organisation Data Service (ODS) code of the GP practice for which to retrieve a list of NHS App users. Not case sensitive.

pageinteger

The ordinal number of the page of results to be retrieved. If omitted, the first page of results will be returned. Use the Link header in the response to determine whether any further pages of results exist.

Response

Information successfully returned.

nhsNumberstring ^\d{10}$

The patient's NHS number.

notificationsEnabledboolean

Indicates whether the patient has enabled native Android or Apple push notifications on at least one device.

Example response

[
  {
    "nhsNumber": "9903002157",
    "notificationsEnabled": true
  }
]