Metriport User API

Devices API user and connect management.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 3

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 /user Create a user for wearables and mHealth data · Create User #
Ask an LLM
“How do I create a Metriport user so I can connect a patient's wearables?”
“Can I link a user to an app user ID when creating them?”
Tell an agent
Create a user for app user {appUserId}.
Create a Metriport user tied to app user {appUserId}.
GET /user/connect/token Get a widget session token for a user · Get Connect Token #
Ask an LLM
“How does a patient start linking their wearables to a user?”
“Where do I get a Connect session token for a user?”
Tell an agent
Get a Connect token for user {userId}.
Generate a session token for user {userId} to link wearables.
DELETE /user/revoke Revoke a connected provider's access · Revoke User Access #
Ask an LLM
“How do I disconnect a patient's health data from one provider?”
“Can I revoke access for a single provider for a user?”
Tell an agent destructive · confirm first
Revoke {provider} access for user {userId}.
Disconnect {provider} from user {userId}.

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-user-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-user-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Metriport User 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: User
  description: Devices API user and connect management.
paths:
  /user:
    post:
      operationId: createDevicesUser
      tags:
      - User
      summary: Create User
      description: Creates a Metriport user that connected wearable and mHealth data will be associated with.
      parameters:
      - name: appUserId
        in: query
        required: true
        description: An ID that uniquely identifies the user in your application.
        schema:
          type: string
      responses:
        '200':
          description: The created Metriport user.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DevicesUser'
  /user/connect/token:
    get:
      operationId: getConnectToken
      tags:
      - User
      summary: Get Connect Token
      description: Generates a session token for the Metriport Connect Widget so an end user can link their wearables and mHealth apps.
      parameters:
      - name: userId
        in: query
        required: true
        description: The Metriport user ID.
        schema:
          type: string
      responses:
        '200':
          description: A connect session token.
          content:
            application/json:
              schema:
                type: object
                properties:
                  token:
                    type: string
  /user/revoke:
    delete:
      operationId: revokeUserAccess
      tags:
      - User
      summary: Revoke User Access
      description: Revokes a connected provider's access for a Metriport user.
      parameters:
      - name: userId
        in: query
        required: true
        schema:
          type: string
      - name: provider
        in: query
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Access revoked.
components:
  schemas:
    DevicesUser:
      type: object
      properties:
        userId:
          type: string
        appUserId:
          type: string
        connectedProviders:
          type: array
          items:
            type: string
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key