The Risk Adjustment API Landscape

Healthcare APIs are transforming how organizations exchange risk adjustment data and automate clinical workflows. Risk adjustment is a data-intensive domain. Medicare Advantage plans, ACOs, and risk-bearing provider organizations process millions of diagnosis codes, demographic records, and provider identifiers to calculate the RAF scores that drive CMS capitation payments. Historically, this processing happened in monolithic on-premise systems. Today, APIs enable organizations to embed risk adjustment intelligence directly into clinical workflows, analytics platforms, and operational tools.

The shift to API-based risk adjustment is driven by three forces. First, CMS-HCC model updates — including the full transition to V28 in 2026 — require organizations to update scoring logic annually. API providers handle these updates centrally, eliminating the need for each consumer to maintain their own model implementation. Second, real-time scoring at the point of care requires sub-200-millisecond response times that only purpose-built APIs can deliver. Third, healthcare applications increasingly need risk adjustment data embedded in existing workflows rather than isolated in standalone tools.

For developers building healthcare applications, risk adjustment APIs represent a mature, well-defined integration surface. The APIs follow standard RESTful conventions, accept and return JSON, and support both synchronous and asynchronous processing patterns.

RESTful Architecture

Risk adjustment APIs follow standard REST conventions with predictable URL patterns, HTTP methods, and JSON request/response bodies. Developers familiar with any RESTful API can integrate risk adjustment endpoints quickly.

Composable Endpoints

Individual APIs for RAF scoring, ICD-10 lookup, HCC mapping, and NPI validation can be composed into end-to-end workflows — from provider validation through diagnosis coding to final risk score calculation.

Available APIs Overview

The risk adjustment API ecosystem includes several complementary endpoints, each serving a specific function in the data pipeline.

  • RAF Score API: The core scoring endpoint. Accepts member demographics and ICD-10 diagnosis codes, returns the calculated RAF score with HCC-level detail. Supports CMS-HCC V28, V24, ESRD, and RxHCC models. Detailed use cases range from point-of-care scoring to population analytics.
  • ICD-10 Lookup API: Validates and returns detailed information for ICD-10-CM diagnosis codes including code description, chapter, category, laterality, and validity status for the current code year. Essential for ensuring that diagnosis codes submitted for scoring are valid and active. See the ICD-10 data lookup guide for implementation details.
  • ICD-10 to HCC Mapping API: Takes an ICD-10 code and returns its mapped HCC category under the specified CMS-HCC model version, including the HCC coefficient and disease family. This is the crosswalk lookup that connects clinical diagnoses to risk adjustment categories.
  • NPI Lookup API: Validates National Provider Identifiers and returns provider demographic data including name, specialty, practice address, and taxonomy codes. Critical for provider attribution in risk adjustment workflows. The NPI lookup guide covers implementation patterns.
  • Batch Scoring API: Accepts population-level files for asynchronous processing. Returns scored results for 100,000+ members with HCC-level detail, care gap flags, and year-over-year comparisons. Designed for overnight processing windows.

Authentication and Authorization

Healthcare API security must satisfy both technical requirements and regulatory obligations. Every integration handling Protected Health Information must implement authentication that meets HIPAA standards.

  • API Key Authentication: The simplest pattern. The API provider issues a unique key that the client includes in each request header (typically as X-API-Key or Authorization: Bearer). Suitable for server-to-server integrations where the key is stored securely in environment variables — never in client-side code or version control.
  • OAuth 2.0: For enterprise deployments requiring granular access control, token-based authentication supports scoped permissions, token expiration, and refresh mechanisms. The client credentials grant type is appropriate for machine-to-machine API access in risk adjustment workflows.
  • Transport Security: All API calls must use TLS 1.2 or higher. Never transmit API keys or PHI over unencrypted connections. Verify the API provider's SSL certificate programmatically and reject connections with invalid certificates.
  • Key Rotation: Implement a key rotation process. API keys should be rotated at least quarterly and immediately if a potential exposure is detected. Design your integration to support key rotation without downtime — for example, by accepting the new key from an environment variable that can be updated without redeployment.
  • Least Privilege: Request only the API scopes your integration needs. If your application only performs RAF score calculations, do not request access to batch processing or administrative endpoints. Minimizing scope reduces the blast radius if credentials are compromised.
Free Resources

Three downloads risk adjustment teams actually use

Checklists, playbooks, and frameworks — built for analysts, auditors, and VPs working RAF, RADV, and HCC.

Checklist

2026 RADV Audit Readiness Checklist

12-point compliance checklist for documentation, diagnosis code validation, extrapolation defense, and pre-audit scrub workflows.

Playbook

RAF Score Optimization Playbook

Tactical guide for analysts: HCC recapture workflows, V28 transition impacts, prospective gap-closure plays, and KPIs that move RAF lift.

Playbook

Risk Adjustment Analytics Playbook

How payer leaders sequence prospective and retrospective risk adjustment for compounding RAF lift. Deployment patterns, KPIs, and a VP-level operating rhythm.

Start Building Today: Our Healthcare API suite includes RAF scoring, ICD-10 lookup, NPI verification, and guideline validation — with full documentation, SDKs, and sandbox environments. View API documentation →

