Flexpa API

The Flexpa API as published by Flexpa at www.flexpa.com/openapi.json, covering OAuth 2.0 / SMART authorization and token introspection, consent records, payer organizations and endpoints, the FHIR R4 read and search surface with Patient $everything, $summary and $pdf operations, ViewDefinition runs, bulk deliveries, SMART Health Links and the MCP registry endpoints.

GitHub OpenAPI

Operations 32

GET /oauth/authorize Start a patient authorization (Flexpa Consent) #
POST /oauth/token Exchange a code, refresh a token, or get an Application Access Token #
GET /oauth/introspect Introspect a Patient Access Token #
POST /oauth/revoke Revoke a token or patient authorizations #
GET /.well-known/oauth-authorization-server OAuth 2.0 authorization server metadata (RFC 8414) #
GET /.well-known/openid-configuration OpenID Connect discovery document #
GET /.well-known/smart-configuration SMART App Launch configuration #
GET /.well-known/jwks.json JSON Web Key Set #
GET /rest/consent Get the consent behind a Patient Access Token #
GET /rest/consent/{consentId} Get a consent by ID #
GET /rest/consents List consents for your application #
GET /organizations List organizations in Flexpa's network #
GET /endpoints List endpoints (health plans and medical record systems) #
GET /fhir/metadata FHIR CapabilityStatement #
GET /fhir/{resourceType} Search FHIR resources #
GET /fhir/{resourceType}/{id} Read a FHIR resource #
GET /fhir/Patient/{patientId}/$everything Patient $everything #
GET /fhir/Patient/{patientId}/$summary International Patient Summary ($summary) #
GET /fhir/Patient/{patientId}/$pdf Export the patient's records as PDF (or ZIP) #
POST /fhir/Patient/{patientId}/$expunge Delete the patient's data ($expunge) #
POST /fhir/ViewDefinition/$run Run a SQL on FHIR ViewDefinition #
GET /rest/deliveries List deliveries to your destination #
GET /rest/deliveries/{id}/manifest Get a delivery's Bulk Data-style manifest #
GET /smart/health-links/stats SMART Health Link usage stats #
GET /smart/health-links/{id}/accesses List access events for a link (FHIR AuditEvent Bundle) #
POST /smart/health-links/manifests/{manifestId} Fetch a link's encrypted manifest (SMART Health Links protocol) #
GET /smart/health-links/manifests/{manifestId} Direct file transfer for links with the U flag #
POST /mcp Health tools for agents (public MCP registry and Endpoint Directory) #
POST /mcp/consent Patient records MCP server #

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/flexpa:flexpa-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

flexpa-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Flexpa API
  version: '2026-11-22'
  summary: Patient-authorized health records from health plans, medical record systems
    and TEFCA.
  description: 'The Flexpa API returns patient-authorized health records from three
    networks: health plans (CMS Patient Access

    APIs), medical record systems (ONC (g)(10) FHIR APIs) and nationwide exchange
    (TEFCA Individual Access Services).

    Patients authorize access through Flexpa Consent (OAuth 2.0 with PKCE); your application
    then reads FHIR R4

    resources with the resulting Patient Access Token.


    This document describes Flexpa''s public developer surface as documented at https://www.flexpa.com/docs.
    The FHIR

    API is described generically (any resource type, read and search); see the FHIR
    CapabilityStatement at

    `GET /fhir/metadata` for the full list of resources, search parameters and operations.

    '
  contact:
    name: Flexpa
    url: https://www.flexpa.com/docs
  termsOfService: https://www.flexpa.com/docs/terms
externalDocs:
  description: Flexpa developer documentation
  url: https://www.flexpa.com/docs
servers:
- url: https://api.flexpa.com
  description: Flexpa API (test and live mode are selected by the keys and tokens
    you use)
tags:
- name: OAuth
  description: Patient authorization (Flexpa Consent) and token management. https://www.flexpa.com/docs/consent
- name: Discovery
  description: OAuth, OpenID Connect and SMART discovery documents.
- name: Consent
  description: Consent and patient authorization records. https://www.flexpa.com/docs/consent
- name: Network
  description: Organizations and endpoints in Flexpa's network. https://www.flexpa.com/docs/network
- name: FHIR
  description: FHIR R4 records for authorized patients. https://www.flexpa.com/docs/records
- name: Destinations
  description: Audit records for deliveries to your storage. https://www.flexpa.com/docs/records/destinations
- name: SMART Health Links
  description: Create and manage SMART Health Links. https://www.flexpa.com/docs/smart-health-links
- name: MCP
  description: Model Context Protocol servers for AI agents. https://www.flexpa.com/docs/guides/agents
security:
- patientAccessToken: []


# --- truncated at 32 KB (42 KB total) ---
# Full source: https://artifacts.apis.io/flexpa/openapi/flexpa-openapi.yml