Catalog/validate-npi

Validation

NPI validate API

Validates a US National Provider Identifier using Luhn computed over the 80840 prefix per the CMS spec. Answers 'Is this NPI valid?', 'Does this healthcare provider ID pass its checksum?'.

Price$0.04per request
MethodPOST
Route/v1/validate/npi
StatusLive
MIME typeapplication/json
Rate limit120/minute
Cache0s public
npihealthcareproviderluhncheck-digitvalidatecmsmedicalus
API URLhttps://x402.hexl.dev/v1/validate/npi
Integration docs
Example request
{
  "npi": "1245319599"
}
Example response
{
  "valid": true,
  "reason": "Valid NPI (Luhn over 80840 prefix OK).",
  "normalized": "1245319599",
  "checkDigit": {
    "expected": 9,
    "actual": 9
  }
}
Input schema
{
  "type": "object",
  "required": [
    "npi"
  ],
  "properties": {
    "npi": {
      "type": "string",
      "description": "10-digit National Provider Identifier.",
      "examples": [
        "1245319599"
      ]
    }
  }
}
Output schema
{
  "type": "object",
  "additionalProperties": true
}