Metriport Facility API

Medical API facility management.

GitHub OpenAPI

Operations 5

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /medical/v1/facility Create a healthcare facility · Create Facility #
Ask an LLM
“How do I add a new clinic or hospital to my organization?”
“Can I register a facility by its NPI number?”
Tell an agent
Create facility {name} with NPI {npi} at {address}.
Add a new facility {name} (NPI {npi}, TIN {tin}) at {address}.
GET /medical/v1/facility List healthcare facilities · List Facilities #
Ask an LLM
“Which healthcare facilities are registered under my organization?”
“Can I see every facility we have on file?”
Tell an agent
List all facilities under my organization.
Show every healthcare facility we manage.
GET /medical/v1/facility/{id} Get a healthcare facility · Get Facility #
Ask an LLM
“What are the details of one facility?”
“Can I look up a facility by its ID?”
Tell an agent
Get facility {id}.
Show the details of healthcare facility {id}.
PUT /medical/v1/facility/{id} Update a healthcare facility · Update Facility #
Ask an LLM
“How do I correct a facility's address or NPI?”
“Can I deactivate a facility?”
Tell an agent
Update facility {id} to name {name}, NPI {npi}, address {address}.
Deactivate facility {id} by setting active to {active}.
DELETE /medical/v1/facility/{id} Delete a healthcare facility · Delete Facility #
Ask an LLM
“How do I remove a facility we no longer use?”
“Can I delete a facility from my organization?”
Tell an agent destructive · confirm first
Delete facility {id}.
Remove healthcare facility {id} from our organization.

Documentation

Specifications

Schemas & Data

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/metriport:metriport-facility-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

metriport-facility-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Metriport Facility API
  description: Metriport is an open-source, universal API for healthcare data. The Medical API exchanges patient medical records across the CommonWell and Carequality networks and returns consolidated FHIR R4 data; the Devices API hydrates activity, biometrics, nutrition, and sleep data from connected wearables and mHealth apps. This specification documents the hosted Metriport cloud surface at https://api.metriport.com. The same code may be self-hosted from the open-source repository.
  termsOfService: https://www.metriport.com/terms
  contact:
    name: Metriport Support
    email: contact@metriport.com
    url: https://docs.metriport.com
  version: '1.0'
servers:
- url: https://api.metriport.com
  description: Metriport hosted production API
- url: https://api.sandbox.metriport.com
  description: Metriport sandbox API
security:
- ApiKeyAuth: []
tags:
- name: Facility
  description: Medical API facility management.
paths:
  /medical/v1/facility:
    post:
      operationId: createFacility
      tags:
      - Facility
      summary: Create Facility
      description: Creates a Facility under your Organization.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BaseFacility'
      responses:
        '200':
          description: The created Facility.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Facility'
    get:
      operationId: listFacilities
      tags:
      - Facility
      summary: List Facilities
      description: Lists all Facilities under your Organization.
      responses:
        '200':
          description: A list of Facilities.
          content:
            application/json:
              schema:
                type: object
                properties:
                  facilities:
                    type: array
                    items:
                      $ref: '#/components/schemas/Facility'
  /medical/v1/facility/{id}:
    get:
      operationId: getFacility
      tags:
      - Facility
      summary: Get Facility
      parameters:
      - $ref: '#/components/parameters/FacilityId'
      responses:
        '200':
          description: The requested Facility.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Facility'
    put:
      operationId: updateFacility
      tags:
      - Facility
      summary: Update Facility
      parameters:
      - $ref: '#/components/parameters/FacilityId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BaseFacility'
      responses:
        '200':
          description: The updated Facility.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Facility'
    delete:
      operationId: deleteFacility
      tags:
      - Facility
      summary: Delete Facility
      parameters:
      - $ref: '#/components/parameters/FacilityId'
      responses:
        '200':
          description: Facility deleted.
components:
  schemas:
    Address:
      type: object
      required:
      - addressLine1
      - city
      - state
      - zip
      - country
      properties:
        addressLine1:
          type: string
        addressLine2:
          type: string
        city:
          type: string
        state:
          type: string
        zip:
          type: string
        country:
          type: string
          default: USA
    BaseFacility:
      type: object
      required:
      - name
      - npi
      - address
      properties:
        name:
          type: string
        npi:
          type: string
          description: The 10-digit National Provider Identifier.
        tin:
          type: string
        active:
          type: boolean
        address:
          $ref: '#/components/schemas/Address'
    Facility:
      allOf:
      - type: object
        properties:
          id:
            type: string
          oid:
            type: string
      - $ref: '#/components/schemas/BaseFacility'
  parameters:
    FacilityId:
      name: id
      in: path
      required: true
      description: The Metriport Facility ID.
      schema:
        type: string
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key