# Flexpa API

**Canonical:** https://apis.io/apis/flexpa/flexpa-api/  
**Provider:** Flexpa — https://apis.io/providers/flexpa/  
**Base URL:** https://api.flexpa.com  
**Documentation:** https://www.flexpa.com/docs

Flexpa API is one of 5 APIs that [Flexpa](https://apis.io/providers/flexpa/) publishes on the [APIs.io](https://apis.io/) network, described by a machine-readable OpenAPI specification. This API exposes 6 JSON Schema definitions. Tagged areas include FHIR, Healthcare, and Claims Data. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, and 6 JSON Schemas.

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.

## Operations (32)

| Method | Path | Summary |
|---|---|---|
| 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 |
| POST | `/smart/health-links` | Create a SMART Health Link |
| GET | `/smart/health-links` | List SMART Health Links |
| GET | `/smart/health-links/stats` | SMART Health Link usage stats |
| DELETE | `/smart/health-links/{id}` | Revoke a SMART Health Link |
| 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 |

## Machine-readable artifacts (10)

- **OpenAPI** — https://artifacts.apis.io/flexpa/openapi/flexpa-openapi.yml
- **OpenAPI** — https://www.flexpa.com/openapi.json
- **Documentation** — https://www.flexpa.com/docs
- **JSONSchema** — https://artifacts.apis.io/flexpa/json-schema/flexpa-consent-schema.json
- **JSONSchema** — https://artifacts.apis.io/flexpa/json-schema/flexpa-endpoint-schema.json
- **JSONSchema** — https://artifacts.apis.io/flexpa/json-schema/flexpa-token-request-schema.json
- **JSONSchema** — https://artifacts.apis.io/flexpa/json-schema/flexpa-introspection-schema.json
- **JSONSchema** — https://artifacts.apis.io/flexpa/json-schema/flexpa-token-response-schema.json
- **JSONSchema** — https://artifacts.apis.io/flexpa/json-schema/flexpa-json-rpc-request-schema.json
- **APIsJSON** — https://artifacts.apis.io/flexpa/apis.yml

## Other Flexpa APIs (4)

- [Flexpa Access Tokens API](https://apis.io/apis/flexpa/flexpa-access-tokens-api/)
- [Flexpa Claims Data API](https://apis.io/apis/flexpa/flexpa-claims-data-api/)
- [Flexpa FHIR API](https://apis.io/apis/flexpa/flexpa-fhir-api/)
- [Flexpa Link API](https://apis.io/apis/flexpa/flexpa-link-api/)

## Tags

FHIR, Healthcare, Claims Data

## Use this from code or an agent

- **REST, no key:** `GET https://apis.io/api/v1/providers/flexpa` returns the provider's full profile as JSON.
- **MCP:** `https://apis.io/mcp` (Streamable HTTP) — search the catalog, read any provider, compare providers, check agent readiness.
- **Free API key** for catalog-wide search, ratings and comparisons: sign in with GitHub, Google or LinkedIn at https://apis.io/developer/account/ (plans: https://apis.io/developer/plans/).

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/flexpa/flexpa-api/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/flexpa/.
