GET
/transactional-api/caller-id-lookupCaller ID Lookup
Looks up patients by phone number. Returns all patients whose registered phone number matches, plus patients with a carer or contact whose number matches, including a contact who is a patient matched on their own number. Each result says how it matched. Suitable for inbound call identification.
Authorization: Bearer token (JWT). See Authentication.
Request
curl -L -X GET 'https://{tenantId}.api.england.medicus.health/transactional-api/caller-id-lookup' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <token>'
Path and query parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
phoneNumber | query | string | Yes | Phone number to look up. Accepts national (e.g. 07700 900000) or international (e.g. +447700900000) format. |
Responses
200 Matching patients, sorted by family name then given name. Returns an empty array when no patients match.
[
{
"patientId": "4d59c916-9726-11ec-af3f-0a58a9feac02",
"displayName": "Frodo Baggins",
"dateOfBirth": "1971-07-09",
"nhsNumber": "9693646525",
"matches": [
{
"type": "contact-number",
"contactName": "Mr Samwise Gamgee",
"relationship": "Carer",
"contactPatientId": "7991fe3c-8c4d-11ed-9c0c-0a58a9feac02"
}
]
}
]
400 Validation error:
phoneNumber is missing.Response fields
| Field | Type | Description |
|---|---|---|
errors[].code | string | |
errors[].description | string |
{
"errors": [
{
"code": "missing-phone-number",
"description": "No phone number is specified"
}
]
}