API Documentation
Authentication
All API requests must include your API Key in the x-api-key HTTP header.
# Example Header
x-api-key: pmd_live_xxxxxxxxxxxx
x-api-key: pmd_live_xxxxxxxxxxxx
Transform FHIR Bundle
Endpoint: POST /api/transform
Accepts a standard FHIR R4 or R5 Bundle and returns a flattened, JSON-ready object optimized for dashboards and AI processing.
Sample Request
curl -X POST https://api.precisionmd.io/v1/transform \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"resourceType": "Bundle",
"entry": [
{
"resource": {
"resourceType": "Patient",
"name": [{"family": "Smith", "given": ["Jane"]}]
}
}
]
}'Response Codes
- 200 Successfully transformed
- 401 Invalid or missing API Key
- 422 Invalid FHIR Structure
- 429 Rate limit exceeded (Metered Billing issue)