cURL
curl --request POST \ --url https://api.sandbox.metriport.com/medical/v1/facility \ --header 'Content-Type: application/json' \ --header 'x-api-key: <api-key>' \ --data '{ "name": "<string>", "npi": "<string>", "address": { "addressLine1": "<string>", "addressLine2": "<string>", "city": "<string>", "state": "<string>", "zip": "<string>", "country": "<string>" }, "tin": "<string>", "active": true }'
import { MetriportMedicalApi, USState } from "@metriport/api-sdk"; const metriport = new MetriportMedicalApi("YOUR_API_KEY"); const facility = await metriport.createFacility({ name: "Care Facility, LLC", npi: "1234567891", tin: "12-3456789", active: true, address: { addressLine1: "2261 Market Street", addressLine2: "#4818", city: "San Francisco", state: USState.CA, zip: "94114", country: "USA", }, });
Creates a Facility in Metriport where your patients receive care.
Care Facility, LLC
Show Address properties
#4451
CA
true
Show properties
{ "id": "018a80c4-292a-7486-a1234-9uiu76yhe234", "oid": "2.16.840.1.113883.3.666.123.4.101", "name": "Care Facility, LLC", "npi": "1234567891", "tin": "12-3456789", "active": true, "address": { "addressLine1": "2261 Market Street", "addressLine2": "#4818", "city": "San Francisco", "state": "CA", "zip": "94114", "country": "USA" } }