Documentation

Authentication

MethodBest ForHeader
Server-side integrationsx-api-key: YOUR_KEY
Enterprise applicationsAuthorization: Bearer TOKEN
AI assistants (Claude)Configured via MCP server
curl -X GET "https://api.fhirfly.io/v1/ndc/0069-0151-01" \
  -H "x-api-key: ffly_sk_live_abc123..."
ffly_sk_live_abc123...  # Production key
ffly_sk_test_abc123...  # Test/sandbox key
curl -X POST "https://api.fhirfly.io/oauth2/token" \
  -H "Content-Type: application/x-www-form-urlencoded" \
  -d "grant_type=client_credentials" \
  -d "client_id=YOUR_CLIENT_ID" \
  -d "client_secret=YOUR_CLIENT_SECRET" \
  -d "scope=ndc:read npi:read"
curl -X GET "https://api.fhirfly.io/v1/ndc/0069-0151-01" \
  -H "Authorization: Bearer eyJhbGciOiJSUzI1..."
ScopeDescription
ndc.readRead NDC drug data
ndc.batchBatch NDC lookups
npi.readRead NPI provider data
npi.batchBatch NPI lookups
rxnorm.readRead RxNorm data
loinc.readRead LOINC codes
icd10.readRead ICD-10 codes
cvx.readRead CVX vaccine codes
mvx.readRead MVX manufacturer codes
fda.readRead FDA drug labels