Detailed request and response examples for all SMA Endpoint Directory endpoints.
List States
Returns all 56 U.S. states and territories with their Medicaid FHIR implementation status. Supports filtering by implementation status, API vendor, patient access status, and FHIR version.
Method
Path
Description
GET
/v1/sma/states
List all states with summary info
Parameters
Parameter
Required
Type
Description
implemented
No
boolean
Filter by implementation status (true or false)
vendor
No
string
Filter by API vendor (e.g., "Epic")
status
No
string
Filter by patient access status (e.g., "In Production")
Returns full details for a specific state, including patient access endpoints (claims, PDex, formulary, CHIP), provider directory endpoints, contacts, and metadata.
Patient access API details including FHIR endpoint URLs by category.
Field
Type
Description
status
string | null
Implementation status (e.g., "In Production")
implementation_date
string | null
When the API was deployed (ISO date)
fhir_version
string | null
FHIR version
auth_protocol
string | null
Authentication protocol (e.g., "OAuth 2.0")
refresh_frequency
string | null
How often data is refreshed
endpoints.claims
string[]
Claims FHIR endpoint URLs
endpoints.pdex
string[]
Payer Data Exchange (PDex) endpoint URLs
endpoints.formulary
string[]
Drug formulary endpoint URLs
endpoints.chip
string[]
CHIP (Children's Health Insurance Program) endpoint URLs
endpoints.capability_statement
string[]
FHIR CapabilityStatement (metadata) URLs
endpoints.sandbox
string[]
Sandbox/testing endpoint URLs
provider_directory
Provider directory API details.
Field
Type
Description
status
string | null
Implementation status
implementation_date
string | null
When deployed (ISO date)
fhir_version
string | null
FHIR version
is_public
boolean | null
Whether the directory is publicly accessible
refresh_frequency
string | null
How often data is refreshed
endpoints.production
string[]
Production endpoint URLs
endpoints.capability_statement
string[]
FHIR CapabilityStatement URLs
endpoints.sandbox
string[]
Sandbox endpoint URLs
contacts
Contact information for the state's Medicaid FHIR implementation.
Field
Type
Description
member_phone
string | null
Member services phone number
member_email
string | null
Member services email
developer_contact
string | null
Developer/API contact
pd_developer_contact
string | null
Provider directory developer contact
registration_info
string | null
API registration URL or instructions
pd_registration_info
string | null
Provider directory registration info
Error Response
If the state is not found, the API returns a 404:
{
"error": "state_not_found",
"message": "State not found",
"provided": "XX"
}
Stats
Returns aggregate statistics across all 56 states and territories — implementation counts, vendor distribution, FHIR version breakdown, and provider directory metrics.
Each breakdown is an object mapping category values to counts, sorted by count descending.
Field
Description
by_vendor
Count of states by API vendor
by_patient_access_status
Count by patient access implementation status
by_fhir_version
Count by FHIR version
by_auth_protocol
Count by authentication protocol
provider_directory.total_with_pd
States with a provider directory implementation
provider_directory.by_status
Provider directory count by status
SDK Usage
Node.js
import { Fhirfly } from "@fhirfly-io/terminology";
const client = new Fhirfly({ apiKey: "your-api-key" });
// List all implemented states
const list = await client.sma.listStates({ implemented: true });
console.log(`${list.total} states have FHIR endpoints`);
for (const state of list.states) {
console.log(`${state.abbreviation}: ${state.api_vendor ?? "No vendor"}`);
}
// Get full details for California
const ca = await client.sma.getState("CA");
console.log(`Claims endpoints: ${ca.patient_access.endpoints.claims.length}`);
console.log(`Auth: ${ca.patient_access.auth_protocol}`);
// Get aggregate statistics
const stats = await client.sma.stats();
console.log(`${stats.summary.implemented} / ${stats.summary.total_states} states implemented`);