Building Your First Integration

Start with the simplest possible integration — a single RAF score calculation — and expand from there. This approach validates your authentication, data formatting, and error handling before adding complexity.

  • Step 1 — Environment Setup: Store your API key in an environment variable. Configure your HTTP client with the base URL, default headers (Content-Type: application/json, Accept: application/json), and a reasonable timeout (10 seconds for real-time calls, 300 seconds for batch). Never hardcode credentials in source files.
  • Step 2 — Request Construction: Build the JSON request body with required fields: member demographics (date of birth, sex, eligibility model, institutional status) and an array of ICD-10 diagnosis codes. Validate all input fields before sending the request — catching format errors locally avoids unnecessary API calls and improves user experience.
  • Step 3 — Response Parsing: Parse the JSON response to extract the total RAF score, individual HCC contributions, demographic baseline, and any care gap alerts. Map these fields to your application's data model. Handle the case where the response structure differs from documentation — defensive parsing prevents runtime crashes.
  • Step 4 — Integration Testing: Test with known-good inputs where you can independently verify the expected RAF score. Use the CMS published rate tables and a manual calculation to confirm the API returns the correct result. Test edge cases: members with zero diagnosis codes, members with 50+ codes, invalid codes mixed with valid ones, and extreme demographic combinations.
  • Step 5 — Logging and Monitoring: Log every API call with the request timestamp, response time, HTTP status code, and a correlation ID that links the API call to the business transaction in your application. This logging is essential for debugging, performance monitoring, and audit compliance.

Error Handling Best Practices

Robust error handling separates production-grade integrations from fragile prototypes. Healthcare applications must handle failures gracefully because downtime or incorrect results have clinical and financial consequences.

  • HTTP Status Code Classification: Categorize errors by status code range. 400-level errors (Bad Request, Unauthorized, Not Found, Rate Limited) indicate client-side issues that require request modification before retrying. 500-level errors indicate server-side issues that may resolve with a retry.
  • Retry with Exponential Backoff: For 500-level errors and 429 (Rate Limited) responses, implement automatic retry with exponential backoff. Start with a 1-second delay, doubling with each retry up to a maximum of 5 retries or 32 seconds. Add random jitter (0-500ms) to prevent retry storms when multiple clients hit the same issue simultaneously.
  • Circuit Breaker Pattern: If an API endpoint returns errors consistently — for example, 5 consecutive failures within 60 seconds — open a circuit breaker that temporarily stops making calls to that endpoint. This prevents cascading failures and gives the API time to recover without being overwhelmed by retry traffic.
  • Graceful Degradation: Design your application to function with reduced capability when an API is unavailable. If the RAF score API is down during a clinical encounter, the application should still display the patient's last known RAF score with a timestamp rather than showing an error screen.
  • Error Reporting: Aggregate error data into dashboards that track error rates by endpoint, status code, and time period. Alert on error rate spikes — a sudden increase from 0.1 percent to 5 percent error rate likely indicates a systemic issue that needs immediate investigation.
  • Validation Errors: Distinguish between API-level validation errors (the server rejected your request) and business-level validation issues (the ICD-10 code is valid but does not map to any HCC). Both require different handling and different user-facing messages.

Scaling for Production

Moving from development to production introduces volume, reliability, and compliance requirements that must be addressed before go-live.

  • Connection Pooling: Reuse HTTP connections rather than establishing a new connection for each API call. Connection establishment involves TCP handshake and TLS negotiation — overhead that compounds at hundreds of calls per minute. Most HTTP client libraries support persistent connections by default.
  • Rate Limit Management: Understand your API provider's rate limits and design your application to stay within them. Implement client-side rate limiting that throttles outbound requests before hitting the server-side limit. Track your consumption via response headers (X-RateLimit-Remaining) and adjust dynamically.
  • Caching Strategy: Cache responses where appropriate. NPI lookups and ICD-10 code validations change infrequently and are excellent caching candidates (TTL of 24 hours). RAF scores should not be cached long-term because they depend on the complete set of diagnosis codes which changes with each new encounter.
  • Asynchronous Processing: For workflows that do not require immediate results, use asynchronous patterns. Queue RAF score requests and process them in background workers. This decouples the user-facing application from API latency and enables better throughput management.
  • Health Checks: Implement regular health check calls to each API endpoint (every 60 seconds) to detect outages before they impact users. Health check results should feed into your monitoring dashboard and trigger alerts when an endpoint becomes unavailable.
  • HIPAA Compliance: Ensure all environments handling PHI meet HIPAA requirements: encrypted storage, access controls, audit logging, and a Business Associate Agreement with the API provider. Production environments must be isolated from development environments that may use test data.
Key Insight: The best healthcare API integrations are built incrementally. Start with a single endpoint, validate thoroughly, then expand. Invest heavily in error handling and monitoring from day one — production healthcare applications cannot afford silent failures. The API is the easy part; the engineering discipline around it is what makes integrations production-grade.

Ready to Start Building?

Get API keys and documentation for our RAF Score API, ICD-10 Lookup, NPI Validation, and batch scoring endpoints. Start integrating in minutes.

Schedule a Demo