Start Network Query
Network
Start Network Query
Triggers a network query for the specified patient across all available health data networks.
POST
Start Network Query
This endpoint triggers a network query, an asynchronous query against various kinds of health data sources including HIEs, pharmacies, and laboratories. As data from each source is processed and merged into a patient’s record, also known as their ‘Consolidated Data’, we emitDocumentation Index
Fetch the complete documentation index at: https://docs.metriport.com/llms.txt
Use this file to discover all available pages before exploring further.
network-query.* webhook events.
Every time a source completes, a webhook request will be sent to your configured URL
containing a link to download the patient’s consolidated data.
Webhook message types - see the webhooks page
for more details:
network-query.hie: HIE data has been merged into the consolidated bundle;network-query.pharmacy: Pharmacy data has been merged into the consolidated bundle;network-query.lab: Laboratory data has been merged into the consolidated bundle.
purposeOfUse: "ias" when applicable.
Headers
Required when the
purposeOfUse query parameter is ias.
An active AAL2 session ID for the patient’s verified
identity. See Create AAL2
Challenge.Query Params
The ID of the Patient for which to query health data.
The purpose of the request. One of
treatment or ias.
Defaults to treatment. Use ias when the patient is
retrieving their own records through Individual Access
Services — see Individual Access
(IAS).Body
Data sources to query. At least one source must be enabled.
Legacy format: The API also accepts an array of source names (e.g.,
sources: ["hie", "pharmacy", "lab"]) for backward compatibility,
but the object format above is recommended as it supports per-source options.Required when the
purposeOfUse query parameter is ias. The verified identity returned on the
ias.identity.verified webhook.Custom metadata to include with the request. This will be returned in webhook payloads.
Response
The unique identifier for this network query request. Use
this to track the query status and correlate webhooks.
ISO 8601 timestamp of when the network query request was
initially made.
The overall status of the network query. Can be one of:
processing- at least one source is still being queriedcompleted- all sources have completed successfullypartial- some sources completed, some failedfailed- all sources failed
Array of status objects for each data source being
queried. A source type may appear multiple times if it was
retried after a failure.
Array of errors for data sources that could not be
queried. Only present when one or more sources fail to
start.

