Skip to main content
POST
/
medical
/
v1
/
message
/
destinations
Search Destinations
curl --request POST \
  --url https://api.sandbox.metriport.com/medical/v1/message/destinations \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "npi": "<string>",
  "destination": "<string>",
  "organizationName": "<string>",
  "firstName": "<string>",
  "lastName": "<string>",
  "address": {
    "addressLine1": "<string>",
    "addressLine2": "<string>",
    "city": "<string>",
    "state": "<string>",
    "zip": "<string>"
  }
}
'
import {
  MetriportMedicalApi,
  USState,
} from "@metriport/api-sdk";

const metriport = new MetriportMedicalApi("YOUR_API_KEY");

const { destinations } = await metriport.searchDestinations(
  {
    firstName: "Jack",
    lastName: "Smith",
    address: {
      city: "Los Angeles",
      state: "CA",
      zip: "90095",
    },
  }
);
This endpoint is currently under construction. Please reach out to support if you'd like to use it.
Returns a list of destinations you can pass to Send Message when addressing a message to another practitioner. Metriport searches across available recipient data sources and returns only destinations your account can use. Results are ordered by Metriport’s recommended preference for your organization.
This is the recommended endpoint for building the message body for Message Delivery. See the Message Delivery guide for the full send flow.

Body

Search by NPI

npi
string
A 10-digit National Provider Identifier.

Search by destination

destination
string
Organization OID or Direct address.

Search by organization details or provider demographics

When searching by organization details or provider demographics, at least lastName and address.state or organizationName are required
organizationName
string
The name of the organization or medical facility.
firstName
string
The provider’s first name.
lastName
string
The provider’s last name.
address
Address
An Address object, representing the practitioner’s current and/or previous addresses.

Response

destinations
Destination[]
required
Results for the potentially matching recipients, ordered by Metriport’s recommended preference for your account.
{
  "destinations": [
    {
      "organizationName": "UCLA Cardiology",
      "address": {
        "addressLine1": "100 Medical Plaza",
        "addressLine2": "Suite 630",
        "city": "Los Angeles",
        "state": "CA",
        "zip": "90095",
        "country": "USA"
      },
      "destination": "1.2.840.114350.1.13.300.3.7.3.688884.100.1",
      "npi": "1234567890"
    },
    {
      "organizationName": "UCLA Cardiology",
      "address": {
        "addressLine1": "100 Medical Plaza",
        "addressLine2": "Suite 630",
        "city": "Los Angeles",
        "state": "CA",
        "zip": "90095",
        "country": "USA"
      },
      "destination": "intake@cardio.direct.partner.com",
      "npi": "1234567890"
    }
  ]
}
import {
  MetriportMedicalApi,
  USState,
} from "@metriport/api-sdk";

const metriport = new MetriportMedicalApi("YOUR_API_KEY");

const { destinations } = await metriport.searchDestinations(
  {
    firstName: "Jack",
    lastName: "Smith",
    address: {
      city: "Los Angeles",
      state: "CA",
      zip: "90095",
    },
  }
);

Rate Limits

See limits and throttling