Mediloop

Healthcare / FHIR API

FHIR Authentication

FHIR R4

Authenticate FHIR requests with OAuth 2.0 bearer tokens, tenant context and healthcare-specific scopes.

Open in API Explorer

Authentication

OAuth 2.0

Bearer token

Scope

healthcare.read

Required

Standard

HL7 FHIR R4

FHIR R4

Rate limit

600 requests / min

Default

Response

Bundle / JSON

application/fhir+json

OAuth 2.0

Use OAuth 2.0 bearer tokens issued for the current Mediloop identity and tenant context.

Required headers

HeaderRequiredPurpose
AuthorizationYesBearer access token
AcceptRecommendedFHIR JSON response
X-Tenant-IdContextualActive professional/organization tenant

FHIR scopes

ScopePurpose
healthcare.fhir.readRead FHIR resources
healthcare.fhir.writeCreate/update FHIR resources
healthcare.fhir.auditRead history/audit
healthcare.fhir.subscribeManage subscriptions

Tenant context

Professional access is evaluated against the active membership and tenant, not merely the user identity.

SMART on FHIR

SMART on FHIR compatibility can be used where enabled for the integration profile; production enablement is contract and environment dependent.

Example request

Authenticated request

curl "https://api.mediloop.com/fhir/r4/Patient/pat_123" -H "Authorization: Bearer $ACCESS_TOKEN" -H "X-Tenant-Id: $TENANT_ID"

Errors