Dea validate
Exacthealthcare_dea_validateDeterministic and authoritative — the canonical answer for this input.
Validate a federal DEA registration number. Format: 2 letters + 7 digits. Applies the DEA checksum algorithm (sum of odd-position digits + 2 × sum of even-position digits; last digit of the result must equal the 7th digit). State DEA numbers are out of scope. Returns `{is_valid, format_valid, checksum_valid, registrant_type}` in `result`, plus `why_invalid` on invalid verdicts — registrant_type derives from the first letter per current DEA guidance (A/B/F practitioner, G DoD contractor, M mid-level practitioner, P/R distributor, X legacy buprenorphine waiver) whenever the format is valid. Processing multiple inputs? Use `healthcare_dea_validate_batch` to do up to 1000 in one call.
Parameters
deastringrequiredFederal DEA number to validate.
Call it
curl -X POST https://api.snipget.ai/v1/healthcare/dea/validate \
-H "Authorization: Bearer sk_live_..." \
-H "Content-Type: application/json" \
-d '{"dea":"AB1234563"}'The Batch tab sends up to 1000 inputs in one call via /v1/healthcare/dea/validate/batch.
Example response
{
"dea_number": "AB1234563",
"is_valid": true,
"format_valid": true,
"checksum_valid": true,
"registrant_type": "practitioner"
}FAQ
Why use this instead of eyeballing the number?
A federal DEA number is 2 letters plus 7 digits, where the last digit is a checksum of the others. This verifies both the format and that checksum, catching typos that look perfectly valid at a glance.
Does it confirm the registration is real or active?
No. It only checks the format and the math, not whether the DEA number is actually registered or current. The check itself is deterministic and authoritative for format and checksum.
Does it handle lowercase or extra spaces?
Yes. Input is trimmed and upper-cased before checking, so 'ab1234563' validates the same as 'AB1234563'. State DEA numbers are out of scope.
How do I read a failed result?
Invalid input returns confidence 0 with a why_invalid reason, not an error. The separate format_valid and checksum_valid flags tell you whether the shape was wrong or only the check digit was off, and registrant_type is reported whenever the format was valid — derived from the first letter per current DEA guidance (A/B/F practitioner, G DoD contractor, M mid-level practitioner, P/R distributor, X legacy buprenorphine waiver; other letters report unknown).