API Reference
Facilities
Create or update facility records via the Integration API.
Create or update facility (service location) records.
Upsert Facility
POST /integration/facilitiesCreates or updates a facility by id.
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
id | string | Yes | Your unique identifier for this facility |
name | string | Yes | Facility name |
npi | string | No | Facility NPI (10 digits) |
facility_type | string | No | Type of facility (see values below) |
phone | string | No | Phone number |
fax | string | No | Fax number |
email | string | No | Contact email |
tax_id | string | No | Federal Tax ID (EIN) |
clia_number | string | No | CLIA certification number (for labs) |
address_line_1 | string | No | Street address |
address_line_2 | string | No | Address line 2 |
city | string | No | City |
state | string | No | State code |
zip_code | string | No | ZIP code |
country | string | No | Country code (default: US) |
Facility Types
| Value | Description |
|---|---|
hospital | Hospital / inpatient facility |
clinic | Outpatient clinic |
ambulatory_surgery_center | ASC |
skilled_nursing_facility | SNF |
laboratory | Clinical laboratory |
pharmacy | Pharmacy |
home_health | Home health agency |
telehealth | Telehealth/virtual |
other | Other facility type |
Example Request
curl -X POST https://api.neuralrev.ai/integration/facilities \
-H "x-api-key: nrev_YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"id": "FAC-001",
"name": "Springfield Medical Center",
"npi": "9876543210",
"facility_type": "hospital",
"phone": "5550200100",
"fax": "5550200101",
"email": "admin@springfield-medical.example.com",
"tax_id": "12-3456789",
"clia_number": "IL1234567",
"address_line_1": "456 Health Ave",
"city": "Springfield",
"state": "IL",
"zip_code": "62702"
}'Response
200 OK — Facility upserted successfully:
{
"success": true,
"message": "Facility upserted successfully"
}Notes
- The facility NPI is the organizational NPI (Type 2), distinct from individual provider NPIs (Type 1).
- The
clia_numberis required for facilities that perform laboratory testing. - The
tax_id(EIN) is required for claim submission. - Reference facilities in encounters using the same
idyou assigned here.